MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / invoke

Method invoke

callbacks/callback.py:88–91  ·  view source on GitHub ↗
(self, method, **kwargs)

Source from the content-addressed store, hash-verified

86 def after_backward_pass(self, **kwargs): self.invoke('after_backward_pass', **kwargs)
87
88 def invoke(self, method, **kwargs):
89 with torch.set_grad_enabled(False):
90 for cb in self.callbacks:
91 getattr(cb, method)(**kwargs)

Callers 12

training_startedMethod · 0.95
training_endedMethod · 0.95
epoch_startedMethod · 0.95
phase_startedMethod · 0.95
phase_endedMethod · 0.95
epoch_endedMethod · 0.95
batch_startedMethod · 0.95
batch_endedMethod · 0.95
before_forward_passMethod · 0.95
after_forward_passMethod · 0.95
before_backward_passMethod · 0.95
after_backward_passMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected