(self, var_or_global_name: Union[TfExpression, str])
return self.var_global_to_local[global_name]
Get the local name of a given variable, without any surrounding name scopes.
Get the local name of a given variable, without any surrounding name scopes.
Get the local name of a given variable without any surrounding name scopes .
def get_var_local_name(self, var_or_global_name: Union[TfExpression, str]) -> str:
        """Get the local name of a given variable, without any surrounding name scopes."""
        assert tfutil.is_tf_expression(var_or_global_name) or isinstance(var_or_global_name, str)
        global_name = var_or_global_name if isinstance(var_or_global_name, str) else var_or_global_name.name
        return self.var_global_to_local[global_name]
def get_var_local_name ( self , var_or_global_name : Union [ TfExpression , str ] ) -> str : assert tfutil . is_tf_expression ( var_or_global_name ) or isinstance ( var_or_global_name , str ) global_name = var_or_global_name if isinstance ( var_or_global_name , str ) else var_or_global_name . name return self . var_global_to_local [ global_name ]