Closed mengpengfei closed 2 years ago
you can implement it with other operators
you can implement it with other operators
can you tell me how to implement.please help me,thanks very much.
Wouldn't it be:
public NDArray pairwiseDistance(NDArray A, NDArray B) {
return A.sub(B).square().sum(new int[]{0}).sqrt();
}
I have to implement the siamese network,but i can not find the operator pairwise_distance in djl. I would like to use the operator pairwise_distance,but it is not implemented in djl.please help me.