mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-29 02:10:59 +08:00
chore(format): run black on dev (#901)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a500911234
commit
4c201cd56d
@@ -190,7 +190,9 @@ class GPT(nn.Module):
|
||||
try:
|
||||
max_cache_length = past_key_values.get_max_cache_shape()
|
||||
except:
|
||||
max_cache_length = past_key_values.get_max_length() # deprecated in transformers 4.48
|
||||
max_cache_length = (
|
||||
past_key_values.get_max_length()
|
||||
) # deprecated in transformers 4.48
|
||||
cache_length = (
|
||||
past_length
|
||||
if max_cache_length is None
|
||||
|
||||
Reference in New Issue
Block a user