Create a `tensor.insert` canonicalization pattern for rank-0 tensors
Open
collab/nvidia
integrations
- Dominant language
- C++
- Stars
- 3.9k
- Forks
- 1k
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 47
Description
A tensor.insert on a tensor with one element can be canonicalized to a `tensor.from_elements` pattern.
For global variables this may remove the need of a tensor load / the source tensor.
Contributor guide
Assessment
This issue has not been assessed yet.