TensorPlay
API symbolsnn
Copy
View MarkdownDownload .md

tensorplay.nn.functional.pdist

tensorplay.nn.functional.pdist(input: TensorBase, p: float = 2.0) TensorBase[source]

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.

Ask DeepWiki