MCPcopy Index your code
hub / github.com/apple/ml-pointersect / reset_losses

Method reset_losses

pointersect/script/train_v2.py:1279–1284  ·  view source on GitHub ↗

Set the losses to None.

(self)

Source from the content-addressed store, hash-verified

1277 setattr(self, name, None)
1278
1279 def reset_losses(self):
1280 """
1281 Set the losses to None.
1282 """
1283 for name in self.losses_name:
1284 setattr(self, name, None)
1285
1286 def train_step(
1287 self,

Callers 3

train_stepMethod · 0.95
validation_stepMethod · 0.95
test_stepMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_stepMethod · 0.76