79675e6cc1e84a12999232090d905e6af505acde,train.py,,,#,17

Before Change



// transfer some attributes from dataset to model args
for key in {"vocab_size", "max_ques_count"}:
    config["model"][key] = getattr(dataset, key)


// ----------------------------------------------------------------------------
// setup the model and optimizer

After Change


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

// let the model know vocabulary size, to declare embedding layer
config["model"]["vocab_size"] = len(dataset.vocabulary)

encoder = Encoder(config["model"])
decoder = Decoder(config["model"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 79675e6cc1e84a12999232090d905e6af505acde
Time: 2018-12-24
Author: karandesai281196@gmail.com
File Name: train.py
Class Name:
Method Name:


Project Name: UFAL-DSG/tgen
Commit Name: bebaba130ab074963772235c9b775ad1a7654f6a
Time: 2014-08-26
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/features.py
Class Name:
Method Name: presence


Project Name: fperazzi/proSR
Commit Name: 6fc77d75bdb46feffa39ad2c389def87643bdcf3
Time: 2018-08-08
Author: fperazzi@adobe.com
File Name: test.py
Class Name:
Method Name: