jiang commited on
Commit
4eb0453
1 Parent(s): 6bd1b64
models/polyformer/unify_transformer.py CHANGED
@@ -1325,7 +1325,7 @@ class TransformerDecoder(FairseqIncrementalDecoder):
1325
 
1326
  if self.layernorm_embedding is not None:
1327
  if code_masks is None or not code_masks.any() or not getattr(self, "code_layernorm_embedding", False):
1328
- x = self.layernorm_embedding(x.half())
1329
  elif code_masks is not None and code_masks.all():
1330
  x = self.code_layernorm_embedding(x)
1331
  else:
 
1325
 
1326
  if self.layernorm_embedding is not None:
1327
  if code_masks is None or not code_masks.any() or not getattr(self, "code_layernorm_embedding", False):
1328
+ x = self.layernorm_embedding(x)
1329
  elif code_masks is not None and code_masks.all():
1330
  x = self.code_layernorm_embedding(x)
1331
  else: