-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transform: (stencil-tensorize-z-dimension) Tensorize arith.constant d…
…irectly (#2970) Add support for directly tensorising `arith.constant`, e.g. ``` %0 = arith.constant dense<1.666600e-01> : tensor<510xf32> ``` The more generic way of tensorising any scalar operand (independent of its source) would be `linalg.fill`ing the value a newly created empty tensor. This still works as a generic way. However, in the special case that the scalar operand is a constant, this is much shorter. --------- Co-authored-by: n-io <[email protected]>
- Loading branch information
Showing
2 changed files
with
111 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters