"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "164c794eb356917237512a9755f26f3caf0a6255"
override `from_pretrained` in Bert2Rnd
In the seq2seq model we need to both load pretrained weights in the encoder and initialize the decoder randomly. Because the `from_pretrained` method defined in the base class relies on module names to assign weights, it would also initialize the decoder with pretrained weights. To avoid this we override the method to only initialize the encoder with pretrained weights.
Showing
Please register or sign in to comment