module onnxrt.ops_cpu.op_constant
#
Short summary#
module mlprodict.onnxrt.ops_cpu.op_constant
Runtime operator.
Classes#
class |
truncated documentation |
---|---|
Constant ======== This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, … |
|
Constant ======== This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, … |
|
Functions#
function |
truncated documentation |
---|---|
Properties#
property |
truncated documentation |
---|---|
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of modified parameters. |
|
Returns the list of modified parameters. |
|
Returns the list of modified parameters. |
|
Returns the list of modified parameters. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns all parameters in a dictionary. |
|
Returns all parameters in a dictionary. |
|
Returns all parameters in a dictionary. |
|
Returns all parameters in a dictionary. |
Methods#
method |
truncated documentation |
---|---|
Documentation#
Runtime operator.
- 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.
- 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.
- 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.
- mlprodict.onnxrt.ops_cpu.op_constant._check_dtype(val)#