modeci_mdf.functions.onnx.get_onnx_schema

modeci_mdf.functions.onnx.get_onnx_schema(func_name: str, opset_version: int = 15) OpSchema[source]

Return the ONNX schema corresponding to a generated ONNX python function with name func_name

Parameters:
  • func_name (str) – the name of the ONNX python function

  • opset_version (int, optional) – The opset version to use. Defaults to onnx_opset_version.

Raises:

ValueErrorfunc_name does not correspond to a generated ONNX python function

Returns:

The ONNX schema corresponding to function func_name

Return type:

onnx.defs.OpSchema