This is an archive of the discontinued LLVM Phabricator instance.

[mlir] MathApproximations: scalars shape must be 0-rank
ClosedPublic

Authored by ezhulenev on Oct 28 2021, 3:34 PM.

Details

Summary

Using [1] for representing shape of a scalar is incorrect, and will break with vectors of size 1.

  • remove redundant helper functions
  • fix couple of style warnings

Diff Detail

Event Timeline

ezhulenev created this revision.Oct 28 2021, 3:34 PM
ezhulenev requested review of this revision.Oct 28 2021, 3:34 PM
ezhulenev edited the summary of this revision. (Show Details)Oct 28 2021, 3:34 PM
ezhulenev added a reviewer: cota.
ezhulenev added a reviewer: pifon2a.
ezhulenev edited the summary of this revision. (Show Details)
cota accepted this revision.Oct 28 2021, 6:22 PM
This revision is now accepted and ready to land.Oct 28 2021, 6:22 PM
This revision was automatically updated to reflect the committed changes.