提交 377d9b8d 编写于 作者: S SunAhong1993

fix

上级 bd0c3521
......@@ -205,7 +205,7 @@ class ONNXGraph(Graph):
shape = raw_input(
"Shape of Input(e.g. -1,3,224,224), enter 'N' to skip: "
)
except:
except NameError:
shape = input(
"Shape of Input(e.g. -1,3,224,224), enter 'N' to skip: "
)
......
......@@ -272,7 +272,7 @@ class OpSet9():
ipt = inputs.pop("x")
inputs["input"] = ipt
mode = node.get_attr('mode', 'nearest')
attrs = attrs.update({"align_corners": False})
attrs.update({"align_corners": False})
self.paddle_graph.add_layer(
kernel="fluid.layers.resize_nearest",
inputs=inputs,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册