torchtune.utils¶
Miscellaneous¶
Function that takes a dictionary (or nested dictionary) of tensors and sets them all to the same device. |
|
Function that takes an optional device string, verifies it's correct and available given the machine and distributed settings, and returns a |
|
Get a logger with a stream handler. |
|
Check if torch version is greater than or equal to the given version. |