module onnxrt.ops_cpu.op_sequence_at#

Inheritance diagram of mlprodict.onnxrt.ops_cpu.op_sequence_at

Short summary#

module mlprodict.onnxrt.ops_cpu.op_sequence_at

Runtime operator.

Classes#

class

truncated documentation

SequenceAt

SequenceAt ========== Outputs a tensor copy from the tensor at ‘position’ in ‘input_sequence’. Accepted range for ‘position’ …

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__

_run

Documentation#

Runtime operator.

New in version 0.8.

source on GitHub

class mlprodict.onnxrt.ops_cpu.op_sequence_at.SequenceAt(onnx_node, desc=None, **options)#

Bases: OpRun


Outputs a tensor copy from the tensor at ‘position’ in ‘input_sequence’. Accepted range for ‘position’ is in [-n, n - 1], where n is the number of tensors in ‘input_sequence’. Negative value means counting positions from the back.

Inputs

  • input_sequence (heterogeneous)S: Input sequence.

  • position (heterogeneous)I: Position of the tensor in the sequence. Negative value means counting positions from the back. Accepted range in [-n, n - 1], where n is the number of tensors in ‘input_sequence’. It is an error if any of the index values are out of bounds. It must be a scalar(tensor of empty shape).

Outputs

  • tensor (heterogeneous)T: Output tensor at the specified position in the input sequence.

Type Constraints

  • S seq(tensor(uint8)), seq(tensor(uint16)), seq(tensor(uint32)), seq(tensor(uint64)), seq(tensor(int8)), seq(tensor(int16)), seq(tensor(int32)), seq(tensor(int64)), seq(tensor(float16)), seq(tensor(float)), seq(tensor(double)), seq(tensor(string)), seq(tensor(bool)), seq(tensor(complex64)), seq(tensor(complex128)): Constrain to any tensor type.

  • 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 to any tensor type.

  • I tensor(int32), tensor(int64): Constrain position to integral tensor. It must be a scalar(tensor of empty shape).

Version

Onnx name: SequenceAt

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

Runtime implementation: SequenceAt

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

Should be overwritten.

source on GitHub