Similarity Package: sk.ainet.lang.tensor Modality: Composite cosineDistance Signature fun cosineDistance(other:Tensor, dim:Int, eps:Double): Tensor Parameters other: Tensor The other tensor to calculate the distance to. dim: Int The dimension along which to calculate the cosine distance. Default is -1 (last dimension). eps: Double A small value to avoid division by zero. Default is 1e-8. Return Type Tensor Notes all: