Returns the p-norm of (input - other)
The shapes of input and other must be broadcastable.
tch_dist(x, other, p = 2)
Arguments
| x |
tensor object |
| other |
the Right-hand-side input tensor |
| p |
the norm to be computed |
Examples
#> tensor
#> 18.1659
#> [ Variable[CPUFloatType]{} ]