Skip to content

Commit

Permalink
make fixup :D
Browse files Browse the repository at this point in the history
  • Loading branch information
gante committed Aug 22, 2024
1 parent 914a7ea commit e8492bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transformers/generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2170,9 +2170,9 @@ def typeerror():
type(result.past_key_values) == DynamicCache # noqa E721
or (
isinstance(result.past_key_values, EncoderDecoderCache)
and type(result.past_key_values.self_attention_cache) == DynamicCache
and type(result.past_key_values.cross_attention_cache) == DynamicCache
) # noqa E721
and type(result.past_key_values.self_attention_cache) == DynamicCache # noqa E721
and type(result.past_key_values.cross_attention_cache) == DynamicCache # noqa E721
)
)
if not is_user_defined_cache and is_default_cache_type:
logger.warning_once(
Expand Down

0 comments on commit e8492bf

Please sign in to comment.