Skip to content

Commit

Permalink
fix(utils): save model to cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
34j committed Apr 6, 2024
1 parent 3f537b0 commit d71781f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/so_vits_svc_fork/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def save_checkpoint(
iteration: int,
checkpoint_path: Path | str,
) -> None:
model = model.to("cpu")

Check warning on line 318 in src/so_vits_svc_fork/utils.py

View check run for this annotation

Codecov / codecov/patch

src/so_vits_svc_fork/utils.py#L318

Added line #L318 was not covered by tests
LOG.info(
"Saving model and optimizer state at epoch {} to {}".format(
iteration, checkpoint_path
Expand Down

0 comments on commit d71781f

Please sign in to comment.