Rate this Page

Function torch::nn::functional::pdist#

Function Documentation#

inline Tensor torch::nn::functional::pdist(const Tensor &input, double p = 2.0)#

Computes the p-norm distance between every pair of row vectors in the input.

This function will be faster if the rows are contiguous.