目录

IsValid

Function Description

Checks whether a Tensor object is valid.

If the actual tensor data size is the same as that described in TensorDesc, the tensor is valid.

Function Prototype

graphStatus IsValid()

Parameters

None

Return Value

Type Description
graphStatus GRAPH_SUCCESS if the Tensor object is valid; otherwise, GRAPH_FAILED.

Exception Handling

None

Restrictions

None