f5278f68882ebf89a013611c86eb20345e723df2,pytext/models/seq_models/seq2seq_model.py,Seq2SeqModel,forward,#Seq2SeqModel#Any#Any#Any#Any#,164
Before Change
if dict_feats:
additional_features.append(list(dict_feats))
logits, output_dict = self.model(
src_tokens, additional_features, src_lengths, trg_tokens
)
if dict_feats:
(
output_dict["dict_tokens"],
After Change
create_module(config.dict_embedding, tensorizer=gazetteer_tensorizer)
)
contextual_token_tensorizer = tensorizers.get("contextual_token_embedding")
if contextual_token_tensorizer:
src_embedding_list.append(
create_module(
config.contextual_token_embedding,
tensorizer=contextual_token_tensorizer,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: facebookresearch/pytext
Commit Name: f5278f68882ebf89a013611c86eb20345e723df2
Time: 2020-04-15
Author: twild@fb.com
File Name: pytext/models/seq_models/seq2seq_model.py
Class Name: Seq2SeqModel
Method Name: forward
Project Name: Microsoft/nni
Commit Name: 73b2221b5eb4fd21802e6bf41e21d5df8ef9bf2c
Time: 2019-11-22
Author: v-yugzh@microsoft.com
File Name: src/sdk/pynni/nni/nas/pytorch/darts/trainer.py
Class Name: DartsTrainer
Method Name: _compute_hessian
Project Name: lcswillems/torch-rl
Commit Name: 585835b340f4410c8c1b5f4cf9e5e8eb8d8c9e7c
Time: 2018-08-29
Author: lcswillems@gmail.com
File Name: utils/agent.py
Class Name: Agent
Method Name: get_action
Project Name: jindongwang/transferlearning
Commit Name: fbec92e2363493126b4927a167039fbd037f17bc
Time: 2019-10-21
Author: 1299192934@qq.com
File Name: code/deep/DAN/DAN.py
Class Name:
Method Name: test