From fa4ed6ba515376d4697f455f48d9c1eea980e5c7 Mon Sep 17 00:00:00 2001 From: Sam-Armstrong Date: Fri, 26 Jul 2024 02:28:30 +0100 Subject: [PATCH] fix: minor fix to suffix variable names with :0 --- ivy/stateful/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy/stateful/module.py b/ivy/stateful/module.py index d8deaa031d989..c89e9706ad3d7 100644 --- a/ivy/stateful/module.py +++ b/ivy/stateful/module.py @@ -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(