GetOptionalInputTensor

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 OPTIONAL_INPUT type based on the operator IR prototype definition.

Prototype

1
const Tensor *GetOptionalInputTensor(size_t ir_index) const

Parameters

Parameter

Input/Output

Description

ir_index

Input

Index in the IR prototype definition.

Returns

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

Restrictions

None