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

Method forward

tests/problems.py:57–58  ·  view source on GitHub ↗
(self, t, y)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

y_exactMethod · 0.95

Tested by

no test coverage detected