Skip to content

Commit

Permalink
Markdown Formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Kun <[email protected]>
  • Loading branch information
AlexanderViand-Intel and j2kun committed Jul 5, 2024
1 parent c9c863a commit 14e7cd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Transforms/TensorToScalars/TensorToScalars.td
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ def TensorToScalars : Pass<"convert-tensor-to-scalars"> {
This pass will convert a static-shaped tensor type to a TypeRange
containing product(dim) copies of the element type of the tensor.
This pass currently includes two patterns:

1. It converts tensor.from_elements operations to
the corresponding scalar inputs.
2. It converts tensor.insert operations by updating the
ValueRange corresponding to the converted input and r
updating it with the scalar to be inserted.

It also applies folders greedily to simplify, e.g., extract(from_elements).

Note: The pass is designed to be run on an IR, where the only operations
Expand Down

0 comments on commit 14e7cd3

Please sign in to comment.