目录

MutableInputTdInfo

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

CompileTimeTensorDesc *MutableInputTdInfo(const size_t index)

Parameters

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

Return Value

Tensor description. The returned object is not const.

Restrictions

None

Calling Example

  for (size_t i = 0; i < compute_node_info.GetInputsNum(); ++i) {
    auto td = compute_node_info.MutableInputTdInfo(i);
    // ...
  }