Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,13 @@ def __init__(
):
super().__init__()
# Load the model.
if device == torch.device("cpu"):
dtype = torch.float32

self.device = device
self.dtype = dtype
self.dtype = torch.float32 if device == torch.device('cpu') else dtype

self.pretssel_model = load_pretssel_vocoder_model(
pretssel_name_or_card,
device=device,
dtype=dtype,
device=self.device,
dtype=self.dtype,
)
self.pretssel_model.eval()

Expand Down