cuquantum.cutensornet.contraction_autotune_preference_set_attribute

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

Set the autotue preference attributes.

Parameters
  • handle (intptr_t) – The library handle.

  • autotune_preference (intptr_t) – The autotune preference handle.

  • attr (ContractionAutotunePreferenceAttribute) – The attribute to query.

  • buf (intptr_t) – The pointer address (as Python int) to the attribute data.

  • 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 contraction_autotune_preference_get_attribute_dtype().