2409ca833031ab770e68a334cf2686d1d8d930d1,jiant/proj/main/modeling/taskmodels.py,,get_output_from_encoder,#Any#Any#Any#Any#,288
Before Change
output = encoder(input_ids=input_ids, token_type_ids=segment_ids, attention_mask=input_mask)
if len(output) == 2:
return EncoderOutput(pooled=output[1], unpooled=output[0],)
elif len(output) > 2:
// Extend later with attention, hidden_acts, etc
After Change
encoder=encoder, input_ids=input_ids, input_mask=input_mask,
)
else:
raise KeyError(model_arch)
// Extend later with attention, hidden_acts, etc
if other:
return EncoderOutput(pooled=pooled, unpooled=unpooled, other=other)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: jsalt18-sentence-repl/jiant
Commit Name: 2409ca833031ab770e68a334cf2686d1d8d930d1
Time: 2020-09-23
Author: email@jasonphang.com
File Name: jiant/proj/main/modeling/taskmodels.py
Class Name:
Method Name: get_output_from_encoder
Project Name: open-mmlab/mmdetection
Commit Name: 0e747be830adbfb7aeb67d79871e116283971dbc
Time: 2018-10-10
Author: chenkaidev@gmail.com
File Name: mmdet/models/backbones/resnet.py
Class Name: ResNet
Method Name: __init__
Project Name: facebookresearch/ParlAI
Commit Name: c228fc1c648602f93c078298f9e363f6e02694d2
Time: 2017-12-15
Author: ahm@fb.com
File Name: parlai/core/thread_utils.py
Class Name: SharedTable
Method Name: __setitem__