27048c1dfa80effabf17b8dca66cd2724dd502f8,torch/nn/parameter.py,UninitializedParameter,__new__,#Any#Any#,148
Before Change
cls_to_become = Parameter
def __new__(cls, requires_grad=True):
data = torch.Tensor()
return torch.Tensor._make_subclass(cls, data, requires_grad)
class UninitializedBuffer(UninitializedTensorMixin, torch.Tensor):
After Change
cls_to_become = Parameter
def __new__(cls, requires_grad=True):
data = torch.tensor([])
return torch.Tensor._make_subclass(cls, data, requires_grad)
class UninitializedBuffer(UninitializedTensorMixin, torch.Tensor):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: pytorch/pytorch
Commit Name: 27048c1dfa80effabf17b8dca66cd2724dd502f8
Time: 2021-03-19
Author: yukio.siraichi@gmail.com
File Name: torch/nn/parameter.py
Class Name: UninitializedParameter
Method Name: __new__
Project Name: pytorch/pytorch
Commit Name: 27048c1dfa80effabf17b8dca66cd2724dd502f8
Time: 2021-03-19
Author: yukio.siraichi@gmail.com
File Name: torch/nn/parameter.py
Class Name: UninitializedBuffer
Method Name: __new__
Project Name: rusty1s/pytorch_geometric
Commit Name: 1f0750670cf8ea24ad264debf9603002ab0fb565
Time: 2021-03-15
Author: matthias.fey@tu-dortmund.de
File Name: test/nn/pool/test_mem_pool.py
Class Name:
Method Name: test_mem_pool
Project Name: pytorch/pytorch
Commit Name: 27048c1dfa80effabf17b8dca66cd2724dd502f8
Time: 2021-03-19
Author: yukio.siraichi@gmail.com
File Name: torch/nn/parameter.py
Class Name: Parameter
Method Name: __new__