28ec5687220f562b3bd1b220ed80eded79c54824,steps/pytorch/models.py,Model,_transform,#Model#Any#Any#,87
Before Change
else:
X = Variable(X)
output = self.model(X)
outputs.append(output.data.cpu().numpy())
if batch_id == steps:
break
After Change
outputs_batch = self.model(X)
if len(self.output_names) == 1:
outputs.setdefault(self.output_names[0], []).append(outputs_batch.data.cpu().numpy())
else:
for name, output in zip(self.output_names, outputs_batch):
output_ = output.data.cpu().numpy()
outputs.setdefault(name, []).append(output_)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 28ec5687220f562b3bd1b220ed80eded79c54824
Time: 2018-02-09
Author: kamil-kaczmarek@users.noreply.github.com
File Name: steps/pytorch/models.py
Class Name: Model
Method Name: _transform
Project Name: BindsNET/bindsnet
Commit Name: 7046cd4f17f47ca019dd4a58ac982631b7ada65f
Time: 2019-01-28
Author: hananel@hazan.org.il
File Name: bindsnet/analysis/plotting.py
Class Name:
Method Name: plot_voltages
Project Name: BindsNET/bindsnet
Commit Name: 525b3e141ff8b824ec99580c10f1d038f520443c
Time: 2019-01-28
Author: hananel@hazan.org.il
File Name: bindsnet/analysis/plotting.py
Class Name:
Method Name: plot_voltages