(self)
| 188 | self.assertEqual(len(m.layers), 1) |
| 189 | |
| 190 | def test_module_state(self): |
| 191 | m = nn.Linear(10, 1) |
| 192 | m.state["hello"] = "world" |
| 193 | self.assertEqual(m.state["hello"], "world") |
| 194 | |
| 195 | def test_chaining(self): |
| 196 | m = nn.Sequential(nn.Linear(2, 2), nn.ReLU(), nn.Linear(2, 1)) |
nothing calls this directly
no outgoing calls
no test coverage detected