MutableInputTdInfo
Function
Obtains the input tensor description of the operator based on the input index. Note that shape information that cannot be determined at compile time is not included in the tensor description (because the shape cannot be determined at compile time, the tensor description does not contain shape information).
Function Prototype
CompileTimeTensorDesc *MutableInputTdInfo(const size_t index) constParameters
| Parameter | Input/Output | Description |
|---|---|---|
| index | Input | Index corresponding to the operator input, starting from 0. |
Return Value
Returns the tensor description. The returned object is non-const.
Constraints
None
Example
for (size_t i = 0; i < compute_node_info.GetInputsNum(); ++i) {
auto td = compute_node_info.MutableInputTdInfo(i);
...
}