module onnxrt.ops_cpu.op_concat
#
Short summary#
module mlprodict.onnxrt.ops_cpu.op_concat
Runtime operator.
Classes#
class |
truncated documentation |
---|---|
Concat ====== Concatenate a list of tensors into a single tensor. All input tensors must have the same shape, except for … |
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 modified parameters. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns all parameters in a dictionary. |
Methods#
method |
truncated documentation |
---|---|
Documentation#
Runtime operator.
- class mlprodict.onnxrt.ops_cpu.op_concat.Concat(onnx_node, desc=None, **options)#
Bases:
OpRun
Concatenate a list of tensors into a single tensor. All input tensors must have the same shape, except for the dimension size of the axis to concatenate on.
Attributes
axis (required): Which axis to concat on. A negative value means counting dimensions from the back. Accepted range is [-r, r-1] where r = rank(inputs).. default value cannot be automatically retrieved (INT)
Inputs
Between 1 and 2147483647 inputs.
inputs (variadic, heterogeneous)T: List of tensors for concatenation
Outputs
concat_result (heterogeneous)T: Concatenated tensor
Type Constraints
T tensor(uint8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(int8), tensor(int16), tensor(int32), tensor(int64), tensor(bfloat16), tensor(float16), tensor(float), tensor(double), tensor(string), tensor(bool), tensor(complex64), tensor(complex128): Constrain output types to any tensor type.
Version
Onnx name: Concat
This version of the operator has been available since version 13.
Runtime implementation:
Concat
- __init__(onnx_node, desc=None, **options)#
- _preprocess(a)#
- _run(*args, attributes=None, verbose=0, fLOG=None)#
Should be overwritten.
- to_python(inputs)#
Returns a python code equivalent to this operator.
- Parameters:
inputs – inputs name
- Returns:
imports, python code, both as strings