MCPcopy Create free account
hub / github.com/atomicarchitects/equiformer_v2 / update

Method update

engine.py:23–27  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

21 self.count = 0
22
23 def update(self, val, n=1):
24 self.val = val
25 self.sum += val * n
26 self.count += n
27 self.avg = self.sum / self.count
28
29
30def train_one_epoch(model: torch.nn.Module, criterion: torch.nn.Module,

Callers 4

train_one_epochFunction · 0.95
evaluateFunction · 0.95
compute_statsFunction · 0.95
optimizer_kwargsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected