a15d56ccc3a4236fd71546d54a13425134cb0ade,gpytorch/lazy/zero_lazy_tensor.py,ZeroLazyTensor,__getitem__,#ZeroLazyTensor#Any#,138
Before Change
if isinstance(sub_index, int):
continue
elif isinstance(sub_index, slice):
new_sizes += [len(torch.arange(self.size(ix))[sub_index])]
else:
new_sizes += [len(sub_index)]
return ZeroLazyTensor(*new_sizes)
After Change
evaluate = True
continue
elif torch.is_tensor(sub_index):
if ix >= ndimension - 2:
evaluate = True
if not has_added_tensor_index:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: cornellius-gp/gpytorch
Commit Name: a15d56ccc3a4236fd71546d54a13425134cb0ade
Time: 2018-09-27
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/zero_lazy_tensor.py
Class Name: ZeroLazyTensor
Method Name: __getitem__
Project Name: rusty1s/pytorch_geometric
Commit Name: b48c943b9f6248dbdd42d0fce44658b937098372
Time: 2017-10-23
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/functional/spline_gcn.py
Class Name:
Method Name: spline_gcn
Project Name: dmlc/dgl
Commit Name: cf8a3fb30547d6e980ecd8182f64a51df8e55c62
Time: 2021-02-10
Author: expye@outlook.com
File Name: python/dgl/backend/pytorch/tensor.py
Class Name:
Method Name: pack_padded_tensor