UpdateDynamicInputDesc
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <graph/operator.h>
- Library file: libgraph.so
Function Usage
Updates TensorDesc of a dynamic input of an operator based on the input name and index.
Prototype
APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.
1 2 | graphStatus UpdateDynamicInputDesc(const std::string &name, uint32_t index, const TensorDesc &tensor_desc) graphStatus UpdateDynamicInputDesc(const char_t *name, uint32_t index, const TensorDesc &tensor_desc) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
name |
Input |
Name of the operator's dynamic input. |
index |
Input |
Index of the operator's dynamic input, which starts from 0. |
tensor_desc |
Input |
TensorDesc object. |
Returns
graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.
Exception Handling
None
Restrictions
None
Parent topic: Operator