319882b5679229124774e91d5c5762853d75f3ce,test/agent/net/test_nn.py,TestNet,test_fixed,#TestNet#Any#,46
Before Change
dummy_input = Variable(torch.ones(2, net.in_dim))
else:
dummy_input = Variable(torch.ones(2, *net.in_dim))
dummy_output = Variable(torch.zeros((2, net.out_dim)))
loss = net.training_step(dummy_input, dummy_output)
after_params = net.gather_fixed_params()
i = 0
if before_params is not None:
After Change
net = test_nets[0]
flag = True
before_params = net.gather_fixed_params()
dummy_input = self.init_dummy_input(net)
dummy_output = self.init_dummy_output(net)
loss = net.training_step(dummy_input, dummy_output)
after_params = net.gather_fixed_params()
i = 0
if before_params is not None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: kengz/SLM-Lab
Commit Name: 319882b5679229124774e91d5c5762853d75f3ce
Time: 2018-01-06
Author: lgraesser@users.noreply.github.com
File Name: test/agent/net/test_nn.py
Class Name: TestNet
Method Name: test_fixed
Project Name: kengz/SLM-Lab
Commit Name: 319882b5679229124774e91d5c5762853d75f3ce
Time: 2018-01-06
Author: lgraesser@users.noreply.github.com
File Name: test/agent/net/test_nn.py
Class Name: TestNet
Method Name: test_trainable
Project Name: kengz/SLM-Lab
Commit Name: 319882b5679229124774e91d5c5762853d75f3ce
Time: 2018-01-06
Author: lgraesser@users.noreply.github.com
File Name: test/agent/net/test_nn.py
Class Name: TestNet
Method Name: test_gradient_size