7ce6642f777e9da6249bd5b05330d57fa09ea37a,example/mpii.py,,train,#,131
Before Change
// measure data loading time
data_time.update(time.time() - end)
input_var = torch.autograd.Variable(inputs.cuda())
target_var = torch.autograd.Variable(target.cuda(async=True))
// compute output
output = model(input_var)
score_map = output[-1].data.cpu()
loss = criterion(output[0], target_var)
for j in range(1, len(output)):
loss += criterion(output[j], target_var)
After Change
// measure data loading time
data_time.update(time.time() - end)
input, target = input.to(device), target.to(device, non_blocking=True)
// compute output
output = model(input)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: bearpaw/pytorch-pose
Commit Name: 7ce6642f777e9da6249bd5b05330d57fa09ea37a
Time: 2019-01-07
Author: platero.yang@gmail.com
File Name: example/mpii.py
Class Name:
Method Name: train
Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 0cef773c66b325e84900474688a7b0f4f4663f93
Time: 2018-07-26
Author: karandesai281196@gmail.com
File Name: utils/eval_utils.py
Class Name:
Method Name: get_gt_ranks
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: ca7a5e9a39478054dbdfbfba9963b13c80b768f8
Time: 2018-03-14
Author: max.lapan@gmail.com
File Name: ch18/telegram-bot.py
Class Name: Session
Method Name: move_bot