# tensorplay.nn.functional.pdist

Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.pdist.html

# tensorplay.nn.functional.pdist

tensorplay.nn.functional.pdist(input: TensorBase, p: [float](https://docs.python.org/3/library/functions.html#float) = 2.0) &#x2192; TensorBase[[source]](../_modules/tensorplay/nn/functional.html#pdist)

Computes the pairwise distance between rows of input.

Returns the flattened upper triangle of the N x N distance matrix —
port of aten::pdist semantics.
