0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-18 18:57:29 +00:00
zml/mlir
Guillaume Wenzek 282cf58b3c
zml: iota default to .i32 (#86)
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 2024-11-15 14:05:36 +01:00
..
dialects stablehlo: add DotAlgorithm support to stablehlo.dot_general (#85) 2024-11-15 14:00:18 +01:00
BUILD.bazel zml: initial release 2024-09-17 11:11:18 +02:00
c.h zml: initial release 2024-09-17 11:11:18 +02:00
mlir.zig zml: iota default to .i32 (#86) 2024-11-15 14:05:36 +01:00
mlirx.cc zml: initial release 2024-09-17 11:11:18 +02:00
mlirx.h zml: initial release 2024-09-17 11:11:18 +02:00