Tensor.mod (#8458)

it's a python style mod. possibily can be cleaner with a floor div

relaxed the vmin for MOD slightly for cstyle negatives mod, it's more correct and might fix other bugs
This commit is contained in:
chenyu
2024-12-31 11:31:42 -05:00
committed by GitHub
parent ae00fa3b28
commit f3fdec940d
8 changed files with 38 additions and 10 deletions

View File

@@ -63,6 +63,8 @@ Elementwise ops operate on a per element basis. They don't change the shape of t
::: tinygrad.Tensor.sub
::: tinygrad.Tensor.mul
::: tinygrad.Tensor.div
::: tinygrad.Tensor.idiv
::: tinygrad.Tensor.mod
::: tinygrad.Tensor.xor
::: tinygrad.Tensor.lshift
::: tinygrad.Tensor.rshift