GetInputTensor

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 at the corresponding position based on the input index.

Prototype

1
const Tensor *GetInputTensor(size_t index) const

Parameters

Parameter

Input/Output

Description

index

Input

Input index.

Returns

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

Restrictions

None