提交 a125ef1a 编写于 作者: Y Yu Yang

Fix unittest

上级 606a99d9
......@@ -117,7 +117,9 @@ class Layer(object):
continue
layer.to_proto(context=context)
if self.use_context_name():
if self.context_name() is None:
return ret_val
elif self.use_context_name():
return context[self.context_name()]
else:
return context[self.name]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册