MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / __init__

Method __init__

models/base.py:453–455  ·  view source on GitHub ↗
(self, load_fn)

Source from the content-addressed store, hash-verified

451class ModelWrapper:
452 '''Simple wrapper that delays loading the model, since the model isn't needed if the training data is already cached.'''
453 def __init__(self, load_fn):
454 self._load_fn = load_fn
455 self._model = None
456
457 def __getattr__(self, name):
458 if self._model is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected