module onnxrt.ops_cpu.op_concat#

Inheritance diagram of mlprodict.onnxrt.ops_cpu.op_concat

Short summary#

module mlprodict.onnxrt.ops_cpu.op_concat

Runtime operator.

source on GitHub

Classes#

class

truncated documentation

Concat

Concat ====== Concatenate a list of tensors into a single tensor. All input tensors must have the same shape, except for …

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_modified

Returns the list of modified parameters.

args_mandatory

Returns the list of optional arguments.

args_optional

Returns the list of optional arguments.

atts_value

Returns all parameters in a dictionary.

Methods#

method

truncated documentation

__init__

_preprocess

_run

to_python

Documentation#

Runtime operator.

source on GitHub

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.

source on GitHub

to_python(inputs)#

Returns a python code equivalent to this operator.

Parameters:

inputs – inputs name

Returns:

imports, python code, both as strings

source on GitHub