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

Commit e7438fa

Browse files
committed
refactor operator
1 parent dc86183 commit e7438fa

13 files changed

+15
-16
lines changed

src/operators/tensor/core.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ trait TensorTrait<T> {
13861386
/// >>> [1,1,1,0,0,0,1,1,1]
13871387
/// ```
13881388
///
1389-
fn less_equal(self: @Tensor<T>, other: @Tensor<T>) -> Tensor<usize>;
1389+
fn less_equal(self: @Tensor<T>, other: @Tensor<T>) -> Tensor<i32>;
13901390
/// #tensor.abs
13911391
///
13921392
/// ```rust

src/operators/tensor/implementations/tensor_bool.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl BoolTensor of TensorTrait<bool> {
121121
panic(array!['not supported!'])
122122
}
123123

124-
fn less_equal(self: @Tensor<bool>, other: @Tensor<bool>) -> Tensor<usize> {
124+
fn less_equal(self: @Tensor<bool>, other: @Tensor<bool>) -> Tensor<i32> {
125125
panic(array!['not supported!'])
126126
}
127127

src/operators/tensor/implementations/tensor_complex64.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl Complex64Tensor of TensorTrait<complex64> {
138138
panic(array!['not supported!'])
139139
}
140140

141-
fn less_equal(self: @Tensor<complex64>, other: @Tensor<complex64>) -> Tensor<usize> {
141+
fn less_equal(self: @Tensor<complex64>, other: @Tensor<complex64>) -> Tensor<i32> {
142142
panic(array!['not supported!'])
143143
}
144144

src/operators/tensor/implementations/tensor_fp16x16.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl FP16x16Tensor of TensorTrait<FP16x16> {
132132
math::less::less(self, other)
133133
}
134134

135-
fn less_equal(self: @Tensor<FP16x16>, other: @Tensor<FP16x16>) -> Tensor<usize> {
135+
fn less_equal(self: @Tensor<FP16x16>, other: @Tensor<FP16x16>) -> Tensor<i32> {
136136
math::less_equal::less_equal(self, other)
137137
}
138138

src/operators/tensor/implementations/tensor_fp16x16wide.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl FP16x16WTensor of TensorTrait<FP16x16W> {
142142
math::less::less(self, other)
143143
}
144144

145-
fn less_equal(self: @Tensor<FP16x16W>, other: @Tensor<FP16x16W>) -> Tensor<usize> {
145+
fn less_equal(self: @Tensor<FP16x16W>, other: @Tensor<FP16x16W>) -> Tensor<i32> {
146146
math::less_equal::less_equal(self, other)
147147
}
148148

src/operators/tensor/implementations/tensor_fp32x32.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl FP32x32Tensor of TensorTrait<FP32x32> {
129129
math::less::less(self, other)
130130
}
131131

132-
fn less_equal(self: @Tensor<FP32x32>, other: @Tensor<FP32x32>) -> Tensor<usize> {
132+
fn less_equal(self: @Tensor<FP32x32>, other: @Tensor<FP32x32>) -> Tensor<i32> {
133133
math::less_equal::less_equal(self, other)
134134
}
135135

src/operators/tensor/implementations/tensor_fp64x64.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl FP64x64Tensor of TensorTrait<FP64x64> {
129129
math::less::less(self, other)
130130
}
131131

132-
fn less_equal(self: @Tensor<FP64x64>, other: @Tensor<FP64x64>) -> Tensor<usize> {
132+
fn less_equal(self: @Tensor<FP64x64>, other: @Tensor<FP64x64>) -> Tensor<i32> {
133133
math::less_equal::less_equal(self, other)
134134
}
135135

src/operators/tensor/implementations/tensor_fp8x23.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl FP8x23Tensor of TensorTrait<FP8x23> {
129129
math::less::less(self, other)
130130
}
131131

132-
fn less_equal(self: @Tensor<FP8x23>, other: @Tensor<FP8x23>) -> Tensor<usize> {
132+
fn less_equal(self: @Tensor<FP8x23>, other: @Tensor<FP8x23>) -> Tensor<i32> {
133133
math::less_equal::less_equal(self, other)
134134
}
135135

src/operators/tensor/implementations/tensor_fp8x23wide.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl FP8x23WTensor of TensorTrait<FP8x23W> {
132132
math::less::less(self, other)
133133
}
134134

135-
fn less_equal(self: @Tensor<FP8x23W>, other: @Tensor<FP8x23W>) -> Tensor<usize> {
135+
fn less_equal(self: @Tensor<FP8x23W>, other: @Tensor<FP8x23W>) -> Tensor<i32> {
136136
math::less_equal::less_equal(self, other)
137137
}
138138

src/operators/tensor/implementations/tensor_i32.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl I32Tensor of TensorTrait<i32> {
130130
math::less::less(self, other)
131131
}
132132

133-
fn less_equal(self: @Tensor<i32>, other: @Tensor<i32>) -> Tensor<usize> {
133+
fn less_equal(self: @Tensor<i32>, other: @Tensor<i32>) -> Tensor<i32> {
134134
math::less_equal::less_equal(self, other)
135135
}
136136

0 commit comments

Comments
 (0)