Skip to content

Commit

Permalink
fix(export): not throw for unknown structures
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Jan 15, 2022
1 parent 235a886 commit 8e04d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchslim/quantizing/qat_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def onnx_post_process(onnx_model):
if node.op_type == "Conv" or node.op_type == "Add":
children = get_children(onnx_model, node)
if len(children) != 1:
raise RuntimeError("the number of children node must be 1")
continue
if children[0].op_type == "Relu":
continue
if children[0].op_type == "QuantizeLinear":
Expand Down

0 comments on commit 8e04d0d

Please sign in to comment.