torch_numopt.utils.utils module# torch_to_float(a)[source]# Convert a tensor to a Python float (detaches and extracts value).