Skip to content

Commit

Permalink
Undo float16/half precision for cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwinkel committed Apr 2, 2024
1 parent 1febf56 commit 63ef2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shepardtts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def load_checkpoint() -> ShepardXtts:
if settings.DEVICE == "cpu":
import intel_extension_for_pytorch as ipex

model = ipex.optimize(model, weights_prepack=False, dtype=torch.half)
model = ipex.optimize(model, weights_prepack=False)
model = torch.compile(model, backend="ipex")

return model
Expand Down

0 comments on commit 63ef2aa

Please sign in to comment.