mirror of
https://github.com/zml/zml.git
synced 2026-11-18 18:57:29 +00:00
It's midly annoying to have to specify iota dtype everywhere to .i32. In practice if people want to work with floating point range of number they generally use arange. Also `iota(x.shape(), 0).convert(.f32)` also work and isn't much work than saying `iota(x.shape(), .f32, 0)` For good measure I've added a fallback to .i64 when the given axis has too many elements. I don't think this would cause much trouble, just because the tensor that big aren't very common in the first place. |
History
|
|
|---|---|---|
| .. | ||
| dialects | ||
| BUILD.bazel | ||
| c.h | ||
| mlir.zig | ||
| mlirx.cc | ||
| mlirx.h | ||