Pairwise distance matrix between rows of x1 and x2.
Specialised paths exist for p in ;
other p values fall back to the general
formula. For p=2 the
numerically stable expansion
is used
so large coordinates don't lose precision.
Parameters
Returns
TensorShape (..., P, R). Entry =
.
Raises
DtypeMismatchIf
x1 or x2 is not a real floating-point tensor, as the
reference refuses integer, bool and complex inputs — a TypeError
and a RuntimeError.