b9d7f39a752d23a7de60ea6d679812c401fab57e,run.py,,train,#Any#,41
Before Change
loss = criterion(output, labels)
loss_list.append(loss.data[0])
batch_list.append(i+1)
if i % 10 == 0:
print("Train - Epoch %d, Batch: %d, Loss: %f" % (epoch, i, loss.data[0]))
After Change
loss = criterion(output, labels)
loss_list.append(loss.detach().cpu().item())
batch_list.append(i+1)
if i % 10 == 0:
print("Train - Epoch %d, Batch: %d, Loss: %f" % (epoch, i, loss.detach().cpu().item()))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: activatedgeek/LeNet-5
Commit Name: b9d7f39a752d23a7de60ea6d679812c401fab57e
Time: 2019-01-01
Author: 1sanyamkapoor@gmail.com
File Name: run.py
Class Name:
Method Name: train
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