24ef297cca3a32b6f73d14d865cee120f97674c5,torchdiffeq/_impl/solvers.py,RKAdaptiveStepsizeODESolver,_interp_fit,#RKAdaptiveStepsizeODESolver#,238

Before Change



    def _interp_fit(self, y0, y1, k, dt):
        Fit an interpolating polynomial to the results of a Runge-Kutta step.
        y_mid = y0 + k.matmul(dt * self.mid).view_as(y0).type_as(y0)  // mid is float64 so cast back
        f0 = k[..., 0]
        f1 = k[..., -1]
        return _interp_fit(y0, y1, y_mid, f0, f1, dt)

After Change



    def _interp_fit(self, y0, y1, k, dt):
        Fit an interpolating polynomial to the results of a Runge-Kutta step.
        dt = dt.type_as(y0)
        y_mid = y0 + k.matmul(dt * self.mid).view_as(y0)
        f0 = k[..., 0]
        f1 = k[..., -1]
        return _interp_fit(y0, y1, y_mid, f0, f1, dt)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rtqichen/torchdiffeq
Commit Name: 24ef297cca3a32b6f73d14d865cee120f97674c5
Time: 2020-08-03
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/solvers.py
Class Name: RKAdaptiveStepsizeODESolver
Method Name: _interp_fit


Project Name: rtqichen/torchdiffeq
Commit Name: 24ef297cca3a32b6f73d14d865cee120f97674c5
Time: 2020-08-03
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/rk_common.py
Class Name:
Method Name: _runge_kutta_step


Project Name: rtqichen/torchdiffeq
Commit Name: 0a7f9083918008145ee254b92228c8ba7c2f9c56
Time: 2020-08-03
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/rk_common.py
Class Name:
Method Name: _runge_kutta_step