Skip to content

Commit

Permalink
fix(core): missig param
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 24, 2024
1 parent 6a4c97b commit a21bafa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ChatTTS/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,9 @@ def _infer_code(
del_all(logits_processors)

return [
GPT.GenerationOutputs(ids=token_ids, hiddens=hidden_states),
GPT.GenerationOutputs(
ids=token_ids, hiddens=hidden_states, attentions=[],
),
]

emb = gpt(input_ids, text_mask)
Expand Down Expand Up @@ -638,7 +640,8 @@ def _refine_text(
del_all(logits_warpers)
del_all(logits_processors)

return GPT.GenerationOutputs(ids=token_ids, hiddens=hidden_states)
return GPT.GenerationOutputs(ids=token_ids, hiddens=hidden_states, attentions=[],
)

emb = gpt(input_ids, text_mask)

Expand Down

0 comments on commit a21bafa

Please sign in to comment.