MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / checkpoint

Function checkpoint

DeepSpeedExample/megatron/mpu/random.py:316–319  ·  view source on GitHub ↗

Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.

(function, *args)

Source from the content-addressed store, hash-verified

314
315
316def checkpoint(function, *args):
317 """Checkpoint a model or part of the model.
318 This has been directly copied from torch.utils.checkpoint."""
319 return CheckpointFunction.apply(function, *args)

Callers

nothing calls this directly

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected