e503f50cb38fb1864fb6d66ba927b0852159428d,gpytorch/utils/interpolation.py,Interpolation,interpolate,#Interpolation#Any#Any#,34

Before Change


                C[left_boundary_pts[i], closest_from_first[i]] = 1
                lower_grid_pt_idxs[left_boundary_pts[i]] = 0

        right_boundary_pts = torch.LongTensor([i for i in range(len(lower_grid_pt_idxs))
                                              if (lower_grid_pt_idxs > num_grid_points - num_coefficients)[i] == 1])
        num_right = len(right_boundary_pts)

After Change


                C[right_boundary_pts[i], closest_from_last[i]] = 1
                lower_grid_pt_idxs[right_boundary_pts[i]] = num_grid_points - num_coefficients

        J = x_grid.new(num_target_points, num_coefficients).zero_()
        for i in range(num_coefficients):
            J[:, i] = lower_grid_pt_idxs + i

        J = J.long()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: e503f50cb38fb1864fb6d66ba927b0852159428d
Time: 2017-09-22
Author: gpleiss@gmail.com
File Name: gpytorch/utils/interpolation.py
Class Name: Interpolation
Method Name: interpolate


Project Name: pytorch/pytorch
Commit Name: dfb7520c47290eb93b63cffad54ff9c9811a934b
Time: 2020-12-22
Author: zou3519@gmail.com
File Name: torch/testing/_internal/common_nn.py
Class Name: NewModuleTest
Method Name: _do_test


Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: e9d5373461b0a037716722a461cb12416aa5d1bc
Time: 2018-01-01
Author: zzheng@joo-ml1-dev.j.cinglevue.com
File Name: evaluate.py
Class Name:
Method Name: