0a7f9083918008145ee254b92228c8ba7c2f9c56,torchdiffeq/_impl/rk_common.py,,_runge_kutta_step,#Any#Any#Any#Any#Any#Any#,33

Before Change



    if not (tableau.c_sol[-1] == 0 and (tableau.c_sol[:-1] == tableau.beta[-1]).all()):
        // This property (true for Dormand-Prince) lets us save a few FLOPs.
        yi = y0 + k.matmul(dt * tableau.c_sol).view_as(f0)

    y1 = yi
    f1 = k[..., -1]
    y1_error = k.matmul(dt * tableau.c_error)

After Change



    if not (tableau.c_sol[-1] == 0 and (tableau.c_sol[:-1] == tableau.beta[-1]).all()):
        // This property (true for Dormand-Prince) lets us save a few FLOPs.
        yi = y0 + k.matmul(dt * tableau.c_sol).view_as(f0).type_as(y0)  // tableau is float 64 so cast back

    y1 = yi
    f1 = k[..., -1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


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


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: cornellius-gp/gpytorch
Commit Name: e5d85ce9c2945567d2c37468a56370508806b26a
Time: 2019-03-01
Author: balandat@fb.com
File Name: gpytorch/utils/eig.py
Class Name:
Method Name: batch_symeig