Universal-Transformer-Pytorch icon indicating copy to clipboard operation
Universal-Transformer-Pytorch copied to clipboard

ReLU in PositionwiseFeedForward

Open zhiqihuang opened this issue 3 years ago • 0 comments

Here i is the index of self.layers, therefore it is always less than the length of self.layers.

Probably you mean

if i < len(self.layers) - 1

Then no ReLU and Dropout after the last positionwise layer.

zhiqihuang avatar Jan 19 '22 01:01 zhiqihuang