Skip to content

Commit

Permalink
remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
minhthuc2502 committed Jun 26, 2024
1 parent 44e6ff1 commit 317f14a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/ctranslate2/converters/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@ def set_linear(self, spec, module, quant_type=common_spec.Quantization.CT2):
if module.bias is not None:
spec.bias = module.bias

if module.bias is not None:
spec.bias = module.bias

def set_embeddings(self, spec, module):
spec.weight = module.weight

Expand Down

0 comments on commit 317f14a

Please sign in to comment.