Skip to content

Commit

Permalink
Use ipex with float16
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwinkel committed Apr 2, 2024
1 parent 26d54ef commit 8bfb719
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:
import intel_extension_for_pytorch as ipex

model.train(mode=False)
model = ipex.optimize(model, weights_prepack=False)
model = ipex.optimize(model, weights_prepack=False, dtype=torch.float16)
model = torch.compile(model, backend="ipex")

return model
Expand Down

0 comments on commit 8bfb719

Please sign in to comment.