pub unsafe extern "C" fn cutensorOperationDescriptorSetAttribute(
handle: cutensorHandle_t,
desc: cutensorOperationDescriptor_t,
attr: cutensorOperationDescriptorAttribute_t,
buf: *const c_void,
sizeInBytes: size_t,
) -> cutensorStatus_tExpand description
Set attribute of a cutensorOperationDescriptor_t object.
Currently not supported for blocksparse contraction descriptors.
§Parameters
handle: Opaque handle holding cuTENSOR’s library context.desc: Operation descriptor that will be modified.attr: Specifies the attribute that will be set.buf: This buffer (of sizesizeInBytes) determines the value to whichattrwill be set.sizeInBytes: Size of buf (in bytes).
§Return value
cutensorStatus_t::CUTENSOR_STATUS_INVALID_VALUE: if some input data is invalid (this typically indicates an user error).cutensorStatus_t::CUTENSOR_STATUS_NOT_INITIALIZED: if the handle is not initialized.cutensorStatus_t::CUTENSOR_STATUS_SUCCESS: The operation completed successfully.