[ONNX] Reduces onnx.Div sinceVersion to 7 (#3041)

The only difference between version 7 and newer versions is support for
different data types. We should allow this pattern to match as early as
7. Earlier versions have a more manual broadcast specification through
attributes, so I did not include those versions.

See: [onnx.Div
docs](https://onnx.ai/onnx/operators/onnx__Div.html#l-onnx-doc-divl)
pull/3042/head
zjgarvey 2024-03-19 15:35:05 -05:00 committed by GitHub
parent 8b96727d0d
commit 7a9608bb69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1388,7 +1388,7 @@ void mlir::torch::onnx_c::populateDefaultDomainAtoF(
return failure();
});
patterns.onOp("Div", 14,
patterns.onOp("Div", 7,
[](OpBinder binder, ConversionPatternRewriter &rewriter) {
Torch::ValueTensorType resultType;
Value lhs, rhs;