提交 5de6130e 编写于 作者: M mamingjie-China

fix bug in tf_decoder

上级 0fe47612
......@@ -285,7 +285,6 @@ class TFGraph(Graph):
def data_format_propagation(self, node):
current_node = self.node_map[node.layer_name]
current_node = node.tf_data_format
outputs = current_node.outputs
if len(outputs) == 0:
return
......@@ -416,7 +415,7 @@ class TFDecoder(object):
else:
value = graph_node.layer.attr["shape"].shape
shape = [dim.size for dim in value.dim]
self.input_info[graph_node.layer_name] = (shape, dtype)
self.input_info[layer.name] = (shape, dtype)
return input_map
......
......@@ -806,7 +806,7 @@ class TFOpMapperNHWC(OpMapper):
"transpose", inputs=input, output=node, param_attr=attr)
input = node
else:
self.data_format_propagation(node)
self.graph.data_format_propagation(node)
attr = {
"bias_attr": False,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册