This is an automated email from the ASF dual-hosted git repository. wangwei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-singa.git
commit 7470b20301338f3e3aae88e0df4bf86bf9ce5ad3 Author: xuewanqi <[email protected]> AuthorDate: Thu Nov 29 09:20:36 2018 +0000 SINGA-411 Local variable 'params' referenced before assignment - fixed bug. --- python/singa/net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/singa/net.py b/python/singa/net.py index e92d560..e30b075 100755 --- a/python/singa/net.py +++ b/python/singa/net.py @@ -471,8 +471,8 @@ class FeedForwardNet(object): if f.endswith('.bin'): f = f[0:-4] sp = snapshot.Snapshot(f, True, buffer_size) - v = tensor.from_numpy(np.array([__version__])) - sp.write('SINGA_VERSION', v) + #v = tensor.from_numpy(np.array([__version__])) + #sp.write(b'SINGA_VERSION', v) for (name, val) in zip(self.param_names(), self.param_values()): val.to_host() sp.write(name, val)
