This is that in [the official implementaion](https://github.com/pytorch/fairseq/blob/master/fairseq/models/fconv.py#L281): > # residual > x = (x + residual) * math.sqrt(0.5) And the following is that [in this project](https://github.com/tobyyouup/conv_seq2seq/blob/78a6e4e62a4c57a5caa9d584033a85e810fd726e/seq2seq/encoders/conv_encoder_utils.py#L183): > # add res connections > next_layer += (next_layer + res_inputs) * tf.sqrt(0.5) Am I right?
This is that in the official implementaion:
And the following is that in this project:
Am I right?