mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
parent
fe4ca2f4a7
commit
48da44be24
@ -585,7 +585,7 @@ def _flatten_dynamic_cache_for_fx(cache, spec):
|
||||
return torch.utils._pytree.tree_flatten(dictionary)[0]
|
||||
|
||||
|
||||
if is_torch_greater_or_equal("2.2"):
|
||||
if is_torch_greater_or_equal("2.3"):
|
||||
torch.utils._pytree.register_pytree_node(
|
||||
DynamicCache,
|
||||
_flatten_dynamic_cache,
|
||||
|
Loading…
Reference in New Issue
Block a user