7c6b9940261af254f033e05b914c336bbb8e7958,tests/odeint_tests.py,TestSolverError,test_adjoint,#TestSolverError#,84
Before Change
self.assertLess(rel_error(sol, y), error_tol)
def test_adjoint(self):
for ode in problems.PROBLEMS.keys():
f, y0, t_points, sol = problems.construct_problem(TEST_DEVICE, reverse=True)
y = torchdiffeq.odeint_adjoint(f, y0, t_points, method="dopri5")
with self.subTest(ode=ode):
self.assertLess(rel_error(sol, y), error_tol)
class TestSolverBackwardsInTimeError(unittest.TestCase):
def test_euler(self):
f, y0, t_points, sol = problems.construct_problem(TEST_DEVICE, reverse=True)
After Change
else:
eps = 1e-4
with self.subTest(reverse=reverse, dtype=dtype, device=device, ode=ode):
f, y0, t_points, sol = construct_problem(dtype=dtype, device=device, ode=ode,
reverse=reverse)
y = torchdiffeq.odeint_adjoint(f, y0, t_points)
self.assertLess(rel_error(sol, y), eps)
class TestNoIntegration(unittest.TestCase):
def test_odeint(self):
for reverse in (False, True):
for dtype in DTYPES:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: rtqichen/torchdiffeq
Commit Name: 7c6b9940261af254f033e05b914c336bbb8e7958
Time: 2020-08-04
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: tests/odeint_tests.py
Class Name: TestSolverError
Method Name: test_adjoint
Project Name: facebookresearch/Horizon
Commit Name: f0f4e0ad52428f6b96c05f5502c085472bb66fb9
Time: 2018-02-09
Author: jjg@fb.com
File Name: ml/rl/training/rl_trainer.py
Class Name: RLTrainer
Method Name: _prepare_state_normalization
Project Name: mozilla/bugbug
Commit Name: 005e5a8f0b7b6156d6e0e0b0587a07479185c971
Time: 2018-11-21
Author: mcastelluccio@mozilla.com
File Name: bugbug/labels.py
Class Name:
Method Name:
Project Name: deepgram/kur
Commit Name: 73e7b24a65b7c05a09dcf404776331db420f673a
Time: 2017-03-23
Author: noajshu@users.noreply.github.com
File Name: kur/supplier/jsonl_supplier.py
Class Name: JSONLSupplier
Method Name: get_sources