Skip to content

Commit

Permalink
fix(dvae): unnecessary memory consumption (fix #148)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 1, 2024
1 parent 7db7d08 commit eb0fb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChatTTS/model/dvae.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def forward(self, inp: torch.Tensor) -> torch.Tensor:
if self.vq_layer is not None:
vq_feats = self.vq_layer._embed(inp)
else:
vq_feats = inp.detach().clone()
vq_feats = inp

vq_feats = (
vq_feats.view(
Expand Down

0 comments on commit eb0fb71

Please sign in to comment.