MCPcopy
hub / github.com/shenweichen/DeepCTR-Torch / TinyModel

Class TinyModel

tests/callbacks_test.py:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class TinyModel(torch.nn.Module):
28 def __init__(self):
29 """Initialize a tiny torch module for callback tests."""
30 super(TinyModel, self).__init__()
31 self.linear = torch.nn.Linear(1, 1)
32 self.stop_training = False
33
34
35def test_callback_and_callback_list_flow():

Calls

no outgoing calls