IsValid
Function Usage
Checks whether a Tensor object is valid.
If the actual size of the tensor data is the same as that of the tensor data described by TensorDesc, the object is valid.
Prototype
1 | graphStatus IsValid() |
Parameters
None
Returns
graphStatus type. GRAPH_SUCCESS if the Tensor object is valid; otherwise, GRAPH_FAILED.
Exception Handling
None
Constraints
None
Parent topic: Tensor