Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 0db954f

Browse files
committed
update doc
1 parent 0b8f19c commit 0db954f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/framework/operators/tensor/tensor.less_equal.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#tensor.less_equal
22

33
```rust
4-
fn less_equal(self: @Tensor<T>, other: @Tensor<T>) -> Tensor<usize>;
4+
fn less_equal(self: @Tensor<T>, other: @Tensor<T>) -> Tensor<i32>;
55
```
66

77
Check if each element of the first tensor is less than or equal to the corresponding element of the second tensor.
@@ -20,7 +20,7 @@ The input tensors must have either:
2020

2121
## Returns
2222

23-
A new `Tensor<usize>` of booleans (0 or 1) with the same shape as the broadcasted inputs.
23+
A new `Tensor<i32>` of booleans (0 or 1) with the same shape as the broadcasted inputs.
2424

2525
## Examples
2626

@@ -31,7 +31,7 @@ use core::array::{ArrayTrait, SpanTrait};
3131

3232
use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor};
3333

34-
fn less_equal_example() -> Tensor<usize> {
34+
fn less_equal_example() -> Tensor<i32> {
3535
let tensor_1 = TensorTrait::<u32>::new(
3636
shape: array![3, 3, 3].span(), data: array![0, 1, 2, 3, 4, 5, 6, 7, 8].span(),
3737
);
@@ -53,7 +53,7 @@ use core::array::{ArrayTrait, SpanTrait};
5353

5454
use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor};
5555

56-
fn less_equal_example() -> Tensor<usize> {
56+
fn less_equal_example() -> Tensor<i32> {
5757
let tensor_1 = TensorTrait::<u32>::new(
5858
shape: array![3, 3, 3].span(), data: array![0, 1, 2, 3, 4, 5, 6, 7, 8].span(),
5959
);

src/operators/tensor/core.cairo

+4-4
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ trait TensorTrait<T> {
13211321
/// #tensor.less_equal
13221322
///
13231323
/// ```rust
1324-
/// fn less_equal(self: @Tensor<T>, other: @Tensor<T>) -> Tensor<usize>;
1324+
/// fn less_equal(self: @Tensor<T>, other: @Tensor<T>) -> Tensor<i32>;
13251325
/// ```
13261326
///
13271327
/// Check if each element of the first tensor is less than or equal to the corresponding element of the second tensor.
@@ -1340,7 +1340,7 @@ trait TensorTrait<T> {
13401340
///
13411341
/// ## Returns
13421342
///
1343-
/// A new `Tensor<usize>` of booleans (0 or 1) with the same shape as the broadcasted inputs.
1343+
/// A new `Tensor<i32>` of booleans (0 or 1) with the same shape as the broadcasted inputs.
13441344
///
13451345
/// ## Examples
13461346
///
@@ -1351,7 +1351,7 @@ trait TensorTrait<T> {
13511351
///
13521352
/// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor};
13531353
///
1354-
/// fn less_equal_example() -> Tensor<usize> {
1354+
/// fn less_equal_example() -> Tensor<i32> {
13551355
/// let tensor_1 = TensorTrait::<u32>::new(
13561356
/// shape: array![3, 3, 3].span(), data: array![0, 1, 2, 3, 4, 5, 6, 7, 8].span(),
13571357
/// );
@@ -1373,7 +1373,7 @@ trait TensorTrait<T> {
13731373
///
13741374
/// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor};
13751375
///
1376-
/// fn less_equal_example() -> Tensor<usize> {
1376+
/// fn less_equal_example() -> Tensor<i32> {
13771377
/// let tensor_1 = TensorTrait::<u32>::new(
13781378
/// shape: array![3, 3, 3].span(), data: array![0, 1, 2, 3, 4, 5, 6, 7, 8].span(),
13791379
/// );

0 commit comments

Comments
 (0)