From e407c76def7dfeefda3e142823951803d76e1747 Mon Sep 17 00:00:00 2001 From: Zirconium409122 <152716976+Zirconium419122@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:49:54 +0200 Subject: [PATCH] Remainder operator doc (#1836) * Adds remainder ops implementation for Tensor. * Adds test for % operator. * Add remainder and % operator entry in tensor.md --------- Co-authored-by: Jonas Kantic --- burn-book/src/building-blocks/tensor.md | 1 + 1 file changed, 1 insertion(+) diff --git a/burn-book/src/building-blocks/tensor.md b/burn-book/src/building-blocks/tensor.md index 408709af6..46c02079c 100644 --- a/burn-book/src/building-blocks/tensor.md +++ b/burn-book/src/building-blocks/tensor.md @@ -228,6 +228,7 @@ Those operations are available for numeric tensor kinds: `Float` and `Int`. | `tensor.powf_scalar(scalar)` or `tensor.powi_scalar(intscalar)` | `tensor.pow(scalar)` | | `tensor.prod()` | `tensor.prod()` | | `tensor.prod_dim(dim)` | `tensor.prod(dim, keepdim=True)` | +| `tensor.rem(other)` or `tensor % other` | `tensor % other` | | `tensor.scatter(dim, indices, values)` | `tensor.scatter_add(dim, indices, values)` | | `tensor.select(dim, indices)` | `tensor.index_select(dim, indices)` | | `tensor.select_assign(dim, indices, values)` | N/A |