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

Method _method_callback

python/oneflow/framework/model.py:353–356  ·  view source on GitHub ↗
(self, method_name: str = None, *args, **kwargs)

Source from the content-addressed store, hash-verified

351 ), "model callbacks' type must be model.Callback or List[model.Callback]."
352
353 def _method_callback(self, method_name: str = None, *args, **kwargs):
354 for cb in self._cbs:
355 method = getattr(cb, method_name)
356 method(*args, **kwargs)
357
358
359class TrainModel(SubModel):

Callers 4

stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80

Calls 1

methodFunction · 0.85

Tested by

no test coverage detected