cuquantum.cutensornet.contraction_autotune_preference_get_attribute_dtype¶
- cuquantum.cutensornet.contraction_autotune_preference_get_attribute_dtype(int attr)¶
Get the Python data type of the corresponding autotune preference 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()andcontraction_autotune_preference_set_attribute().