fix a bug which overrides the default constructed output_projection when none is

passed in
This commit is contained in:
Matthew Chang 2022-12-21 16:24:44 -06:00
parent 7e12b582e4
commit adcd995595

View File

@ -260,8 +260,6 @@ class Decoder(nn.Module):
else:
self.layer_norm = None
self.output_projection = output_projection
self.self_attn_relative_position = None
self.cross_attn_relative_position = None