Skip to content

Commit

Permalink
Fix: torch_data_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Artrajz committed Nov 27, 2024
1 parent 658c386 commit e42797e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manager/model_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def __init__(self, device=config.system.device):
self.device = device
self.ssl_model = None

if config.bert_vits2_config.torch_data_type.lower() in ["float16", "fp16"]:
torch_data_type = config.bert_vits2_config.torch_data_type
if torch_data_type and torch_data_type.lower() in ["float16", "fp16"]:
self.torch_dtype = torch.float16
else:
self.torch_dtype = None
Expand Down

0 comments on commit e42797e

Please sign in to comment.