operation_descriptor_get_attribute#
-
nvmath.
bindings. cutensor. operation_descriptor_get_attribute( - intptr_t handle,
- intptr_t desc,
- int attr,
- intptr_t buf,
- size_t size_in_bytes,
This function retrieves an attribute of the provided cutensorOperationDescriptor_t object (see
cutensorOperationDescriptorAttribute_t).- Parameters:
handle (intptr_t) – Opaque handle holding cuTENSOR’s library context.
desc (intptr_t) – The cutensorOperationDescriptor_t object whos attribute is queried.
attr (OperationDescriptorAttribute) – Specifies the attribute that will be retrieved.
buf (intptr_t) – This buffer (of size size_in_bytes) will hold the requested attribute of the provided cutensorOperationDescriptor_t object.
size_in_bytes (size_t) – Size of buf (in bytes); see
cutensorOperationDescriptorAttribute_tfor the exact size.
Note
To compute the attribute size, use the itemsize of the corresponding data type, which can be queried using
get_operation_descriptor_attribute_dtype().See also
cutensorOperationDescriptorGetAttribute