cuquantum.cutensornet.contraction_optimizer_config_get_attribute_dtype

cuquantum.cutensornet.contraction_optimizer_config_get_attribute_dtype(int attr)[source]

Get the Python data type of the corresponding optimizer config attribute.

Parameters

attr (ContractionOptimizerConfigAttribute) – 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_optimizer_config_get_attribute() and contraction_optimizer_config_set_attribute().