a38ac8958ebf1c61a10c4d5320f1e31d3d0b73dd,trainer.py,Trainer,__init__,#Trainer#,27
Before Change
self.std, self.hidden_size, self.num_classes,
)
if self.use_gpu:
self.model.cuda()
print("[*] Number of model parameters: {:,}".format(
sum([p.data.nelement() for p in self.model.parameters()])))
After Change
self.config = config
if config.use_gpu and torch.cuda.is_available():
self.device = torch.device("cuda")
else:
self.device = torch.device("cpu")
// glimpse network params
self.patch_size = config.patch_size
self.glimpse_scale = config.glimpse_scale
self.num_patches = config.num_patches
self.loc_hidden = config.loc_hidden
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: kevinzakka/recurrent-visual-attention
Commit Name: a38ac8958ebf1c61a10c4d5320f1e31d3d0b73dd
Time: 2020-05-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: __init__
Project Name: pytorch/examples
Commit Name: 5751edd199f20c17a366c0eed4932539b3697c18
Time: 2021-01-26
Author: pbelevich@fb.com
File Name: distributed/rpc/rnn/rnn.py
Class Name: EmbeddingTable
Method Name: __init__
Project Name: meijieru/crnn.pytorch
Commit Name: fd26e809d0d0bc50af7d2f1a42f4cc8ec72da2ec
Time: 2017-07-25
Author: zhangxin19870504@163.com
File Name: demo.py
Class Name:
Method Name: