Kangarroar commited on
Commit
7db81d0
1 Parent(s): 1adb2db

Update infer_tools/infer_tool.py

Browse files
Files changed (1) hide show
  1. infer_tools/infer_tool.py +5 -1
infer_tools/infer_tool.py CHANGED
@@ -21,7 +21,11 @@ from preprocessing.hubertinfer import Hubertencoder
21
  from utils.hparams import hparams, set_hparams
22
  from utils.pitch_utils import denorm_f0, norm_interp_f0
23
  map_location=torch.device('cpu')
24
- os.environ["CUDA_VISIBLE_DEVICES"] = ""
 
 
 
 
25
  if os.path.exists("chunks_temp.json"):
26
  os.remove("chunks_temp.json")
27
 
 
21
  from utils.hparams import hparams, set_hparams
22
  from utils.pitch_utils import denorm_f0, norm_interp_f0
23
  map_location=torch.device('cpu')
24
+ # Enable JIT mode
25
+ torch.backends.intel.set_jit_enabled(True)
26
+
27
+ # Enable IPEX
28
+ torch.backends.intel.set_use_ipex(True)
29
  if os.path.exists("chunks_temp.json"):
30
  os.remove("chunks_temp.json")
31