CerebNet.utils.checkpoint

CerebNet.utils.checkpoint.is_checkpoint_epoch(cfg, cur_epoch)[source]

Check if checkpoint need to be saved.

Parameters:
cfgyacs.config.CfgNode

The config node.

cur_epochint

The current epoch number to check if this is the last epoch.