DiskLogger¶
- class torchtune.utils.metric_logging.DiskLogger(log_dir: str, filename: Optional[str] = None, **kwargs)[source]¶
Logger to disk.
- Parameters:
Warning
This logger is not thread-safe.
Note
This logger creates a new file based on the current time.
- close() None [source]¶
Close log resource, flushing if necessary. Logs should not be written after close is called.