GetDynamicInputTensor

Header File/Library File

  • Header file: #include <exe_graph/runtime/eager_op_execution_context.h>
  • Library file: liblowering.so

Function Usage

Obtains the pointer to the input tensor of the DYNAMIC_INPUT type based on the operator IR prototype definition.

Prototype

1
const Tensor *GetDynamicInputTensor(size_t ir_index, size_t relative_index) const

Parameters

Parameter

Input/Output

Description

ir_index

Input

Index in the IR prototype definition.

relative_index

Input

Relative index after the input is instantiated. For example, if three inputs are instantiated for a DYNAMIC_INPUT, the value range of relative_index is [0, 2].

Returns

Tensor pointer. If an exception occurs, a null pointer is returned.

Restrictions

None