From 1e9efc2272ec33b0d627c23c519d128ff2679b0a Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Wed, 28 Feb 2018 14:34:43 +0800 Subject: [PATCH] add comments --- python/paddle/fluid/framework.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index 9a6913859..67bb290cc 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -763,6 +763,7 @@ class Block(object): raise ValueError("unsupported var type: %s", type(v)) self.desc.rename_var(name, new_name) + # NOTE: v is destroyed by C++ after calling rename_var. d = self.desc.find_var(new_name) if var_type == "Parameter": var = Parameter( -- GitLab