目录

GetInputTdInfo

Function Description

Obtains the input tensor description of an operator based on the input index information. Note that the shape information that cannot be determined during compilation is not included in the tensor description.

Function Prototype

const CompileTimeTensorDesc *GetInputTdInfo(const size_t index) const

Parameters

Parameter Input/Output Description
index Input Operator input index, starting from 0.

Return Value

Tensor description of the const type

Restrictions

None

Calling Example

auto compute_node_info = extend_kernel_context->GetComputeNodeInfo();
auto input_td = compute_node_info->GetInputTdInfo(input_index);