ca42233dc8a72cf8440183d34f542f51c063d5fe,gpytorch/lazy/lazy_variable.py,LazyVariable,transpose,#LazyVariable#Any#Any#,228
Before Change
// Batch case
if dim1 < ndimension - 2 and dim2 < ndimension - 2:
res = self.__class__(self.base_lazy_variable.transpose(dim1, dim2),
self.left_interp_indices.transpose(dim1, dim2),
self.left_interp_values.tranpose(dim1, dim2),
self.right_interp_indices.transpose(dim1, dim2),
self.right_interp_values.transpose(dim1, dim2))
elif dim1 >= ndimension - 2 and dim2 >= ndimension - 2:
res = self._transpose_nonbatch()
After Change
// Batch case
if dim1 < ndimension - 2 and dim2 < ndimension - 2:
res = self.__class__(* (arg.transpose(dim1, dim2) for arg in self._args ))
elif dim1 >= ndimension - 2 and dim2 >= ndimension - 2:
res = self._transpose_nonbatch()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: cornellius-gp/gpytorch
Commit Name: ca42233dc8a72cf8440183d34f542f51c063d5fe
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: transpose
Project Name: mil-tokyo/webdnn
Commit Name: f6276d38368f18f39a72ee0cd121d9bdb0a1730c
Time: 2017-11-20
Author: y.kikura@gmail.com
File Name: test/runtime/operators_test/im2col_test.py
Class Name:
Method Name: template
Project Name: mil-tokyo/webdnn
Commit Name: f6276d38368f18f39a72ee0cd121d9bdb0a1730c
Time: 2017-11-20
Author: y.kikura@gmail.com
File Name: test/runtime/operators_test/col2im_test.py
Class Name:
Method Name: template