cuquantum.cutensornet.tensor_svd_info_get_attribute

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

Gets attributes of svd_info.

Parameters
  • handle (intptr_t) – Opaque handle holding cuTENSORNet’s library context.

  • svd_info (intptr_t) – Opaque structure that is accessed.

  • attr (TensorSVDInfoAttribute) – Specifies the attribute that is requested.

  • buf (intptr_t) – On return, this buffer (of size size_in_bytes) holds the value that corresponds to attr within svdConfig.

  • size_in_bytes (size_t) – Size of buf (in bytes).

Note

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