Skip to content

Commit

Permalink
fix: minor fix to suffix variable names with :0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Jul 26, 2024
1 parent 0a357b6 commit fa4ed6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/stateful/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def _build(self, *args, **kwargs):
import tensorflow as tf

def _get_variable_name(variable):
return variable.path.split("/")[-2] + "/" + variable.name
return variable.path.split("/")[-2] + "/" + variable.name + ":0"

self._native_params = ivy.Container(
OrderedDict(
Expand Down

0 comments on commit fa4ed6b

Please sign in to comment.