MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / forward

Method forward

tests/networks/utils/test_copy_model_state.py:31–34  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

29 self.class_layer = torch.nn.Linear(n_m, n_class)
30
31 def forward(self, x):
32 x = self.layer(x)
33 x = self.class_layer(x)
34 return x
35
36
37class _TestModelTwo(torch.nn.Module):

Callers 15

test_shapeMethod · 0.45
test_shapeMethod · 0.45
test_shapeMethod · 0.45
test_shapeMethod · 0.45
test_shapeMethod · 0.45
test_shapeMethod · 0.45
test_densenet_shapeMethod · 0.45
test_shapeMethod · 0.45
test_shapeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected