ea0eba4488a9f84adbae44d847f17254dc6171a1,torchdiffeq/_impl/tsit5.py,Tsit5Solver,_adaptive_tsit5_step,#Tsit5Solver#Any#,110
Before Change
if on_grid and accept_step:
// We"ve just passed a grid point, which is typically used to indicate a discontinuity in f; we should
// update f to match the side of the discontinuity we"re now on.
f1 = self.func(t_next, y_next)
if self.next_grid_index != len(self.grid_points) - 1:
self.next_grid_index += 1
f_next = f1 if accept_step else f0
dt_next = _optimal_step_size(dt, mean_error_ratio, self.safety, self.ifactor, self.dfactor)
After Change
t_next = t0 + dt + 2 * eps if accept_step else t0
y_next = y1 if accept_step else y0
if on_grid and accept_step:
if eps != 0:
// We"ve just passed a discontinuity in f; we should update f1 to match the side of the discontinuity
// we"re now on.
f1 = self.func(t_next.type_as(y_next[0]), y_next)
if self.next_grid_index != len(self.grid_points) - 1:
self.next_grid_index += 1
f_next = f1 if accept_step else f0
dt_next = _optimal_step_size(dt, mean_error_ratio, self.safety, self.ifactor, self.dfactor)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: rtqichen/torchdiffeq
Commit Name: ea0eba4488a9f84adbae44d847f17254dc6171a1
Time: 2020-07-26
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/tsit5.py
Class Name: Tsit5Solver
Method Name: _adaptive_tsit5_step
Project Name: rtqichen/torchdiffeq
Commit Name: 7391aec984c1e9e0899d51e6b0538483c37ec8fb
Time: 2020-07-27
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/tsit5.py
Class Name: Tsit5Solver
Method Name: _adaptive_tsit5_step
Project Name: Ambrosys/glyph
Commit Name: 89abe76991f3204a8b81930d870825b94819c10c
Time: 2017-01-03
Author: mquade@uni-potsdam.de
File Name: examples/remote/experiment.py
Class Name: Experiment
Method Name: __call__
Project Name: deepfakes/faceswap
Commit Name: 343392813338ae7b10b0a3bbb3b5a9a7da6e588d
Time: 2020-08-27
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/model/losses_plaid.py
Class Name: LossWrapper
Method Name: __call__