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

Method after_forward_pass

callbacks/state_callback.py:11–17  ·  view source on GitHub ↗
(self, phase, loss, loss_pos, loss_dir, loss_curv, **kwargs)

Source from the content-addressed store, hash-verified

9 pass
10
11 def after_forward_pass(self, phase, loss, loss_pos, loss_dir, loss_curv, **kwargs):
12 phase.iter_nr+=1
13 phase.samples_processed_this_epoch+=1
14 phase.loss_acum_per_epoch+=loss
15 phase.loss_pos_acum_per_epoch+=loss_pos
16 phase.loss_dir_acum_per_epoch+=loss_dir
17 phase.loss_curv_acum_per_epoch+=loss_curv
18
19
20 def epoch_started(self, phase, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected