Closed Like2021 closed 9 months ago
Do you mean without value_infer?
I think the real problem here is your model with Or operator is not supported.
Thanks for your answer.
I guess that or operator is not supported. Could you teach me how to manually support or skip the or operator?
I tried to skip this operator in the code, but this will affect the shape infer of subsequent operators. I am confused about this and don't know how to solve it. https://github.com/ThanatosShinji/onnx-tool/blob/f06228c4edce44bc33025db9b1bbcbd018173d9f/onnx_tool/graph.py#L823
like:
node = self.nodemap[key]
itensors = []
# skip or
if node.op_type == "Or":
break
for input in node.input:
itensors.append(self.tensormap[input])
otensors = []
for output in node.output:
otensors.append(self.tensormap[output])
I've added this operator to the main branch. you can check out this branch to use.
Thanks for your quick reply!
I think nodes like or can be used without shape_infer?