61421e8d341312e02dff23b46acde4261808dab3,train.py,,,#,15

Before Change


                train_batch[key] = train_batch[key].cuda()
        
        // forward pass to encoder
        img = Variable(train_batch["img_feat"])
        ques = Variable(train_batch["ques_fwd"])
        hist = Variable(train_batch["hist"])
        enc_out = encoder(img, ques, hist)

        // forward pass to decoder
        options = Variable(train_batch["opt"])
        ans_ind = Variable(train_batch["ans_ind"])

After Change


// ----------------------------------------------------------------------------

args = parser.parse_args()
for arg in vars(args):
    print("{:<20}: {}".format(arg, getattr(args, arg)))

// seed for reproducibility
torch.manual_seed(1234)

// set device and default tensor type
if args.gpuid >= 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 61421e8d341312e02dff23b46acde4261808dab3
Time: 2018-07-06
Author: karandesai281196@gmail.com
File Name: train.py
Class Name:
Method Name:


Project Name: sony/nnabla-examples
Commit Name: 9dab8ae56ce90f1b9ba6808a6e0673ab6f13103e
Time: 2020-12-15
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main


Project Name: sony/nnabla-examples
Commit Name: 7d8f3f66495979f1bbd27205d422d673991709f2
Time: 2021-01-26
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/generate.py
Class Name:
Method Name: main