This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Model Logging setup | |
import os | |
from os.path import isfile, join | |
def log_checkpoint( | |
epoch: int, | |
model: torch.nn.Module, | |
optimizer: torch.optim.Optimizer, | |
lr_scheduler: object, # Cuz the base class seemed like a protected instance |