cuquantum.cutensornet.get_contraction_autotune_preference_attribute_dtype¶
- cuquantum.cutensornet.get_contraction_autotune_preference_attribute_dtype(int attr)[source]¶
Get the Python data type of the corresponding ContractionAutotunePreferenceAttribute attribute.
- Parameters
attr (ContractionAutotunePreferenceAttribute) – The attribute to query.
- Returns
The data type of the queried attribute.
Note
This API has no C counterpart and is a convenient helper for allocating memory for
contraction_autotune_preference_get_attribute()
,contraction_autotune_preference_set_attribute()
.