This commit is contained in:
Aasheesh Singh 2024-01-26 06:10:59 -05:00
parent 9ef9d27012
commit 3e3382c580
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ standard in the field.
Similar to neural network modules, the [`Tensor`](../building-blocks/tensor.md) struct given as a Similar to neural network modules, the [`Tensor`](../building-blocks/tensor.md) struct given as a
parameter also takes the Backend trait as a generic argument, alongside its rank(or dimensionality). Even if it is not parameter also takes the Backend trait as a generic argument, alongside its rank(or dimensionality). Even if it is not
used in this specific example, it is possible to add the kind of the tensor as a third generic used in this specific example, it is possible to add the kind of the tensor as a third generic
argument. For example, a 3-dimensional Tensor of different data types(float, int, bool) would eb defined as following: argument. For example, a 3-dimensional Tensor of different data types(float, int, bool) would be defined as following:
```rust , ignore ```rust , ignore
Tensor<B, 3> // Float tensor (default) Tensor<B, 3> // Float tensor (default)