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

fix bug in tf_decoder

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