Skip to content

Commit fd7939f

Browse files
aupheliamaltanar
authored andcommitted
[MaxpoolNHWC] Remove opset version for from execute_node fct
1 parent 83d337e commit fd7939f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/qonnx/custom_op/general/maxpoolnhwc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ def execute_node(self, context, graph):
9797
inp_vi = helper.make_tensor_value_info(inp_name, TensorProto.FLOAT, inp.shape)
9898
out_vi = helper.make_tensor_value_info(out_name, TensorProto.FLOAT, dummy_out.shape)
9999
tmp_graph = helper.make_graph(nodes=[node], name="tmp_graph", inputs=[inp_vi], outputs=[out_vi])
100-
opset_version = self.onnx_opset_version
101-
opset_imports = [helper.make_opsetid("", opset_version)]
102-
onnx_kwargs = {"opset_imports": opset_imports}
103-
tmp_model = qonnx_make_model(tmp_graph, producer_name="finn", **onnx_kwargs)
100+
tmp_model = qonnx_make_model(tmp_graph, producer_name="finn")
104101
tmp_model = ModelWrapper(tmp_model)
105102
new_ctx = {inp_name: inp}
106103
from qonnx.core.onnx_exec import execute_onnx

0 commit comments

Comments
 (0)