cuquantum.cutensornet.get_tensor_details

cuquantum.cutensornet.get_tensor_details(intptr_t handle, intptr_t desc) tuple[source]

Get the tensor’s metadata.

Parameters
  • handle (intptr_t) – The library handle.

  • desc (intptr_t) – A tensor descriptor.

Returns

The metadata of the tensor: (num_modes, modes, extents, strides).

Return type

tuple