MCPcopy Create free account
hub / github.com/HiLab-git/SSL4MIS / restore_model

Function restore_model

code/utils/util.py:78–114  ·  view source on GitHub ↗

wrapper function to read log dir and load restore a previous checkpoint Args: logger (Logger): logger object (for info output to console) snapshot_path (str): path to checkpoint directory Returns: model, optimizer, start_epoch, performance

(logger, snapshot_path, model_num=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

load_checkpointFunction · 0.85

Tested by

no test coverage detected