063b6b635ee9adb646ea968f2f1236c3bc725ca9,src/syft/lib/torch.py,,,#,5

Before Change


whitelist.add("torch.Tensor")
whitelist.add("torch.Tensor.__add__")
whitelist.add("torch.zeros")
whitelist.add("torch.ones")
whitelist.add("torch.nn.Linear")
whitelist.add("torch.nn.Linear.parameters")

ast = Globals()

After Change



whitelist = {} // (path: str, return_type:type)
whitelist["torch.tensor"] = "torch.Tensor"
whitelist["torch.Tensor"] = "torch.Tensor"
whitelist["torch.Tensor.__add__"] = "torch.Tensor"
whitelist["torch.zeros"] = "torch.Tensor"
whitelist["torch.ones"] = "torch.Tensor"
whitelist["torch.nn.Linear"] = "torch.nn.Linear"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: OpenMined/PySyft
Commit Name: 063b6b635ee9adb646ea968f2f1236c3bc725ca9
Time: 2020-07-29
Author: andrew@openmined.org
File Name: src/syft/lib/torch.py
Class Name:
Method Name:


Project Name: OpenMined/PySyft
Commit Name: 063b6b635ee9adb646ea968f2f1236c3bc725ca9
Time: 2020-07-29
Author: andrew@openmined.org
File Name: src/syft/lib/torch.py
Class Name:
Method Name:


Project Name: NTMC-Community/MatchZoo
Commit Name: d1f0503907de9efb790624dd5d676dcec36d07c6
Time: 2018-12-15
Author: i@uduse.com
File Name: matchzoo/models/dense_baseline_model.py
Class Name: DenseBaselineModel
Method Name: get_default_params


Project Name: NTMC-Community/MatchZoo
Commit Name: 478d2f388dc65736b5d67f3560328904210ef1a1
Time: 2018-12-01
Author: i@uduse.com
File Name: matchzoo/models/arci_model.py
Class Name: ArcIModel
Method Name: get_default_params