Skip to content

Commit

Permalink
optimize: remove unnecessary dels
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 29, 2024
1 parent e4cd66e commit 63f4868
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ChatTTS/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,6 @@ def _infer_code(
)

del text_mask, input_ids
del_all(logits_warpers)
del_all(logits_processors)

return [
GPT.GenerationOutputs(
Expand Down Expand Up @@ -584,8 +582,6 @@ def _infer_code(
)

del emb, input_ids
del_all(logits_warpers)
del_all(logits_processors)

return result

Expand Down Expand Up @@ -646,8 +642,6 @@ def _refine_text(
hidden_states.append(i.outputs[0].hidden_states)

del text_mask, input_ids_list, result
del_all(logits_warpers)
del_all(logits_processors)

return GPT.GenerationOutputs(
ids=token_ids,
Expand Down

0 comments on commit 63f4868

Please sign in to comment.