get_tensor_desc

Applicable Products

All processors

Function Usage

Obtains the descriptor of a tensor.

Prototype

1
get_tensor_desc() -> TensorDesc

Parameters

None

Returns

Tensor descriptor

Restrictions

  • If the tensor format fails to be obtained, RuntimeError is thrown.
  • Modifying the returned TensorDesc information does not affect the existing TensorDesc information in the tensor object.