GetRequiredInputTensor

Applicable Products

All processors

Header File/Library File

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

Function Usage

Obtains the pointer to the input tensor of the REQUIRED_INPUT type based on the operator IR prototype definition. The index in the IR prototype definition is used for locating.

Prototype

1
const Tensor *GetRequiredInputTensor(size_t ir_index) const

Parameters

Parameter

Input/Output

Description

ir_index

Input

Index in the IR prototype definition.

Returns

Pointer to the input tensor. If an exception occurs, a null pointer is returned.

Restrictions

None