get_input_desc
Applicable Products
All processors
Function Usage
Obtains the tensor format of an input port.
Prototype
1 | get_input_desc(index: int) -> TensorDesc |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Input index. |
Returns
Obtained tensor format
Restrictions
- If index is not an integer, TypeError is thrown.
- If the tensor format fails to be obtained, RuntimeError is thrown.
Parent topic: Node