qp.math.get_dtype_name

get_dtype_name(x)[source]

An interface independent way of getting the name of the datatype.

>>> x = torch.tensor(0.1)
>>> qp.math.get_dtype_name(x)
'float32'