| 54 | |
| 55 | |
| 56 | class ExpODE(torch.nn.Module): |
| 57 | def forward(self, t, y): |
| 58 | return -0.1 * self.y_exact(t) |
| 59 | |
| 60 | def y_exact(self, t): |
| 61 | return torch.exp(-0.1 * t) |
| 62 | |
| 63 | |
| 64 | PROBLEMS = {'constant': ConstantODE, 'linear': LinearODE, 'sine': SineODE, 'exp': ExpODE} |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…