提交 6a873f50 编写于 作者: H Haonan 提交者: Yu Yang

fix the layer name error when stacking RecurrentGroups

* the last layer in the stack already has all the suffixes
上级 1e1a33b5
......@@ -262,8 +262,8 @@ def SubModelEnd(name = None):
def MakeLayerNameInParentSubmodel(name):
suffix = ""
for submodel in g_submodel_stack[1:]:
suffix = "@" + submodel.name + suffix
if len(g_submodel_stack) > 1:
suffix = "@" + g_submodel_stack[-1].name
return name + suffix
def GetLayerBaseName(name):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册