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

Method __init__

python/oneflow/framework/model.py:552–558  ·  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

550
551class CheckpointModel(SubModel):
552 def __init__(
553 self,
554 cfg: CheckpointConfig = None,
555 model: Model = None,
556 callbacks: Optional[Union[Callback, List[Callback]]] = None,
557 ):
558 super().__init__("checkpointing", cfg, model, callbacks)
559
560 def load(self):
561 assert self.is_valid

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected