提交 fc7f72c0 编写于 作者: W wangyang59

modified after reyoung's comments

上级 48a6168c
...@@ -713,9 +713,8 @@ class MixedLayerType(LayerOutput): ...@@ -713,9 +713,8 @@ class MixedLayerType(LayerOutput):
return self return self
def __exit__(self, exc_type, exc_value, tb): def __exit__(self, exc_type, exc_value, tb):
if exc_type != None: if exc_value is not None:
traceback.print_exception(exc_type, exc_value, tb) raise exc_value
sys.exit(1)
assert len(self.inputs) != 0 assert len(self.inputs) != 0
ml = MixedLayer( ml = MixedLayer(
name=self.name, name=self.name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册