nanoml.dtype module¶
- nanoml.dtype.get_half_dtype() dtype [source]¶
Get the half dtype for the current device.
- Returns:
torch.dtype: The half dtype (torch.float16 or torch.bfloat16)
Get the half dtype for the current device.
torch.dtype: The half dtype (torch.float16 or torch.bfloat16)