提交 4fa76871 编写于 作者: S SunAhong1993

fix optimizer

上级 3de7b734
...@@ -186,7 +186,6 @@ class DygraphInterpolateBilinearFuser(FuseBase): ...@@ -186,7 +186,6 @@ class DygraphInterpolateBilinearFuser(FuseBase):
inputs={ inputs={
"input": "interpolate-input-0", "input": "interpolate-input-0",
"size": "interpolate-input-3", "size": "interpolate-input-3",
"scale_factor": gen_name(21)
}, },
outputs=[gen_name(23)]) outputs=[gen_name(23)])
pattern_block_block.add_layer( pattern_block_block.add_layer(
...@@ -295,6 +294,5 @@ class DygraphInterpolateBilinearFuser(FuseBase): ...@@ -295,6 +294,5 @@ class DygraphInterpolateBilinearFuser(FuseBase):
layer = matches[layers_id[9]] layer = matches[layers_id[9]]
new_layer.outputs[0] = layer.outputs[0] new_layer.outputs[0] = layer.outputs[0]
new_layer.layer_id = layers_id[7] new_layer.layer_id = layers_id[7]
new_layer.inputs.pop("scale_factor")
new_layer.inputs["size"] = size new_layer.inputs["size"] = size
return new_layer return new_layer
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册