9f1d8d7500d55d025727e7ca190dc889ca661531,src/models.py,MultiTaskModel,_seq_gen_forward,#MultiTaskModel#Any#Any#Any#,607

Before Change


        """ For variational autoencoder """
        out = {}
        sent, sent_mask = self.sent_encoder(batch["inputs"])
        out["n_exs"] = get_batch_size_from_field(batch["input1"])

        if isinstance(task, MTTask):
            decoder = getattr(self, "%s_decoder" % task.name)
            out = decoder.forward(sent, sent_mask, batch["targs"])

After Change


        """ For variational autoencoder """
        out = {}
        sent, sent_mask = self.sent_encoder(batch["inputs"])
        out["n_exs"] = get_batch_size(batch)

        if isinstance(task, MTTask):
            decoder = getattr(self, "%s_decoder" % task.name)
            out = decoder.forward(sent, sent_mask, batch["targs"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9f1d8d7500d55d025727e7ca190dc889ca661531
Time: 2018-07-09
Author: yu.katherin@gmail.com
File Name: src/models.py
Class Name: MultiTaskModel
Method Name: _seq_gen_forward


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9f1d8d7500d55d025727e7ca190dc889ca661531
Time: 2018-07-09
Author: yu.katherin@gmail.com
File Name: src/models.py
Class Name: MultiTaskModel
Method Name: _vae_forward


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9f1d8d7500d55d025727e7ca190dc889ca661531
Time: 2018-07-09
Author: yu.katherin@gmail.com
File Name: src/models.py
Class Name: MultiTaskModel
Method Name: _grounded_classification_forward


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9f1d8d7500d55d025727e7ca190dc889ca661531
Time: 2018-07-09
Author: yu.katherin@gmail.com
File Name: src/models.py
Class Name: MultiTaskModel
Method Name: _pair_sentence_forward


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9f1d8d7500d55d025727e7ca190dc889ca661531
Time: 2018-07-09
Author: yu.katherin@gmail.com
File Name: src/models.py
Class Name: MultiTaskModel
Method Name: _single_sentence_forward


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9f1d8d7500d55d025727e7ca190dc889ca661531
Time: 2018-07-09
Author: yu.katherin@gmail.com
File Name: src/models.py
Class Name: MultiTaskModel
Method Name: _tagger_forward