get_sampler_attribute_dtype#

cuquantum.bindings.cutensornet.get_sampler_attribute_dtype(int attr)[source]#

Get the Python data type of the corresponding SamplerAttribute attribute.

Parameters:

attr (SamplerAttribute) – 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 sampler_configure(), sampler_get_info().