Skip to content

Commit

Permalink
Fix: pytree warning
Browse files Browse the repository at this point in the history
  • Loading branch information
i-colbert committed Dec 31, 2024
1 parent 39ce837 commit 96700eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/brevitas/backport/fx/immutable_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

from typing import Any, Dict, List, Tuple

from torch.utils._pytree import _register_pytree_node
from torch.utils._pytree import register_pytree_node
from torch.utils._pytree import Context

from ._compatibility import compatibility
Expand Down Expand Up @@ -111,5 +111,5 @@ def _immutable_list_unflatten(values: List[Any], context: Context) -> List[Any]:
return immutable_list(values)


_register_pytree_node(immutable_dict, _immutable_dict_flatten, _immutable_dict_unflatten)
_register_pytree_node(immutable_list, _immutable_list_flatten, _immutable_list_unflatten)
register_pytree_node(immutable_dict, _immutable_dict_flatten, _immutable_dict_unflatten)
register_pytree_node(immutable_list, _immutable_list_flatten, _immutable_list_unflatten)

0 comments on commit 96700eb

Please sign in to comment.