Skip to content

Commit

Permalink
(fix)(stateful)(module.py): fixed a bug within the build method for `…
Browse files Browse the repository at this point in the history
…_KerasIvyModule`
  • Loading branch information
YushaArif99 committed Jun 2, 2024
1 parent 9a5a578 commit e36b7a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ivy/stateful/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,10 @@ def _create_variables(self, device=None, dtype=None):
def _build(self, *args, **kwargs):
self._native_params = ivy.Container(
OrderedDict(
sorted([(param.name, param) for param in self._native_module.variables])
sorted(
[(param.name, param) for param in self._native_module.variables],
key=lambda kv: kv[0],
)
),
dynamic_backend=False,
)
Expand Down

0 comments on commit e36b7a9

Please sign in to comment.