validation.docs#

make_euclidean#

onnx_array_api.validation.docs.make_euclidean(input_names: Tuple[str] = ('X', 'Y'), output_name: str = 'Z', elem_type: int = 1, opset: int | None = None) ModelProto[source]#

Creates the onnx graph corresponding to the euclidean distance.

Parameters:
  • input_names – names of the inputs

  • output_name – name of the output

  • elem_type – onnx is strongly types, which type is it?

  • opset – opset version

Returns:

onnx.ModelProto