33368888efbdeaf2402eb52d14f1c4ea0c853909,gpytorch/lazy/matmul_lazy_variable.py,MatmulLazyVariable,_batch_get_indices,#MatmulLazyVariable#Any#Any#Any#,67

Before Change


            torch.arange(0, inner_size, out=inner_indices.data)

            left_vals = self.lhs._batch_get_indices(
                _outer_repeat(batch_indices, inner_size),
                _outer_repeat(left_indices, inner_size),
                _inner_repeat(inner_indices, outer_size),
            )

After Change


            torch.arange(0, inner_size, out=inner_indices.data)

            // Repeat the indices to get all the appropriate terms
            batch_indices = _outer_repeat(batch_indices, inner_size)
            left_indices = _outer_repeat(left_indices, inner_size)
            right_indices = _outer_repeat(right_indices, inner_size)
            inner_indices = _inner_repeat(inner_indices, outer_size)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 33368888efbdeaf2402eb52d14f1c4ea0c853909
Time: 2018-08-07
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/matmul_lazy_variable.py
Class Name: MatmulLazyVariable
Method Name: _batch_get_indices


Project Name: cornellius-gp/gpytorch
Commit Name: 33368888efbdeaf2402eb52d14f1c4ea0c853909
Time: 2018-08-07
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/root_lazy_variable.py
Class Name: RootLazyVariable
Method Name: _batch_get_indices


Project Name: cornellius-gp/gpytorch
Commit Name: 33368888efbdeaf2402eb52d14f1c4ea0c853909
Time: 2018-08-07
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/root_lazy_variable.py
Class Name: RootLazyVariable
Method Name: _get_indices


Project Name: cornellius-gp/gpytorch
Commit Name: 33368888efbdeaf2402eb52d14f1c4ea0c853909
Time: 2018-08-07
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/matmul_lazy_variable.py
Class Name: MatmulLazyVariable
Method Name: _get_indices