6c06a88957549b1405f43361e4aa911abc56ef66,se3cnn/kernel.py,SE3Kernel,combination,#SE3Kernel#Any#,296

Before Change


                    basis_kernels_ij = kij.contiguous().view(b_el, -1)  // [beta, i*j*x*y*z]

                    ker = torch.mm(w, basis_kernels_ij)  // [I*J, i*j*x*y*z]
                    ker = ker.view(mi, mj, *b_size)  // [I, J, i, j, x, y, z]
                    ker = ker.transpose(1, 2).contiguous()  // [I, i, J, j, x, y, z]
                    ker = ker.view(mi * self.dims_out[i], mj * self.dims_in[j], *b_size[2:])  // [I*i, J*j, x, y, z]
                    kernel[si, sj] = ker
                else:
                    kernel[si, sj] = 0

                begin_j += mj * self.dims_in[j]

After Change


                    w = weight[weight_index: weight_index + mi * mj * b_el].view(mi, mj, b_el)  // [u, v, beta]
                    weight_index += mi * mj * b_el

                    ker = torch.einsum("uvb,bijxyz->uivjxyz", (w, kij)).contiguous()  // [u, i, v, j, x, y, z]
                    kernel[si, sj] = ker.view_as(kernel[si, sj])
                else:
                    kernel[si, sj] = 0

                begin_j += mj * self.dims_in[j]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: mariogeiger/se3cnn
Commit Name: 6c06a88957549b1405f43361e4aa911abc56ef66
Time: 2018-10-04
Author: geiger.mario@gmail.com
File Name: se3cnn/kernel.py
Class Name: SE3Kernel
Method Name: combination


Project Name: cornellius-gp/gpytorch
Commit Name: a7a12d157766b69cf4b1ddbb5fcdacfe485dc6fa
Time: 2019-04-03
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/grid_interpolation_kernel.py
Class Name: GridInterpolationKernel
Method Name: _compute_grid


Project Name: dpressel/mead-baseline
Commit Name: f7afc7ae76ed2c328ed02f05e91ccceec8942e0b
Time: 2018-09-26
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/seq2seq/model.py
Class Name: Seq2SeqModel
Method Name: make_input