We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be76e92 commit 4a03f6aCopy full SHA for 4a03f6a
1 file changed
onnxoptimizer/passes/eliminate_shape_gather.h
@@ -48,7 +48,7 @@ struct EliminateShapeGather final : public PredicateBasedPass {
48
49
ONNX_ASSERT(indices_val < dims.size());
50
51
- if (!dims[indices_val].is_int) {
+ if (!dims[indices_val].is_int || dims[indices_val].dim == -1) {
52
return false;
53
}
54
0 commit comments