42e617d6b759af70101cd41f5b28f5d242be7c84,beginner_source/Intro_to_TorchScript_tutorial.py,MyCell,forward,#MyCell#Any#Any#,271

Before Change


        self.linear = torch.nn.Linear(4, 4)

    def forward(self, x, h):
        new_h = torch.tanh(self.dg(self.linear(x)) + h)
        return new_h, new_h

my_cell = MyCell(MyDecisionGate())

After Change


        self.linear = torch.nn.Linear(4, 4)

    def forward(self, x, h):
        new_h = torch.tanh(self.linear(x) + h)
        return new_h, new_h

my_cell = MyCell()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 3

Instances


Project Name: pytorch/tutorials
Commit Name: 42e617d6b759af70101cd41f5b28f5d242be7c84
Time: 2019-09-26
Author: sethweidman@fb.com
File Name: beginner_source/Intro_to_TorchScript_tutorial.py
Class Name: MyCell
Method Name: forward


Project Name: pytorch/tutorials
Commit Name: b08313ef1cf3e151703cccc0d5601896e047d907
Time: 2019-09-24
Author: sethweidman@fb.com
File Name: beginner_source/Intro_to_TorchScript_tutorial.py
Class Name: MyCell
Method Name: forward


Project Name: pytorch/tutorials
Commit Name: 79384c9b3693875014daf1a9ff07baf3ee16db7b
Time: 2019-10-21
Author: ailzhang@fb.com
File Name: beginner_source/Intro_to_TorchScript_tutorial.py
Class Name: MyCell
Method Name: forward


Project Name: pytorch/tutorials
Commit Name: 8368e85f76a6be6ae6f83760c04154e9499fa2a0
Time: 2019-09-06
Author: sethweidman@fb.com
File Name: beginner_source/Intro_to_TorchScript_tutorial.py
Class Name: MyCell
Method Name: forward


Project Name: pytorch/tutorials
Commit Name: e72255a4088348504da56794f1986f607ea3121c
Time: 2021-01-19
Author: meghanl@fb.com
File Name: beginner_source/Intro_to_TorchScript_tutorial.py
Class Name: MyCell
Method Name: forward


Project Name: pytorch/tutorials
Commit Name: e7932fc91c9a9a93f35bc522d40007d1dfd4b86d
Time: 2021-04-08
Author: phoenix@cs.washington.edu
File Name: beginner_source/Intro_to_TorchScript_tutorial.py
Class Name: MyCell
Method Name: forward


Project Name: pytorch/tutorials
Commit Name: e7932fc91c9a9a93f35bc522d40007d1dfd4b86d
Time: 2021-04-08
Author: phoenix@cs.washington.edu
File Name: beginner_source/Intro_to_TorchScript_tutorial.py
Class Name: MyCell
Method Name: forward