cuquantum.cutensornet.tensor_svd_info_get_attribute

cuquantum.cutensornet.tensor_svd_info_get_attribute(intptr_t handle, intptr_t info, int attr, intptr_t buf, size_t size)[source]

Get the tensor SVD info attribute.

Parameters
  • handle (intptr_t) – The library handle.

  • info (intptr_t) – The tensor SVD info handle.

  • attr (TensorSVDInfoAttribute) – The attribute to query.

  • buf (intptr_t) – The pointer address (as Python int) for storing the returned attribute value.

  • size (size_t) – The size of buf (in bytes).

Note

To compute size, use the itemsize of the corresponding data type, which can be queried using tensor_svd_info_get_attribute_dtype().