MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / __init__

Method __init__

python/oneflow/framework/model.py:684–690  ·  view source on GitHub ↗
(
        self,
        cfg: CheckpointConfig = None,
        model: Model = None,
        callbacks: Optional[Union[Callback, List[Callback]]] = None,
    )

Source from the content-addressed store, hash-verified

682
683class CheckpointModelOOPStyle(SubModel):
684 def __init__(
685 self,
686 cfg: CheckpointConfig = None,
687 model: Model = None,
688 callbacks: Optional[Union[Callback, List[Callback]]] = None,
689 ):
690 super().__init__("checkpointing", cfg, model, callbacks)
691
692 def load(self):
693 assert self.is_valid

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected