CDist (CPU)#
Domain:
com.microsoftDevice:
CPUKernel:
onnx_light_cpu::CDistSupported types:
FLOAT,DOUBLEOpset bounds: since opset 1
Operator support#
Capability |
Implementation |
|---|---|
Shape inference |
|
Peak memory |
|
Fusion patterns |
|
Gradient |
LightOpSchema#
Version: 1
Computes the pairwise Euclidean or squared Euclidean distances between the rows of two rank-2 tensors.
Inputs
A (
T): A rank-2 tensor with shape (M, N).B (
T): A rank-2 tensor with shape (K, N).
Outputs
C (
T): The pairwise distances with shape (M, K).
Attributes
metric (
STRING): Distance metric: sqeuclidean or euclidean. (optional, default:sqeuclidean)
Type constraints
T: Constrain inputs and output to float or double tensors. Allowed types: tensor(double), tensor(float).