module onnxrt.ops_cpu.op_constant#

Inheritance diagram of mlprodict.onnxrt.ops_cpu.op_constant

Short summary#

module mlprodict.onnxrt.ops_cpu.op_constant

Runtime operator.

source on GitHub

Classes#

class

truncated documentation

Constant_11

Constant_12

Constant ======== This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, …

Constant_12

Constant ======== This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, …

Constant_9

Functions#

function

truncated documentation

_check_dtype

Properties#

property

truncated documentation

args_default

Returns the list of arguments as well as the list of parameters with the default values (close to the signature). …

args_default

Returns the list of arguments as well as the list of parameters with the default values (close to the signature). …

args_default

Returns the list of arguments as well as the list of parameters with the default values (close to the signature). …

args_default

Returns the list of arguments as well as the list of parameters with the default values (close to the signature). …

args_default_modified

Returns the list of modified parameters.

args_default_modified

Returns the list of modified parameters.

args_default_modified

Returns the list of modified parameters.

args_default_modified

Returns the list of modified parameters.

args_mandatory

Returns the list of optional arguments.

args_mandatory

Returns the list of optional arguments.

args_mandatory

Returns the list of optional arguments.

args_mandatory

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

atts_value

Returns all parameters in a dictionary.

atts_value

Returns all parameters in a dictionary.

atts_value

Returns all parameters in a dictionary.

atts_value

Returns all parameters in a dictionary.

Methods#

method

truncated documentation

__init__

__init__

__init__

__init__

_run

_run

_run

_run

Documentation#

Runtime operator.

source on GitHub

mlprodict.onnxrt.ops_cpu.op_constant.Constant#

alias of Constant_12

class mlprodict.onnxrt.ops_cpu.op_constant.Constant_11(onnx_node, desc=None, **options)#

Bases: OpRun

__init__(onnx_node, desc=None, **options)#
_run(attributes=None, verbose=0, fLOG=None)#

Should be overwritten.

source on GitHub

class mlprodict.onnxrt.ops_cpu.op_constant.Constant_12(onnx_node, desc=None, **options)#

Bases: OpRun

Constant#

This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified.

Attributes

  • sparse_value: The value for the elements of the output tensor in sparse format. default value cannot be automatically retrieved (SPARSE_TENSOR)

  • value: The value for the elements of the output tensor. default value cannot be automatically retrieved (TENSOR)

  • value_float: The value for the sole element for the scalar, float32, output tensor. default value cannot be automatically retrieved (FLOAT)

  • value_floats: The values for the elements for the 1D, float32, output tensor. default value cannot be automatically retrieved (FLOATS)

  • value_int: The value for the sole element for the scalar, int64, output tensor. default value cannot be automatically retrieved (INT)

  • value_ints: The values for the elements for the 1D, int64, output tensor. default value cannot be automatically retrieved (INTS)

  • value_string: The value for the sole element for the scalar, UTF-8 string, output tensor. default value cannot be automatically retrieved (STRING)

  • value_strings: The values for the elements for the 1D, UTF-8 string, output tensor. default value cannot be automatically retrieved (STRINGS)

Outputs

  • output (heterogeneous)T: Output tensor containing the same value of the provided tensor.

Type Constraints

  • T tensor(uint8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(int8), tensor(int16), tensor(int32), tensor(int64), tensor(float16), tensor(float), tensor(double), tensor(string), tensor(bool), tensor(complex64), tensor(complex128): Constrain input and output types to all tensor types.

Version

Onnx name: Constant

This version of the operator has been available since version 12.

Runtime implementation: Constant

__init__(onnx_node, desc=None, **options)#
_run(attributes=None, verbose=0, fLOG=None)#

Should be overwritten.

source on GitHub

class mlprodict.onnxrt.ops_cpu.op_constant.Constant_9(onnx_node, desc=None, **options)#

Bases: OpRun

__init__(onnx_node, desc=None, **options)#
_run(attributes=None, verbose=0, fLOG=None)#

Should be overwritten.

source on GitHub

mlprodict.onnxrt.ops_cpu.op_constant._check_dtype(val)#