3bb62b0838e580201810095961db156f45368c6e,onmt/decoders/cnn_decoder.py,CNNDecoder,forward,#CNNDecoder#Any#Any#Any#Any#,78
Before Change
attns["copy"] = attn
// Update the state.
self.update_state(tgt)
// TODO change the way attns is returned dict => list or tuple (onnx)
return dec_outs, attns
After Change
attns["copy"] = attn
// Update the state.
self.state["previous_input"] = tgt
// TODO change the way attns is returned dict => list or tuple (onnx)
return dec_outs, attns
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances Project Name: OpenNMT/OpenNMT-py
Commit Name: 3bb62b0838e580201810095961db156f45368c6e
Time: 2018-12-08
Author: guillaume.klein@systrangroup.com
File Name: onmt/decoders/cnn_decoder.py
Class Name: CNNDecoder
Method Name: forward
Project Name: uber/ludwig
Commit Name: 70d0fe1729a5e8e2d4f5bf06447c5333b82d5c56
Time: 2020-03-25
Author: jimthompson5802@aol.com
File Name: ludwig/features/binary_feature.py
Class Name: BinaryOutputFeature
Method Name: update_metrics
Project Name: uber/ludwig
Commit Name: 2c76a23d68e9ccdd40849a1e0c8597151d4ccc72
Time: 2020-03-27
Author: w4nderlust@gmail.com
File Name: ludwig/features/base_feature.py
Class Name: OutputFeature
Method Name: update_metrics
Project Name: OpenNMT/OpenNMT-py
Commit Name: 3bb62b0838e580201810095961db156f45368c6e
Time: 2018-12-08
Author: guillaume.klein@systrangroup.com
File Name: onmt/decoders/decoder.py
Class Name: RNNDecoderBase
Method Name: forward