MCPcopy Create free account
hub / github.com/rtqichen/torchdiffeq / ExpODE

Class ExpODE

tests/problems.py:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56class 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
64PROBLEMS = {'constant': ConstantODE, 'linear': LinearODE, 'sine': SineODE, 'exp': ExpODE}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…