提交 6c3cb861 编写于 作者: J jiangjiajun

fix bug

上级 8ec74138
...@@ -341,9 +341,12 @@ class TFDecoder(object): ...@@ -341,9 +341,12 @@ class TFDecoder(object):
need_define_shape = 2 need_define_shape = 2
if need_define_shape == 1: if need_define_shape == 1:
shape = graph_node.out_shapes[0] try:
if len(shape) > 0 and shape.count(-1) < 2: shape = graph_node.out_shapes[0]
need_define_shape = 0 if len(shape) > 0 and shape.count(-1) < 2:
need_define_shape = 0
except:
pass
if need_define_shape > 0: if need_define_shape > 0:
shape = None shape = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册