MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / save_checkpoint

Function save_checkpoint

slowfast/utils/checkpoint.py:107–138  ·  view source on GitHub ↗

Save a checkpoint. Args: model (model): model to save the weight to the checkpoint. optimizer (optim): optimizer to save the historical state. loss_scaler (scaler): scaler for loss. epoch (int): current number of epoch of the model. cfg (CfgNode): con

(path_to_job, model, optimizer, loss_scaler, epoch, cfg)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

get_checkpoint_dirFunction · 0.70
sub_to_normal_bnFunction · 0.70
get_path_to_checkpointFunction · 0.70

Tested by

no test coverage detected