The neutral element got minf/maxf should be respectively +inf and -inf.
Bug reported by @Hardcode84.
Paths
| Differential D137385
[mlir][linalg] Fix neutral element value for minf/maxf ClosedPublic Authored by ThomasRaoux on Nov 3 2022, 9:28 PM.
Details Summary The neutral element got minf/maxf should be respectively +inf and -inf. Bug reported by @Hardcode84.
Diff Detail Event TimelineComment Actions LGTM
This revision is now accepted and ready to land.Nov 4 2022, 2:24 AM Closed by commit rGa032b47e7e77: [mlir][linalg] Fix neutral element value for minf/maxf (authored by ThomasRaoux). · Explain WhyNov 4 2022, 9:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 473119 mlir/lib/Dialect/Linalg/Utils/Utils.cpp
mlir/test/Dialect/Linalg/transform-op-split-reduction.mlir
|
Side question: Does anyone know why they are printed as hex instead of +/-inf? Doesn't look very user-friendly.