| 30 | |
| 31 | |
| 32 | class CustomModuleForSaveLoad(flow.nn.Module): |
| 33 | def __init__(self): |
| 34 | super().__init__() |
| 35 | self.param = flow.nn.Parameter(flow.randn(1, 3, 3, 3)) |
| 36 | |
| 37 | def forward(self, x): |
| 38 | return self.param + x |
| 39 | |
| 40 | |
| 41 | @unittest.skipIf(os.getenv("ONEFLOW_TEST_CPU_ONLY"), "only test cpu cases") |
no outgoing calls