diff --git a/.gitignore b/.gitignore index 5a0c79267..f6cc39621 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ __pycache__ neural_network/.venv +.vscode/ Scarb.lock \ No newline at end of file diff --git a/Scarb.toml b/Scarb.toml index cf6169b1f..cdf7d336d 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -1,6 +1,6 @@ [package] name = "orion" -version = "0.2.0" +version = "0.2.1" cairo-version = "2.4.0" edition = "2023_10" description = "ONNX Runtime in Cairo for verifiable ML inference using STARK" diff --git a/docgen/src/main.rs b/docgen/src/main.rs index ed2a69460..180e18256 100644 --- a/docgen/src/main.rs +++ b/docgen/src/main.rs @@ -35,14 +35,6 @@ fn main() { doc_trait(trait_path, doc_path, label); doc_functions(trait_path, doc_path, trait_name, label); - // SIGNED INTEGER DOC - let trait_path = "src/numbers/signed_integer/integer_trait.cairo"; - let doc_path = "docs/framework/numbers/signed-integer"; - let label = "int"; - let trait_name: &str = "IntegerTrait"; - doc_trait(trait_path, doc_path, label); - doc_functions(trait_path, doc_path, trait_name, label); - // COMPLEX NUMBER DOC let trait_path = "src/numbers/complex_number/complex_trait.cairo"; let doc_path = "docs/framework/numbers/complex-number"; diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md index f956159ec..649e411f9 100644 --- a/docs/SUMMARY.md +++ b/docs/SUMMARY.md @@ -11,13 +11,6 @@ * [Contribute](framework/contribute.md) * [Compatibility](framework/compatibility.md) * [Numbers](framework/numbers/README.md) - * [Signed Integer](framework/numbers/signed-integer/README.md) - * [int.new](framework/numbers/signed-integer/int.new.md) - * [int.div\_rem](framework/numbers/signed-integer/int.div\_rem.md) - * [int.abs](framework/numbers/signed-integer/int.abs.md) - * [int.max](framework/numbers/signed-integer/int.max.md) - * [int.min](framework/numbers/signed-integer/int.min.md) - * [int.sign](framework/numbers/signed-integer/int.sign.md) * [Fixed Point](framework/numbers/fixed-point/README.md) * [fp.new](framework/numbers/fixed-point/fp.new.md) * [fp.new\_unscaled](framework/numbers/fixed-point/fp.new\_unscaled.md) @@ -36,6 +29,37 @@ * [fp.sin](framework/numbers/fixed-point/fp.sin.md) * [fp.atan](framework/numbers/fixed-point/fp.atan.md) * [fp.sign](framework/numbers/fixed-point/fp.sign.md) + * [Complex Number](framework/numbers/complex-number/README.md) + * [complex.acos](framework/numbers/complex-number/complex.acos.md) + * [complex.acosh](framework/numbers/complex-number/complex.acosh.md) + * [complex.arg](framework/numbers/complex-number/complex.arg.md) + * [complex.asin](framework/numbers/complex-number/complex.asin.md) + * [complex.asinh](framework/numbers/complex-number/complex.asinh.md) + * [complex.atan](framework/numbers/complex-number/complex.atan.md) + * [complex.atanh](framework/numbers/complex-number/complex.atanh.md) + * [complex.conjugate](framework/numbers/complex-number/complex.conjugate.md) + * [complex.cos](framework/numbers/complex-number/complex.cos.md) + * [complex.cosh](framework/numbers/complex-number/complex.cosh.md) + * [complex.exp](framework/numbers/complex-number/complex.exp.md) + * [complex.exp2](framework/numbers/complex-number/complex.exp2.md) + * [complex.from\_polar](framework/numbers/complex-number/complex.from\_polar.md) + * [complex.img](framework/numbers/complex-number/complex.img.md) + * [complex.ln](framework/numbers/complex-number/complex.ln.md) + * [complex.log2](framework/numbers/complex-number/complex.log2.md) + * [complex.log10](framework/numbers/complex-number/complex.log10.md) + * [complex.mag](framework/numbers/complex-number/complex.mag.md) + * [complex.new](framework/numbers/complex-number/complex.new.md) + * [complex.one](framework/numbers/complex-number/complex.one.md) + * [complex.pow](framework/numbers/complex-number/complex.pow.md) + * [complex.real](framework/numbers/complex-number/complex.real.md) + * [complex.reciprocal](framework/numbers/complex-number/complex.reciprocal.md) + * [complex.sin](framework/numbers/complex-number/complex.sin.md) + * [complex.sinh](framework/numbers/complex-number/complex.sinh.md) + * [complex.sqrt](framework/numbers/complex-number/complex.sqrt.md) + * [complex.tan](framework/numbers/complex-number/complex.tan.md) + * [complex.tanh](framework/numbers/complex-number/complex.tanh.md) + * [complex.to\_polar](framework/numbers/complex-number/complex.to\_polar.md) + * [complex.zero](framework/numbers/complex-number/complex.zero.md) * [Operators](framework/operators/README.md) * [Tensor](framework/operators/tensor/README.md) * [tensor.new](framework/operators/tensor/tensor.new.md) @@ -122,13 +146,13 @@ * [tensor.reduce\_log\_sum](framework/operators/tensor/tensor.reduce\_log\_sum.md) * [tensor.unique](framework/operators/tensor/tensor.unique.md) * [tensor.compress](framework/operators/tensor/tensor.compress.md) - * [tensor.layer_normalization](framework/operators/tensor/tensor.layer_normalization.md) + * [tensor.layer\_normalization](framework/operators/tensor/tensor.layer\_normalization.md) * [Neural Network](framework/operators/neural-network/README.md) * [nn.relu](framework/operators/neural-network/nn.relu.md) * [nn.leaky\_relu](framework/operators/neural-network/nn.leaky\_relu.md) * [nn.sigmoid](framework/operators/neural-network/nn.sigmoid.md) * [nn.softmax](framework/operators/neural-network/nn.softmax.md) - * [nn.softmax_zero](framework/operators/neural-network/nn.softmax_zero.md) + * [nn.softmax\_zero](framework/operators/neural-network/nn.softmax\_zero.md) * [nn.logsoftmax](framework/operators/neural-network/nn.logsoftmax.md) * [nn.softsign](framework/operators/neural-network/nn.softsign.md) * [nn.softplus](framework/operators/neural-network/nn.softplus.md) @@ -157,7 +181,6 @@ * [sequence.sequence\_insert](framework/operators/sequence/sequence.sequence\_insert.md) * [sequence.concat\_from\_sequence](framework/operators/sequence/sequence.concat\_from\_sequence.md) - ## 🏛 Hub * [Models](hub/algorithms.md) diff --git a/docs/academy/tutorials/mnist-classification-with-orion.md b/docs/academy/tutorials/mnist-classification-with-orion.md index d6ce8a388..4e2b193cc 100644 --- a/docs/academy/tutorials/mnist-classification-with-orion.md +++ b/docs/academy/tutorials/mnist-classification-with-orion.md @@ -458,7 +458,7 @@ fn fc1_bias() -> Tensor { #### Signed Integer in Orion -In Cairo, there are no built-in signed integers. However, in the field of machine learning, they are very useful. So Orion introduced a full implementation of [Signed Integer](../../framework/numbers/signed-integer/). It is represented by a struct containing both the magnitude and its sign as a boolean. +In Cairo, there are no built-in signed integers. However, in the field of machine learning, they are very useful. So Orion introduced a full implementation of [Signed Integer](broken-reference). It is represented by a struct containing both the magnitude and its sign as a boolean. The magnitude represents the absolute value of the number, and the sign indicates whether the number is positive or negative. diff --git a/docs/framework/get-started.md b/docs/framework/get-started.md index ca8612509..bef91c4e0 100644 --- a/docs/framework/get-started.md +++ b/docs/framework/get-started.md @@ -60,7 +60,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::operators::nn::{NNTrait, I32NN}; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; fn relu_example() -> Tensor { let tensor = TensorTrait::::new( diff --git a/docs/framework/numbers/README.md b/docs/framework/numbers/README.md index d28567d33..1c9d9b274 100644 --- a/docs/framework/numbers/README.md +++ b/docs/framework/numbers/README.md @@ -2,4 +2,4 @@ A full implementation of Signed Integer, Fixed Point and Complex Number in Cairo. -
Signed Integersigned-integer
Fixed Pointfixed-point
Complex Numbercomplex-number
+
Signed IntegerBroken link
Fixed Pointfixed-point
Complex Numbercomplex-number
diff --git a/docs/framework/numbers/signed-integer/README.md b/docs/framework/numbers/signed-integer/README.md deleted file mode 100644 index 2ae0a6c5e..000000000 --- a/docs/framework/numbers/signed-integer/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# Signed Integer - -```rust -use orion::numbers::signed_integer; -``` - -A `signed_integer` is represented by a structure containing both the magnitude and its sign as a boolean. - -The magnitude represents the absolute value of the number, and the sign indicates whether the number is positive or negative. - -```rust -// Example of an i32. -struct i32 { - mag: u32, - sign: bool, // true means a negative sign. -} -``` - -### Data types - -Orion supports currently five `signed_integer` types. - -| Data type | dtype | -| --------------- | ------ | -| 8-bit integer | `i8` | -| 16-bit integer | `i16` | -| 32-bit integer | `i32` | -| 64-bit integer | `i64` | -| 128-bit integer | `i128` | - -### **IntegerTrait** - -```rust -use orion::numbers::signed_integer::IntegerTrait; -``` - -`IntegerTrait` defines the operations that can be performed on an integer. - -| function | description | -| --- | --- | -| [`int.new`](int.new.md) | Constructs a new `signed_integer | -| [`int.div_rem`](int.div\_rem.md) | Computes `signed_integer` division and modulus simultaneously | -| [`int.abs`](int.abs.md) | Computes the absolute value of the given `signed_integer` | -| [`int.max`](int.max.md) | Returns the maximum between two `signed_integer` | -| [`int.min`](int.min.md) | Returns the minimum between two `signed_integer` | -| [`int.sign`](int.sign.md) | Returns an element-wise indication of the given `signed_integer` | - -### Arithmetic & Comparison operators - -`signed_integer` implements arithmetic and comparison traits. This allows you to perform basic arithmetic operations using the associated operators. (`+`, `-`, `*`, `/` ), as well as relational operators (`>`, `>=` ,`<` , `<=` , `==`, `!=` ). - -#### Examples - -```rust -fn add_i32_example() -> i32 { - // We instantiate two signed integer here. - // a = 42 - // b = -10 - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(10, true); - - // We can add two signed integer as follows. - return a + b; -} ->>> 32 -``` - -```rust -fn compare_i32_example() -> bool { - // We instantiate two signed integer here. - // a = 42 - // b = -10 - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(10, true); - - // We can compare two signed integer as follows. - return a > b; -} ->>> true -``` diff --git a/docs/framework/numbers/signed-integer/int.abs.md b/docs/framework/numbers/signed-integer/int.abs.md deleted file mode 100644 index 325dd1bb9..000000000 --- a/docs/framework/numbers/signed-integer/int.abs.md +++ /dev/null @@ -1,28 +0,0 @@ -# int.abs - -```rust -fn abs(self: T) -> T; -``` - -Computes the absolute value of a signed\_integer. - -## Args - -`self`(`T`) - The signed integer to which the absolute value is applied - -## Returns - -A signed integer ``, representing the absolute value of `self` . - -## Examples - -```rust -fn abs_example() -> i32 { - // We instantiate signed integers here. - let int = IntegerTrait::::new(42, true); - - // We can call `abs` function as follows. - a.abs() -} ->>> {mag: 42, sign: false} // = 42 -``` diff --git a/docs/framework/numbers/signed-integer/int.div_rem.md b/docs/framework/numbers/signed-integer/int.div_rem.md deleted file mode 100644 index 75e2b9406..000000000 --- a/docs/framework/numbers/signed-integer/int.div_rem.md +++ /dev/null @@ -1,34 +0,0 @@ -# int.div_rem - -```rust -fn div_rem(self: T, other: T) -> (T, T); -``` - -Computes signed\_integer division and modulus simultaneously - -## Args - -* `self`(`T`) - The dividend -* `other`(`T`) - The divisor - -## Panics - -Panics if the divisor is zero. - -## Returns - -A tuple of signed integer ``, containing the quotient and the remainder of the division. - -## Examples - -```rust -fn div_rem_example() -> (i32, i32) { - // We instantiate signed integers here. - let a = IntegerTrait::::new(13, false); - let b = IntegerTrait::::new(5, false); - - // We can call `div_rem` function as follows. - a.div_rem(b) -} ->>> ({mag: 2, sign: false}, {mag: 3, sign: false}) // = (2, 3) -``` diff --git a/docs/framework/numbers/signed-integer/int.max.md b/docs/framework/numbers/signed-integer/int.max.md deleted file mode 100644 index b615df2fb..000000000 --- a/docs/framework/numbers/signed-integer/int.max.md +++ /dev/null @@ -1,30 +0,0 @@ -# int.max - -```rust -fn max(self: T, other: T) -> T; -``` - -Returns the maximum between two signed\_integer. - -## Args - -*`self`(`T`) - The first signed integer to compare. -* `other`(`T`) - The second signed integer to compare. - -## Returns - -A signed integer ``, The maximum between `self` and `other`. - -## Examples - -```rust -fn max_example() -> i32 { - // We instantiate signed integer here. - let a = IntegerTrait::::new(42, true); - let b = IntegerTrait::::new(13, false); - - // We can call `max` function as follows. - a.max(b) -} ->>> {mag: 13, sign: false} // as 13 > -42 -``` diff --git a/docs/framework/numbers/signed-integer/int.min.md b/docs/framework/numbers/signed-integer/int.min.md deleted file mode 100644 index 2abe61fba..000000000 --- a/docs/framework/numbers/signed-integer/int.min.md +++ /dev/null @@ -1,31 +0,0 @@ -# int.min - -```rust -fn min(self: T, other: T) -> T; -``` - -Returns the minimum between two signed\_integer. - -## Args - -`self`(`T`) - The first signed integer to compare. -`other`(`T`) - The second signed integer to compare. - -## Returns - -A signed integer ``, The minimum between `self` and `other`. - -## Examples - - -```rust -fn min_example() -> i32 { - // We instantiate signed integer here. - let a = IntegerTrait::::new(42, true); - let b = IntegerTrait::::new(13, false); - - // We can call `max` function as follows. - a.min(b) -} ->>> {mag: 42, sign: true} // as -42 < 13 -``` diff --git a/docs/framework/numbers/signed-integer/int.new.md b/docs/framework/numbers/signed-integer/int.new.md deleted file mode 100644 index 24fc1dc6e..000000000 --- a/docs/framework/numbers/signed-integer/int.new.md +++ /dev/null @@ -1,38 +0,0 @@ -# IntegerTrait::new - -```rust -fn new(mag: MAG, sign: bool) -> T; -``` - -Returns a new signed integer. - -## Args - -* `mag`(`MAG`) - The magnitude of the integer. -* `sign`(`bool`) - The sign of the integer, where `true` represents a negative number. - -> _`` generic type depends on the uint type (u8, u16, u32, u64, u128)._ - -## Panics - -Panics if `mag` is out of range. - -## Returns - -A new signed integer. - -## Examples - -```rust -fn new_i8_example() -> i8 { - IntegerTrait::::new(42_u8, true) -} ->>> {mag: 42, sign: true} // = -42 -``` - -```rust -fn panic_i8_example() -> i8 { - IntegerTrait::::new(129_u8, true) -} ->>> panics with "int: out of range" -``` diff --git a/docs/framework/numbers/signed-integer/int.sign.md b/docs/framework/numbers/signed-integer/int.sign.md deleted file mode 100644 index 76ad6bb52..000000000 --- a/docs/framework/numbers/signed-integer/int.sign.md +++ /dev/null @@ -1,29 +0,0 @@ -# int.sign - -```rust -fn sign(self: T, other: T) -> T; -``` - -Returns an element-wise indication of the given signed_integer. - -## Args - -`self`(`T`) - The input value to which the signed value is applied. - -## Returns - -An element-wise indication of the sign of a number. - -## Examples - - -```rust -fn sign_example() -> i32 { - // We instantiate signed integer here. - let a = IntegerTrait::::new(42, true); - - // We can call `sign` function as follows. - a.sign() -} ->>> {mag: 1, sign: true} -``` diff --git a/docs/framework/operators/neural-network/nn.gemm.md b/docs/framework/operators/neural-network/nn.gemm.md index b89d884fc..4ac734d73 100644 --- a/docs/framework/operators/neural-network/nn.gemm.md +++ b/docs/framework/operators/neural-network/nn.gemm.md @@ -1,4 +1,4 @@ -# NNTrait::gemm +# nn.gemm ```rust fn gemm( @@ -12,19 +12,18 @@ ) -> Tensor; ``` -Performs General Matrix multiplication: https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms#Level_3 +Performs General Matrix multiplication: [https://en.wikipedia.org/wiki/Basic\_Linear\_Algebra\_Subprograms#Level\_3](https://en.wikipedia.org/wiki/Basic\_Linear\_Algebra\_Subprograms#Level\_3) * A' = transpose(A) if transA else A * B' = transpose(B) if transB else B -Compute `Y = alpha * A' * B' + beta * C`, where input tensor A has shape (M, K) or (K, M), input tensor B has shape (K, N) or (N, K), input tensor C is broadcastable to shape (M, N), and output tensor Y has shape (M, N). -`A` will be transposed before doing the computation if attribute `transA` is `true`, same for `B` and `transB`. +Compute `Y = alpha * A' * B' + beta * C`, where input tensor A has shape (M, K) or (K, M), input tensor B has shape (K, N) or (N, K), input tensor C is broadcastable to shape (M, N), and output tensor Y has shape (M, N). `A` will be transposed before doing the computation if attribute `transA` is `true`, same for `B` and `transB`. ## Args * `A`(`Tensor`) - Input tensor A. The shape of `A` should be (M, K) if `transA` is `false`, or (K, M) if `transA` is `true`. * `B`(`Tensor`) - Input tensor B. The shape of `B` should be (K, N) if `transB` is `false`, or (N, K) if `transB` is `true`. -* `C`(`Option>`) - Optional input tensor C. The shape of C should be unidirectional broadcastable to (M, N). +* `C`(`Option>`) - Optional input tensor C. The shape of C should be unidirectional broadcastable to (M, N). * `alpha`(`Option`) - Optional scalar multiplier for the product of input tensors `A * B`. * `beta`(`Option`) - Optional scalar multiplier for input tensor `C`. * `transA`(`bool`) - Whether `A` should be transposed. @@ -64,4 +63,4 @@ A `Tensor` of shape (M, N). return y; } >>> tensor of shape [3;5] -```` +``` diff --git a/docs/framework/operators/neural-network/nn.linear.md b/docs/framework/operators/neural-network/nn.linear.md index 60d9079c8..285301d37 100644 --- a/docs/framework/operators/neural-network/nn.linear.md +++ b/docs/framework/operators/neural-network/nn.linear.md @@ -27,14 +27,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::operators::nn::{NNTrait, I32NN}; -use orion::numbers::{i32, IntegerTrait}; fn linear_example() -> Tensor { // We instantiate inputs here. let inputs = TensorTrait::::new( shape: array![3].span(), data: array![ - IntegerTrait::new(71, true), IntegerTrait::new(38, false), IntegerTrait::new(62, false), + -71, 38, 62, ] .span(), ); @@ -43,12 +42,12 @@ fn linear_example() -> Tensor { let weights = TensorTrait::::new( shape: array![2, 3].span(), data: array![ - IntegerTrait::new(8, true), - IntegerTrait::new(64, false), - IntegerTrait::new(40, false), - IntegerTrait::new(33, true), - IntegerTrait::new(34, true), - IntegerTrait::new(20, true), + -8, + 64, + 40, + -33, + -34, + -20, ] .span(), ); @@ -56,7 +55,7 @@ fn linear_example() -> Tensor { // We instantiate bias here. let bias = TensorTrait::::new( shape: array![2].span(), - data: array![IntegerTrait::new(61, false), IntegerTrait::new(61, true),].span(), + data: array![61, -61].span(), ); return NNTrait::linear(inputs, weights, bias); diff --git a/docs/framework/operators/neural-network/nn.relu.md b/docs/framework/operators/neural-network/nn.relu.md index aff9a322a..20fe48480 100644 --- a/docs/framework/operators/neural-network/nn.relu.md +++ b/docs/framework/operators/neural-network/nn.relu.md @@ -25,18 +25,11 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; use orion::operators::nn::{NNTrait, I32NN}; -use orion::numbers::{i32, IntegerTrait}; fn relu_example() -> Tensor { let tensor = TensorTrait::::new( shape: array![2, 2].span(), - data: array![ - IntegerTrait::new(1, false), - IntegerTrait::new(2, false), - IntegerTrait::new(1, true), - IntegerTrait::new(2, true), - ] - .span(), + data: array![1, 2, -1, -2].span(), ); return NNTrait::relu(@tensor); diff --git a/docs/framework/operators/sequence/sequence.sequence_at.md b/docs/framework/operators/sequence/sequence.sequence_at.md index 386c594a6..749ecdce3 100644 --- a/docs/framework/operators/sequence/sequence.sequence_at.md +++ b/docs/framework/operators/sequence/sequence.sequence_at.md @@ -26,7 +26,6 @@ The tensor `Tensor` from the sequence at the specified position. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; -use orion::numbers::{i32, IntegerTrait}; fn sequence_at_example() -> Tensor { let tensor1 = TensorTrait::new(shape: array![2, 2].span(), data: array![0, 1, 2, 3].span()); diff --git a/docs/framework/operators/sequence/sequence.sequence_erase.md b/docs/framework/operators/sequence/sequence.sequence_erase.md index 6bce32316..cb259a9b2 100644 --- a/docs/framework/operators/sequence/sequence.sequence_erase.md +++ b/docs/framework/operators/sequence/sequence.sequence_erase.md @@ -26,7 +26,6 @@ The tensor sequence `Array>` with the erased tensor at the specified p use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; -use orion::numbers::{i32, IntegerTrait}; fn sequence_erase_example() -> Tensor { let tensor1 = TensorTrait::new(shape: array![2, 2].span(), data: array![0, 1, 2, 3].span()); diff --git a/docs/framework/operators/sequence/sequence.sequence_insert.md b/docs/framework/operators/sequence/sequence.sequence_insert.md index 3f5ae339e..2c10e5a6f 100644 --- a/docs/framework/operators/sequence/sequence.sequence_insert.md +++ b/docs/framework/operators/sequence/sequence.sequence_insert.md @@ -19,6 +19,8 @@ Tensor sequence containing 'tensor' inserted into 'self' at 'position'. ## Examples Let's insert the tensor [2] into the sequence [[1], [3]] at position 1. + +```rust use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor, U32Tensor}; fn sequence_insert_example() -> Array> { @@ -43,7 +45,7 @@ fn sequence_insert_example() -> Array> { // Prepare position let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::::new(); - data.append(i32 { mag: 1, sign: false }); + data.append(1); let position = TensorTrait::::new(shape.span(), data.span()) let sequence = self.sequence_insert(tensor, Option::Some(position)); diff --git a/docs/framework/operators/tensor/tensor.abs.md b/docs/framework/operators/tensor/tensor.abs.md index 0f3e3cc85..09c2e630a 100644 --- a/docs/framework/operators/tensor/tensor.abs.md +++ b/docs/framework/operators/tensor/tensor.abs.md @@ -22,13 +22,12 @@ the absolute value of all elements in the input tensor. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; -use orion::numbers::{i32, IntegerTrait}; fn abs_example() -> Tensor { let tensor = TensorTrait::new( shape: array![3].span(), data: array![ - IntegerTrait::new(1, true), IntegerTrait::new(2, true), IntegerTrait::new(3, false) + -1, -2, 3 ] .span(), ); diff --git a/docs/framework/operators/tensor/tensor.and.md b/docs/framework/operators/tensor/tensor.and.md index b26f9bdbb..d7e3ded32 100644 --- a/docs/framework/operators/tensor/tensor.and.md +++ b/docs/framework/operators/tensor/tensor.and.md @@ -27,7 +27,7 @@ A new `Tensor` with the same shape as the broadcasted inputs. ```rust use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; +use orion::operators::tensor::{TensorTrait, Tensor, BoolTensor}; fn and_example() -> Tensor { let tensor_1 = TensorTrait::::new( diff --git a/docs/framework/operators/tensor/tensor.array_feature_extractor.md b/docs/framework/operators/tensor/tensor.array_feature_extractor.md index f5cec209e..8d9903c7a 100644 --- a/docs/framework/operators/tensor/tensor.array_feature_extractor.md +++ b/docs/framework/operators/tensor/tensor.array_feature_extractor.md @@ -24,17 +24,15 @@ A new `Tensor` of the same shape as the input tensor with selected elements b ```rust use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor, U32Tensor}; -use orion::numbers::{i32, IntegerTrait}; fn array_feature_extractor_example() -> Tensor { let input_tensor = TensorTrait::new( shape: array![3, 4].span(), data: array![ - IntegerTrait::new(0, false), IntegerTrait::new(1, false), IntegerTrait::new(2, false), IntegerTrait::new(3, false), - IntegerTrait::new(4, false), IntegerTrait::new(5, false), IntegerTrait::new(6, false), IntegerTrait::new(7, false), - IntegerTrait::new(8, false), IntegerTrait::new(9, false), IntegerTrait::new(10, false), IntegerTrait::new(11, false) - ] - .span(), + 0, 1, 2, 3, + 4, 5, 6, 7, + 8, 9, 10, 11 + ].span(), ); let indices = TensorTrait::::new( diff --git a/docs/framework/operators/tensor/tensor.compress.md b/docs/framework/operators/tensor/tensor.compress.md index 59cb043b3..d29390f9c 100644 --- a/docs/framework/operators/tensor/tensor.compress.md +++ b/docs/framework/operators/tensor/tensor.compress.md @@ -19,6 +19,13 @@ Selects slices from an input tensor along a given axis where condition evaluates ## Returns A new `Tensor` . + +## Example + +```rust +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + fn compress_example() -> Tensor { let tensor = TensorTrait::::new( shape: array![3, 2].span(), diff --git a/docs/framework/operators/tensor/tensor.dequantize_linear.md b/docs/framework/operators/tensor/tensor.dequantize_linear.md index b7410f8c4..745d98782 100644 --- a/docs/framework/operators/tensor/tensor.dequantize_linear.md +++ b/docs/framework/operators/tensor/tensor.dequantize_linear.md @@ -33,29 +33,22 @@ fp16x16wide tensor, not supported. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; - use orion::numbers::{i8, i32, IntegerTrait}; fn dequantize_linear_example() -> Tensor { // We instantiate a 1D Tensor here. let x = TensorTrait::::new( shape: array![4].span(), - data: array![ - IntegerTrait::new(0, false), - IntegerTrait::new(3, false), - IntegerTrait::new(125, false), - IntegerTrait::new(127, false), - ] - .span(), + data: array![0, 3, 125, 127].span(), ); // We instantiate the x_scale here. let x_scale = TensorTrait::::new( - shape: array![1].span(), data: array![IntegerTrait::new(2, false)].span(), + shape: array![1].span(), data: array![2].span(), ); // We instantiate the x_zero_point here. let x_zero_point = TensorTrait::::new( - shape: array![1].span(), data: array![IntegerTrait::new(0, false)].span(), + shape: array![1].span(), data: array![0].span(), ); return x.dequantize_linear(@x_scale, @x_zero_point); diff --git a/docs/framework/operators/tensor/tensor.exp.md b/docs/framework/operators/tensor/tensor.exp.md index ecaa0a44a..e08973699 100644 --- a/docs/framework/operators/tensor/tensor.exp.md +++ b/docs/framework/operators/tensor/tensor.exp.md @@ -30,7 +30,7 @@ use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; fn exp_example() -> Tensor { - let tensor = TensorTrait::::new( + let tensor = TensorTrait::::new( shape: array![2, 2].span(), data: array![ FixedTrait::new_unscaled(0, false), diff --git a/docs/framework/operators/tensor/tensor.gather_nd.md b/docs/framework/operators/tensor/tensor.gather_nd.md index a922b41ad..e6a285b05 100644 --- a/docs/framework/operators/tensor/tensor.gather_nd.md +++ b/docs/framework/operators/tensor/tensor.gather_nd.md @@ -18,9 +18,15 @@ Given data tensor of rank r >= 1, indices tensor of rank q >= 1, and batch_dims * Panics if If indices_shape[-1] > r-b. * Panics if first b dimensions of the shape of indices tensor and data tensor are not equal. -## Returns +## Returns +A new `Tensor`. + +## Example + +```rust +use array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; -A new `Tensor` . fn gather_nd_example() -> Tensor { let tensor = TensorTrait::::new( shape: array![2, 2].span(), diff --git a/docs/framework/operators/tensor/tensor.identity.md b/docs/framework/operators/tensor/tensor.identity.md index 43a25c564..2392c823b 100644 --- a/docs/framework/operators/tensor/tensor.identity.md +++ b/docs/framework/operators/tensor/tensor.identity.md @@ -19,10 +19,10 @@ A new `Tensor` to copy input into. ```rust use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; +use orion::operators::tensor::{TensorTrait, Tensor, i32Tensor}; -fn identity_example() -> Tensor { - let tensor = TensorTrait::::new( +fn identity_example() -> Tensor { + let tensor = TensorTrait::::new( shape: array![2, 2].span(), data: array![1, 2, 3, 4].span(), ); diff --git a/docs/framework/operators/tensor/tensor.is_nan.md b/docs/framework/operators/tensor/tensor.is_nan.md index 955edc0f9..af6cfa222 100644 --- a/docs/framework/operators/tensor/tensor.is_nan.md +++ b/docs/framework/operators/tensor/tensor.is_nan.md @@ -14,8 +14,9 @@ Maps NaN to true and other values to false. A new `Tensor` instance with entries set to true iff the input tensors corresponding element was NaN. -## Examples +## Example +```rust use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{BoolTensor, TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FixedTrait, FP8x23}; diff --git a/docs/framework/operators/tensor/tensor.log.md b/docs/framework/operators/tensor/tensor.log.md index 7ed4e9e2a..4eaa3b960 100644 --- a/docs/framework/operators/tensor/tensor.log.md +++ b/docs/framework/operators/tensor/tensor.log.md @@ -30,7 +30,7 @@ use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; use orion::numbers::{FP8x23, FixedTrait}; fn log_example() -> Tensor { - let tensor = TensorTrait::::new( + let tensor = TensorTrait::::new( shape: array![2, 2].span(), data: array![ FixedTrait::new_unscaled(0, false), diff --git a/docs/framework/operators/tensor/tensor.matmul.md b/docs/framework/operators/tensor/tensor.matmul.md index 378d661be..dce511f10 100644 --- a/docs/framework/operators/tensor/tensor.matmul.md +++ b/docs/framework/operators/tensor/tensor.matmul.md @@ -33,7 +33,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; -fn dot_product_example() -> Tensor { +fn dot_product_example() -> Tensor { let tensor_1 = TensorTrait::::new(shape: array![3].span(), data: array![0, 1, 2].span(),); let tensor_2 = TensorTrait::::new(shape: array![3].span(), data: array![0, 1, 2].span(),); @@ -51,7 +51,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; -fn matrix_mul_example() -> Tensor { +fn matrix_mul_example() -> Tensor { let tensor_1 = TensorTrait::::new( shape: array![2, 2].span(), data: array![244, 99, 109, 162].span() ); @@ -73,7 +73,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; -fn matrix_vec_mul_example() -> Tensor { +fn matrix_vec_mul_example() -> Tensor { let tensor_1 = TensorTrait::::new( shape: array![3, 3].span(), data: array![0, 1, 2, 3, 4, 5, 6, 7, 8].span(), ); diff --git a/docs/framework/operators/tensor/tensor.neg.md b/docs/framework/operators/tensor/tensor.neg.md index 8b4a1a93e..1215ea89b 100644 --- a/docs/framework/operators/tensor/tensor.neg.md +++ b/docs/framework/operators/tensor/tensor.neg.md @@ -22,13 +22,12 @@ the negation of all elements in the input tensor. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; -use orion::numbers::{i32, IntegerTrait}; fn neg_example() -> Tensor { let tensor = TensorTrait::new( shape: array![3].span(), data: array![ - IntegerTrait::new(1, true), IntegerTrait::new(2, true), IntegerTrait::new(3, false) + -1, -2, 3 ] .span(), ); diff --git a/docs/framework/operators/tensor/tensor.not.md b/docs/framework/operators/tensor/tensor.not.md index a08250171..f9ee10cd9 100644 --- a/docs/framework/operators/tensor/tensor.not.md +++ b/docs/framework/operators/tensor/tensor.not.md @@ -22,7 +22,6 @@ the negation of all elements in the input tensor. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, BoolTensor}; -use orion::numbers::{i32, IntegerTrait}; fn not_example() -> Tensor { let tensor = TensorTrait::new( diff --git a/docs/framework/operators/tensor/tensor.qlinear_add.md b/docs/framework/operators/tensor/tensor.qlinear_add.md index 508282156..b89987c21 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_add.md +++ b/docs/framework/operators/tensor/tensor.qlinear_add.md @@ -40,7 +40,7 @@ fp16x16wide tensor, not supported. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; -use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; +use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; fn qlinear_add_example() -> Tensor { @@ -48,28 +48,13 @@ fn qlinear_add_example() -> Tensor { i8 >::new( shape: array![2, 3].span(), - data: array![ - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(11_u8, false), - IntegerTrait::::new(11_u8, false), - IntegerTrait::::new(11_u8, false) - ] - .span(), + data: array![6, 6, 6, 11, 11, 11].span(), ); // As the operator supports broadcasting shapes [1, 3] and [2, 3] are compatible - let b = TensorTrait::< - i8 - >::new( + let b = TensorTrait::::new( shape: array![1, 3].span(), - data: array![ - IntegerTrait::::new(40_u8, false), - IntegerTrait::::new(40_u8, false), - IntegerTrait::::new(40_u8, false) - ] - .span(), + data: array![40, 40, 40].span(), ); let a_scale = TensorTrait::< diff --git a/docs/framework/operators/tensor/tensor.qlinear_concat.md b/docs/framework/operators/tensor/tensor.qlinear_concat.md index 6f2b44ff8..2ee486b5d 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_concat.md +++ b/docs/framework/operators/tensor/tensor.qlinear_concat.md @@ -36,7 +36,7 @@ A new `Tensor` concatenated quantized tensor of the dequantized input tensor use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; -use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; +use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; fn qlinear_concat_example() -> Tensor { let tensor1 = TensorTrait::< @@ -44,10 +44,10 @@ fn qlinear_concat_example() -> Tensor { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(5_u8, false), + 5, + 5, + 5, + 5, ] .span(), ); @@ -56,10 +56,10 @@ fn qlinear_concat_example() -> Tensor { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(1_u8, false), + 1, + 1, + 1, + 1, ] .span(), ); diff --git a/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md b/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md index 92b94530f..8d5132b62 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md +++ b/docs/framework/operators/tensor/tensor.qlinear_leakyrelu.md @@ -37,7 +37,7 @@ bool tensor, not supported. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; -use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; +use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; fn qlinear_leakyrelu_example() -> Tensor { @@ -46,12 +46,12 @@ fn qlinear_leakyrelu_example() -> Tensor { >::new( shape: array![2, 3].span(), data: array![ - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(10_u8, false) + -10, + -10, + -10, + 10, + 10, + 10 ] .span(), ); diff --git a/docs/framework/operators/tensor/tensor.qlinear_matmul.md b/docs/framework/operators/tensor/tensor.qlinear_matmul.md index 13ff99602..b5928a8bb 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_matmul.md +++ b/docs/framework/operators/tensor/tensor.qlinear_matmul.md @@ -40,19 +40,19 @@ fp16x16wide tensor, not supported. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; -use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; +use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; fn qlinear_matmul_example() -> Tensor { let a = TensorTrait::< i8 >::new( shape: array![2, 3].span(), data: array![ - IntegerTrait::::new(3_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(3_u8, false) + 3, + 4, + 5, + 2, + 4, + 3 ] .span(), ); @@ -61,9 +61,9 @@ fn qlinear_matmul_example() -> Tensor { >::new( shape: array![3, 1].span(), data: array![ - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(4_u8, false) + 4, + 8, + 4 ] .span(), ); diff --git a/docs/framework/operators/tensor/tensor.qlinear_mul.md b/docs/framework/operators/tensor/tensor.qlinear_mul.md index 695128ce0..e1877a137 100644 --- a/docs/framework/operators/tensor/tensor.qlinear_mul.md +++ b/docs/framework/operators/tensor/tensor.qlinear_mul.md @@ -40,7 +40,7 @@ fp16x16wide tensor, not supported. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; -use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; +use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; ```rust #[test] @@ -50,26 +50,14 @@ fn qlinear_mul_example() -> Tensor{ i8 >::new( shape: array![2, 3].span(), - data: array![ - IntegerTrait::::new(21_u8, false), - IntegerTrait::::new(21_u8, false), - IntegerTrait::::new(21_u8, false), - IntegerTrait::::new(41_u8, false), - IntegerTrait::::new(41_u8, false), - IntegerTrait::::new(41_u8, false) - ] + data: array![21, 21, 21, 41, 41, 41] .span(), ); let b = TensorTrait::< i8 >::new( shape: array![1, 3].span(), - data: array![ - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(12_u8, false) - ] - .span(), + data: array![4, 8, 12].span(), ); let a_scale = TensorTrait::< diff --git a/docs/framework/operators/tensor/tensor.quantize_linear.md b/docs/framework/operators/tensor/tensor.quantize_linear.md index 7b99fef01..aae8e088b 100644 --- a/docs/framework/operators/tensor/tensor.quantize_linear.md +++ b/docs/framework/operators/tensor/tensor.quantize_linear.md @@ -32,31 +32,22 @@ u32 tensor, not supported. use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; -use orion::numbers::{i8, i32, IntegerTrait}; fn quantize_linear_example() -> Tensor { // We instantiate a 1D Tensor here. let x = TensorTrait::::new( shape: array![6].span(), - data: array![ - IntegerTrait::new(0, false), - IntegerTrait::new(2, false), - IntegerTrait::new(3, false), - IntegerTrait::new(1000, false), - IntegerTrait::new(254, true), - IntegerTrait::new(1000, true), - ] - .span(), + data: array![0, 2, 3, 1, -254,-1000].span(), ); // We instantiate the y_scale here. let y_scale = TensorTrait::::new( - shape: array![1].span(), data: array![IntegerTrait::new(2, false)].span(), + shape: array![1].span(), data: array![2].span(), ); // We instantiate the y_zero_point here. let y_zero_point = TensorTrait::::new( - shape: array![1].span(), data: array![IntegerTrait::new(1, false)].span(), + shape: array![1].span(), data: array![1].span(), ); return x.quantize_linear(@y_scale, @y_zero_point); diff --git a/docs/framework/operators/tensor/tensor.reduce_l2.md b/docs/framework/operators/tensor/tensor.reduce_l2.md index 7b75df0ab..3f8e14eb8 100644 --- a/docs/framework/operators/tensor/tensor.reduce_l2.md +++ b/docs/framework/operators/tensor/tensor.reduce_l2.md @@ -18,6 +18,11 @@ Computes the L2 norm of the input tensor's elements along the provided axes. ## Returns A new `Tensor` instance with the specified axis reduced by summing its elements. +## Examples + +```rust +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; fn reduce_l2_example() -> Tensor { diff --git a/docs/framework/operators/tensor/tensor.reduce_log_sum.md b/docs/framework/operators/tensor/tensor.reduce_log_sum.md index f15bce4a9..2b046d905 100644 --- a/docs/framework/operators/tensor/tensor.reduce_log_sum.md +++ b/docs/framework/operators/tensor/tensor.reduce_log_sum.md @@ -18,8 +18,15 @@ Computes the log sum of the input tensor's elements along the provided axes. ## Returns A new `Tensor` instance with the specified axis reduced by summing its elements. +## Examples -fn reduce_log_sum() -> Tensor { +```rust +use core::array::{ArrayTrait, SpanTrait}; + +use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; +use orion::numbers::{FixedTrait, FP16x16}; + +fn reduce_log_sum() -> Tensor { let mut sizes = ArrayTrait::new(); sizes.append(2); diff --git a/docs/framework/operators/tensor/tensor.reduce_sum_square.md b/docs/framework/operators/tensor/tensor.reduce_sum_square.md index 6e174f76b..94a321f0a 100644 --- a/docs/framework/operators/tensor/tensor.reduce_sum_square.md +++ b/docs/framework/operators/tensor/tensor.reduce_sum_square.md @@ -19,6 +19,12 @@ Computes the sum square of the input tensor's elements along the provided axes. A new `Tensor` instance with the specified axis reduced by summing its elements. +## Examples + +```rust +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + fn reduce_sum_square_example() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/docs/framework/operators/tensor/tensor.sign.md b/docs/framework/operators/tensor/tensor.sign.md index 1829b9264..5b2124041 100644 --- a/docs/framework/operators/tensor/tensor.sign.md +++ b/docs/framework/operators/tensor/tensor.sign.md @@ -20,10 +20,10 @@ A new `Tensor` of the same shape as the input tensor with The sign of the inp ```rust use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; +use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; -fn sign_example() -> Tensor { - let tensor = TensorTrait::::new( +fn sign_example() -> Tensor { + let tensor = TensorTrait::::new( shape: array![11].span(), data: array![-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5].span(), ); diff --git a/nodegen/helpers.py b/nodegen/helpers.py index 03fae966c..9983f62e7 100644 --- a/nodegen/helpers.py +++ b/nodegen/helpers.py @@ -166,9 +166,9 @@ def get_data_statement(data: np.ndarray, dtype: Dtype) -> list[str]: case Dtype.U32: return [f"{int(x)}" for x in data.flatten()] case Dtype.I32: - return ["i32 { "+f"mag: {abs(int(x))}, sign: {str(x < 0).lower()} "+"}" for x in data.flatten()] + return [f"{int(x)}" for x in data.flatten()] case Dtype.I8: - return ["i8 { "+f"mag: {abs(int(x))}, sign: {str(x < 0).lower()} "+"}" for x in data.flatten()] + return [f"{int(x)}" for x in data.flatten()] case Dtype.FP8x23: return ["FP8x23 { "+f"mag: {abs(int(x))}, sign: {str(x < 0).lower()} "+"}" for x in data.flatten()] case Dtype.FP16x16: @@ -191,6 +191,7 @@ def get_data_statement_for_sequences(data: Sequence, dtype: Dtype) -> list[list[ def get_all_test_refs(dtypes: list[Dtype], trait: Trait) -> list[str]: refs = [] for dtype in dtypes: + # refs += [*dtype_to_numbers[dtype]] refs += get_test_refs(dtype, trait) return list(set(refs)) @@ -238,18 +239,18 @@ def find_all_types(tensors: list[Tensor | Sequence]) -> list[Dtype]: "orion::operators::nn::NNTrait", ], Trait.SEQUENCE: [ - "array::{ArrayTrait, SpanTrait}", + "core::array::{ArrayTrait, SpanTrait}", "orion::operators::sequence::SequenceTrait", ], } dtype_to_tensor = { - Dtype.U32: ["orion::operators::tensor::U32Tensor",], - Dtype.I32: ["orion::operators::tensor::I32Tensor",], - Dtype.I8: ["orion::operators::tensor::I8Tensor",], - Dtype.FP8x23: ["orion::operators::tensor::FP8x23Tensor",], - Dtype.FP16x16: ["orion::operators::tensor::FP16x16Tensor",], + Dtype.U32: ["orion::operators::tensor::{U32Tensor, U32TensorAdd}",], + Dtype.I32: ["orion::operators::tensor::{I32Tensor, I32TensorAdd}",], + Dtype.I8: ["orion::operators::tensor::{I8Tensor, I8TensorAdd}",], + Dtype.FP8x23: ["orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}",], + Dtype.FP16x16: ["orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}",], Dtype.BOOL: ["orion::operators::tensor::BoolTensor",], Dtype.COMPLEX64: ["orion::operators::tensor::Complex64Tensor",], } @@ -285,9 +286,9 @@ def find_all_types(tensors: list[Tensor | Sequence]) -> list[Dtype]: dtype_to_numbers = { - Dtype.U32: [], - Dtype.I32: ["orion::numbers::{IntegerTrait, i32}",], - Dtype.I8: ["orion::numbers::{IntegerTrait, i8}",], + Dtype.U32: ["orion::numbers::NumberTrait"], + Dtype.I32: ["orion::numbers::NumberTrait"], + Dtype.I8: ["orion::numbers::NumberTrait"], Dtype.FP8x23: ["orion::numbers::{FixedTrait, FP8x23}",], Dtype.FP16x16: ["orion::numbers::{FixedTrait, FP16x16}",], Dtype.BOOL: [], diff --git a/nodegen/node/and.py b/nodegen/node/and.py index dfd28caf0..975f4580f 100644 --- a/nodegen/node/and.py +++ b/nodegen/node/and.py @@ -16,11 +16,11 @@ def default(): z = Tensor(Dtype.BOOL, z.shape, z.flatten()) name = "and_bool" - make_test([x, y], z, "input_0.and(@input_1)", name) + make_test([x, y], z, "BoolTensor::and(@input_0, @input_1)", name) def broadcast(): x = (np.random.randn(3, 4, 5) > 0).astype(bool) - y = (np.random.randn(4, 5) > 0).astype(bool) + y = (np.random.randn(3, 4, 5) > 0).astype(bool) z = np.logical_and(x, y) x = Tensor(Dtype.BOOL, x.shape, x.flatten()) @@ -28,7 +28,7 @@ def broadcast(): z = Tensor(Dtype.BOOL, z.shape, z.flatten()) name = "and_bool_broadcast" - make_test([x, y], z, "input_0.and(@input_1)", name) + make_test([x, y], z, "BoolTensor::and(@input_0, @input_1)", name) default() broadcast() diff --git a/nodegen/node/array_feature_extractor.py b/nodegen/node/array_feature_extractor.py index bf8071e60..88d9ac342 100644 --- a/nodegen/node/array_feature_extractor.py +++ b/nodegen/node/array_feature_extractor.py @@ -1,6 +1,6 @@ import numpy as np from nodegen.node import RunAll -from ..helpers import make_node, make_test, to_fp, Tensor, Dtype, FixedImpl +from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl class Array_feature_extractor(RunAll): @@ -17,8 +17,7 @@ def array_feature_extractor_i32(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "array_feature_extractor_3D_i32" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) def array_feature_extractor_fp8x23(): @@ -33,8 +32,8 @@ def array_feature_extractor_fp8x23(): z.flatten(), FixedImpl.FP8x23)) name = "array_feature_extractor_3D_fp8x23" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) def array_feature_extractor_fp16x16(): @@ -49,8 +48,8 @@ def array_feature_extractor_fp16x16(): z.flatten(), FixedImpl.FP16x16)) name = "array_feature_extractor_3D_fp16x16" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) array_feature_extractor_i32() array_feature_extractor_fp8x23() @@ -69,8 +68,8 @@ def array_feature_extractor_i32(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "array_feature_extractor_2D_i32" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) def array_feature_extractor_fp8x23(): @@ -85,8 +84,8 @@ def array_feature_extractor_fp8x23(): z.flatten(), FixedImpl.FP8x23)) name = "array_feature_extractor_2D_fp8x23" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) def array_feature_extractor_fp16x16(): @@ -101,8 +100,8 @@ def array_feature_extractor_fp16x16(): z.flatten(), FixedImpl.FP16x16)) name = "array_feature_extractor_2D_fp16x16" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) array_feature_extractor_i32() array_feature_extractor_fp8x23() @@ -121,8 +120,8 @@ def array_feature_extractor_i32(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "array_feature_extractor_1D_i32" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) def array_feature_extractor_fp8x23(): @@ -137,8 +136,8 @@ def array_feature_extractor_fp8x23(): z.flatten(), FixedImpl.FP8x23)) name = "array_feature_extractor_1D_fp8x23" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) def array_feature_extractor_fp16x16(): @@ -153,8 +152,8 @@ def array_feature_extractor_fp16x16(): z.flatten(), FixedImpl.FP16x16)) name = "array_feature_extractor_1D_fp16x16" - make_node([x, y], [z], name) - make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1);", name) + + make_test([x, y], z, "TensorTrait::array_feature_extractor(@input_0, input_1)", name) array_feature_extractor_i32() array_feature_extractor_fp8x23() diff --git a/nodegen/node/clip.py b/nodegen/node/clip.py index 393ac4dde..6f165419f 100644 --- a/nodegen/node/clip.py +++ b/nodegen/node/clip.py @@ -15,7 +15,7 @@ def clip_2D(): name = "clip_u32_2d" make_test( - [x], y, "input_0.clip(Option::Some(u32 { mag: 10, sign: false }), Option::Some(u32 { mag: 20, sign: false }))", name) + [x], y, "input_0.clip(Option::Some(10_u32), Option::Some(20_u32))", name) def clip_3D(): x = np.random.randint(0, 255, (20, 10, 5)).astype(np.uint32) @@ -26,7 +26,7 @@ def clip_3D(): name = "clip_u32_3d" make_test( - [x], y, "input_0.clip(Option::Some(u32 { mag: 10, sign: false }), Option::Some(u32 { mag: 20, sign: false }))", name) + [x], y, "input_0.clip(Option::Some(10_u32), Option::Some(20_u32))", name) clip_2D() clip_3D() @@ -42,7 +42,7 @@ def clip_2D(): name = "clip_i32_2d" make_test( - [x], y, "input_0.clip(Option::Some(i32 { mag: 10, sign: true }), Option::Some(i32 { mag: 20, sign: false }))", name) + [x], y, "input_0.clip(Option::Some(-10_i32), Option::Some(20_i32))", name) def clip_3D(): x = np.random.randint(-127, 127, (20, 10, 5)).astype(np.int32) @@ -53,7 +53,7 @@ def clip_3D(): name = "clip_i32_3d" make_test( - [x], y, "input_0.clip(Option::Some(i32 { mag: 10, sign: true }), Option::Some(i32 { mag: 20, sign: false }))", name) + [x], y, "input_0.clip(Option::Some(-10_i32), Option::Some(20_i32))", name) clip_2D() @@ -70,7 +70,7 @@ def clip_2D(): name = "clip_i8_2d" make_test( - [x], y, "input_0.clip(Option::Some(i8 { mag: 10, sign: true }), Option::Some(i8 { mag: 20, sign: false }))", name) + [x], y, "input_0.clip(Option::Some(-10_i8), Option::Some(20_i8))", name) def clip_3D(): x = np.random.randint(-127, 127, (20, 10, 5)).astype(np.int8) @@ -81,7 +81,7 @@ def clip_3D(): name = "clip_i8_3d" make_test( - [x], y, "input_0.clip(Option::Some(i8 { mag: 10, sign: true }), Option::Some(i8 { mag: 20, sign: false }))", name) + [x], y, "input_0.clip(Option::Some(-10_i8), Option::Some(20_i8))", name) clip_2D() clip_3D() diff --git a/nodegen/node/concat_from_sequence.py b/nodegen/node/concat_from_sequence.py index eb6d6c9e1..15e6bb1d2 100644 --- a/nodegen/node/concat_from_sequence.py +++ b/nodegen/node/concat_from_sequence.py @@ -25,7 +25,7 @@ def new_axis_zero(): concatenated_tensor = Tensor(Dtype.U32, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_u32_new_axis_zero" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(0))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0))", name, Trait.SEQUENCE) def new_axis_one(): sequence = [] @@ -45,7 +45,7 @@ def new_axis_one(): concatenated_tensor = Tensor(Dtype.U32, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_u32_new_axis_one" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(1))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1))", name, Trait.SEQUENCE) def new_axis_default(): sequence = [] @@ -65,7 +65,7 @@ def new_axis_default(): concatenated_tensor = Tensor(Dtype.U32, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_u32_new_axis_default" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::None(()))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(()))", name, Trait.SEQUENCE) new_axis_zero() new_axis_one() @@ -92,7 +92,7 @@ def new_axis_zero(): concatenated_tensor = Tensor(Dtype.I32, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_i32_new_axis_zero" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(0))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0))", name, Trait.SEQUENCE) def new_axis_one(): sequence = [] @@ -112,7 +112,7 @@ def new_axis_one(): concatenated_tensor = Tensor(Dtype.I32, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_i32_new_axis_one" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(1))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1))", name, Trait.SEQUENCE) def new_axis_default(): sequence = [] @@ -132,7 +132,7 @@ def new_axis_default(): concatenated_tensor = Tensor(Dtype.I32, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_i32_new_axis_default" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::None(()))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(()))", name, Trait.SEQUENCE) new_axis_zero() new_axis_one() @@ -159,7 +159,7 @@ def new_axis_zero(): concatenated_tensor = Tensor(Dtype.I8, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_i8_new_axis_zero" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(0))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0))", name, Trait.SEQUENCE) def new_axis_one(): sequence = [] @@ -179,7 +179,7 @@ def new_axis_one(): concatenated_tensor = Tensor(Dtype.I8, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_i8_new_axis_one" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(1))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1))", name, Trait.SEQUENCE) def new_axis_default(): sequence = [] @@ -199,7 +199,7 @@ def new_axis_default(): concatenated_tensor = Tensor(Dtype.I8, concatenated_tensor.shape, concatenated_tensor.flatten()) name = "concat_from_sequence_i8_new_axis_default" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::None(()))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(()))", name, Trait.SEQUENCE) new_axis_zero() new_axis_one() @@ -226,7 +226,7 @@ def new_axis_zero(): concatenated_tensor = Tensor(Dtype.FP8x23, concatenated_tensor.shape, to_fp(concatenated_tensor.flatten(), FixedImpl.FP8x23)) name = "concat_from_sequence_fp8x23_new_axis_zero" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(0))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0))", name, Trait.SEQUENCE) def new_axis_one(): sequence = [] @@ -246,7 +246,7 @@ def new_axis_one(): concatenated_tensor = Tensor(Dtype.FP8x23, concatenated_tensor.shape, to_fp(concatenated_tensor.flatten(), FixedImpl.FP8x23)) name = "concat_from_sequence_fp8x23_new_axis_one" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(1))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1))", name, Trait.SEQUENCE) def new_axis_default(): sequence = [] @@ -266,7 +266,7 @@ def new_axis_default(): concatenated_tensor = Tensor(Dtype.FP8x23, concatenated_tensor.shape, to_fp(concatenated_tensor.flatten(), FixedImpl.FP8x23)) name = "concat_from_sequence_fp8x23_new_axis_default" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::None(()))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(()))", name, Trait.SEQUENCE) new_axis_zero() new_axis_one() @@ -293,7 +293,7 @@ def new_axis_zero(): concatenated_tensor = Tensor(Dtype.FP16x16, concatenated_tensor.shape, to_fp(concatenated_tensor.flatten(), FixedImpl.FP16x16)) name = "concat_from_sequence_fp16x16_new_axis_zero" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(0))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0))", name, Trait.SEQUENCE) def new_axis_one(): sequence = [] @@ -313,7 +313,7 @@ def new_axis_one(): concatenated_tensor = Tensor(Dtype.FP16x16, concatenated_tensor.shape, to_fp(concatenated_tensor.flatten(), FixedImpl.FP16x16)) name = "concat_from_sequence_fp16x16_new_axis_one" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::Some(1))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1))", name, Trait.SEQUENCE) def new_axis_default(): sequence = [] @@ -333,7 +333,7 @@ def new_axis_default(): concatenated_tensor = Tensor(Dtype.FP16x16, concatenated_tensor.shape, to_fp(concatenated_tensor.flatten(), FixedImpl.FP16x16)) name = "concat_from_sequence_fp16x16_new_axis_default" - make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, IntegerTrait::::new(1, false), Option::None(()))", name, Trait.SEQUENCE) + make_test([sequence], concatenated_tensor, "SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(()))", name, Trait.SEQUENCE) new_axis_zero() new_axis_one() diff --git a/nodegen/node/div.py b/nodegen/node/div.py index ab7d291db..7068e9023 100644 --- a/nodegen/node/div.py +++ b/nodegen/node/div.py @@ -16,7 +16,7 @@ def default(): z = Tensor(Dtype.U32, z.shape, z.flatten()) name = "div_u32" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) def broadcast(): x = np.random.randint(3, 6, (3, 3, 3)).astype(np.uint32) @@ -28,7 +28,7 @@ def broadcast(): z = Tensor(Dtype.U32, z.shape, z.flatten()) name = "div_u32_broadcast" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) default() broadcast() @@ -45,7 +45,7 @@ def default(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "div_i32" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) def broadcast(): x = np.random.randint(1, 3, (3, 3, 3)).astype(np.int32) @@ -57,7 +57,7 @@ def broadcast(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "div_i32_broadcast" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) default() broadcast() @@ -74,7 +74,7 @@ def default(): z = Tensor(Dtype.I8, z.shape, z.flatten()) name = "div_i8" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) def broadcast(): x = np.random.randint(1, 3, (3, 3, 3)).astype(np.int8) @@ -86,7 +86,7 @@ def broadcast(): z = Tensor(Dtype.I8, z.shape, z.flatten()) name = "div_i8_broadcast" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) default() broadcast() @@ -106,7 +106,7 @@ def default(): z.flatten(), FixedImpl.FP8x23)) name = "div_fp8x23" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) def broadcast(): x = np.random.randint(1, 3, (3, 3, 3)).astype(np.float64) @@ -121,7 +121,7 @@ def broadcast(): z.flatten(), FixedImpl.FP8x23)) name = "div_fp8x23_broadcast" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) default() broadcast() @@ -141,7 +141,7 @@ def default(): z.flatten(), FixedImpl.FP16x16)) name = "div_fp16x16" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) def broadcast(): x = np.random.randint(1, 3, (3, 3, 3)).astype(np.float64) @@ -156,7 +156,7 @@ def broadcast(): z.flatten(), FixedImpl.FP16x16)) name = "div_fp16x16_broadcast" - make_test([x, y], z, "input_0.div(@input_1)", name) + make_test([x, y], z, "input_0 / input_1", name) default() broadcast() diff --git a/nodegen/node/is_inf.py b/nodegen/node/is_inf.py index b4054cbe1..ef67a216c 100644 --- a/nodegen/node/is_inf.py +++ b/nodegen/node/is_inf.py @@ -40,7 +40,7 @@ def positive(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_pos_inf_i32" - make_test([input_0], output, "TensorTrait::is_pos_inf(@input_0, Option::Some(0), Option::Some(1))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(0), Option::Some(1))", name) def negative(): input_0 = np.array([-1, 0, INF, 8, -INF, INF], dtype=np.int32) @@ -50,7 +50,7 @@ def negative(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_neg_inf_i32" - make_test([input_0], output, "TensorTrait::is_neg_inf(@input_0, Option::Some(1), Optoin::Some(0))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(1), Option::Some(0))", name) default() positive() @@ -76,7 +76,7 @@ def positive(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_pos_inf_i8" - make_test([input_0], output, "TensorTrait::is_pos_inf(@input_0, Option::Some(0), Option::Some(1))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(0), Option::Some(1))", name) def negative(): input_0 = np.array([-1, 0, INF, 8, -INF, INF], dtype=np.int32) @@ -86,7 +86,7 @@ def negative(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_neg_inf_i8" - make_test([input_0], output, "TensorTrait::is_neg_inf(@input_0, Option::Some(1), Option::Some(0))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(1), Option::Some(0))", name) default() positive() @@ -113,7 +113,7 @@ def positive(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_pos_inf_fp8x23" - make_test([input_0], output, "TensorTrait::is_pos_inf(@input_0, Option::Some(0), Option::Some(1))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(0), Option::Some(1))", name) def negative(): input_0 = np.array([-1.2, 0, INF, 2.8, -INF, INF], dtype=np.float64) @@ -123,7 +123,7 @@ def negative(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_neg_inf_fp8x23" - make_test([input_0], output, "TensorTrait::is_neg_inf(@input_0, Option::Some(1), Option::Some(0))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(1), Option::Some(0))", name) default() positive() @@ -150,7 +150,7 @@ def positive(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_pos_inf_fp16x16" - make_test([input_0], output, "TensorTrait::is_pos_inf(@input_0, Option::Some(0), Option::Some(1))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(0), Option::Some(1))", name) def negative(): input_0 = np.array([-1.2, 0, INF, 2.8, -INF, INF], dtype=np.float64) @@ -160,7 +160,7 @@ def negative(): output = Tensor(Dtype.BOOL, output.shape, output.flatten()) name = "is_neg_inf_fp16x16" - make_test([input_0], output, "TensorTrait::is_neg_inf(@input_0, Option::Some(1), Option::Some(0))", name) + make_test([input_0], output, "TensorTrait::is_inf(@input_0, Option::Some(1), Option::Some(0))", name) default() positive() diff --git a/nodegen/node/layer_normalization.py b/nodegen/node/layer_normalization.py index 54f6e63fb..0ec875465 100644 --- a/nodegen/node/layer_normalization.py +++ b/nodegen/node/layer_normalization.py @@ -59,10 +59,10 @@ def case(axis: int) -> None: if axis < 0: name = f"layer_normalization_4d_axis_negative_{-axis}" - func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(IntegerTrait::::new({-axis}, true)),Option::None,Option::None)" + func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some({-axis}),Option::None,Option::None)" else: name = f"layer_normalization_4d_axis{axis}" - func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(IntegerTrait::::new({axis}, false)),Option::None,Option::None)" + func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some({axis}),Option::None,Option::None)" x = Tensor(Dtype.FP8x23, X.shape, to_fp(X.flatten(), FixedImpl.FP8x23)) @@ -107,10 +107,10 @@ def case(axis: int) -> None: if axis < 0: name = f"layer_normalization_3d_axis_negative_{-axis}_epsilon" - func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(IntegerTrait::::new({-axis}, true)),Option::Some(FixedTrait::new(6554, false)),Option::None)" + func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some({-axis}),Option::Some(FixedTrait::new(6554, false)),Option::None)" else: name = f"layer_normalization_3d_axis{axis}_epsilon" - func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(IntegerTrait::::new({axis}, false)),Option::Some(FixedTrait::new(6554, false)),Option::None)" + func_sig = f"input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some({axis}),Option::Some(FixedTrait::new(6554, false)),Option::None)" x = Tensor(Dtype.FP16x16, X.shape, to_fp(X.flatten(), FixedImpl.FP16x16)) w = Tensor(Dtype.FP16x16, W.shape, to_fp(W.flatten(), FixedImpl.FP16x16)) diff --git a/nodegen/node/mul.py b/nodegen/node/mul.py index 63b0b863a..bde1734bf 100644 --- a/nodegen/node/mul.py +++ b/nodegen/node/mul.py @@ -16,7 +16,7 @@ def default(): z = Tensor(Dtype.U32, z.shape, z.flatten()) name = "mul_u32" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) def broadcast(): x = np.random.randint(3, 6, (3, 3, 3)).astype(np.uint32) @@ -28,7 +28,7 @@ def broadcast(): z = Tensor(Dtype.U32, z.shape, z.flatten()) name = "mul_u32_broadcast" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) default() broadcast() @@ -45,7 +45,7 @@ def default(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "mul_i32" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.int32) @@ -57,7 +57,7 @@ def broadcast(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "mul_i32_broadcast" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) default() broadcast() @@ -74,7 +74,7 @@ def default(): z = Tensor(Dtype.I8, z.shape, z.flatten()) name = "mul_i8" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.int8) @@ -86,7 +86,7 @@ def broadcast(): z = Tensor(Dtype.I8, z.shape, z.flatten()) name = "mul_i8_broadcast" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) default() broadcast() @@ -106,7 +106,7 @@ def default(): z.flatten(), FixedImpl.FP8x23)) name = "mul_fp8x23" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.float64) @@ -121,7 +121,7 @@ def broadcast(): z.flatten(), FixedImpl.FP8x23)) name = "mul_fp8x23_broadcast" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) default() broadcast() @@ -141,7 +141,7 @@ def default(): z.flatten(), FixedImpl.FP16x16)) name = "mul_fp16x16" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.float64) @@ -156,7 +156,7 @@ def broadcast(): z.flatten(), FixedImpl.FP16x16)) name = "mul_fp16x16_broadcast" - make_test([x, y], z, "input_0.mul(@input_1)", name) + make_test([x, y], z, "input_0 * input_1", name) default() broadcast() diff --git a/nodegen/node/reduce_l1.py b/nodegen/node/reduce_l1.py index 2b5f4ee31..ce5807fb0 100644 --- a/nodegen/node/reduce_l1.py +++ b/nodegen/node/reduce_l1.py @@ -1,6 +1,6 @@ import numpy as np from nodegen.node import RunAll -from ..helpers import make_node, make_test, to_fp, Tensor, Dtype, FixedImpl +from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl import numpy as np @@ -18,7 +18,7 @@ def reduce_l1_export_do_not_keepdims(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "reduce_l1_fp8x23_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, false)", name) @@ -33,7 +33,7 @@ def reduce_l1_export_keepdims(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "reduce_l1_fp8x23_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, true)", name) @@ -48,7 +48,7 @@ def reduce_l1_axis_0(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "reduce_l1_fp8x23_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(0, true)", name) @@ -70,7 +70,7 @@ def reduce_l1_export_do_not_keepdims(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "reduce_l1_fp16x16_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, false)", name) @@ -85,7 +85,7 @@ def reduce_l1_export_keepdims(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "reduce_l1_fp16x16_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, true)", name) @@ -100,7 +100,7 @@ def reduce_l1_axis_0(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "reduce_l1_fp16x16_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(0, true)", name) @@ -122,7 +122,7 @@ def reduce_l1_export_do_not_keepdims(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "reduce_l1_i8_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, false)", name) @@ -137,7 +137,7 @@ def reduce_l1_export_keepdims(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "reduce_l1_i8_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, true)", name) @@ -152,7 +152,7 @@ def reduce_l1_axis_0(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "reduce_l1_i8_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(0, true)", name) @@ -174,7 +174,7 @@ def reduce_l1_export_do_not_keepdims(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "reduce_l1_i32_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, false)", name) @@ -189,7 +189,7 @@ def reduce_l1_export_keepdims(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "reduce_l1_i32_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, true)", name) @@ -204,7 +204,7 @@ def reduce_l1_axis_0(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "reduce_l1_i32_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(0, true)", name) @@ -226,7 +226,7 @@ def reduce_l1_export_do_not_keepdims(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "reduce_l1_u32_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, false)", name) @@ -241,7 +241,7 @@ def reduce_l1_export_keepdims(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "reduce_l1_u32_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(2, true)", name) @@ -256,7 +256,7 @@ def reduce_l1_axis_0(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "reduce_l1_u32_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_l1(0, true)", name) diff --git a/nodegen/node/reduce_sum_square.py b/nodegen/node/reduce_sum_square.py index 79932b236..d028acbc5 100644 --- a/nodegen/node/reduce_sum_square.py +++ b/nodegen/node/reduce_sum_square.py @@ -1,6 +1,6 @@ import numpy as np from nodegen.node import RunAll -from ..helpers import make_node, make_test, to_fp, Tensor, Dtype, FixedImpl +from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl import numpy as np @@ -18,7 +18,7 @@ def reduce_sum_square_export_do_not_keepdims(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "reduce_sum_square_fp8x23_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, false)", name) @@ -33,7 +33,7 @@ def reduce_sum_square_export_keepdims(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "reduce_sum_square_fp8x23_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, true)", name) @@ -48,7 +48,7 @@ def reduce_sum_square_axis_0(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "reduce_sum_square_fp8x23_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(0, true)", name) @@ -70,7 +70,7 @@ def reduce_sum_square_export_do_not_keepdims(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "reduce_sum_square_fp16x16_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, false)", name) @@ -85,7 +85,7 @@ def reduce_sum_square_export_keepdims(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "reduce_sum_square_fp16x16_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, true)", name) @@ -100,7 +100,7 @@ def reduce_sum_square_axis_0(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "reduce_sum_square_fp16x16_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(0, true)", name) @@ -122,7 +122,7 @@ def reduce_sum_square_export_do_not_keepdims(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "reduce_sum_square_i8_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, false)", name) @@ -137,7 +137,7 @@ def reduce_sum_square_export_keepdims(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "reduce_sum_square_i8_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, true)", name) @@ -152,7 +152,7 @@ def reduce_sum_square_axis_0(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "reduce_sum_square_i8_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(0, true)", name) @@ -174,7 +174,7 @@ def reduce_sum_square_export_do_not_keepdims(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "reduce_sum_square_i32_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, false)", name) @@ -189,7 +189,7 @@ def reduce_sum_square_export_keepdims(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "reduce_sum_square_i32_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, true)", name) @@ -204,7 +204,7 @@ def reduce_sum_square_axis_0(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "reduce_sum_square_i32_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(0, true)", name) @@ -226,7 +226,7 @@ def reduce_sum_square_export_do_not_keepdims(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "reduce_sum_square_u32_export_do_not_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, false)", name) @@ -241,7 +241,7 @@ def reduce_sum_square_export_keepdims(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "reduce_sum_square_u32_export_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(2, true)", name) @@ -256,7 +256,7 @@ def reduce_sum_square_axis_0(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "reduce_sum_square_u32_export_negative_axes_keepdims" - make_node([x], [y], name) + make_test( [x], y, "input_0.reduce_sum_square(0, true)", name) diff --git a/nodegen/node/running.py b/nodegen/node/running.py new file mode 100644 index 000000000..b50dbdcd8 --- /dev/null +++ b/nodegen/node/running.py @@ -0,0 +1,48 @@ +import os +import glob + +# Directory path where Python files/modules are located +directory_path = 'nodegen/node/' + +# Get all files in the directory +all_files = os.listdir(directory_path) + +# Filter Python files using glob and '*.py' pattern +python_files = [file[:-3] for file in all_files if file.endswith('.py')] + + +fixed = [ + 'abs', + 'argmax', + 'argmin', + 'concat', + 'cumsum', + 'div', + 'equal', + 'less_equal', + 'greater', + 'linear', + 'matmul', + 'mul', + 'or', + 'reduce_sum', + 'sub', + 'transpose', + 'xor', + 'less', + 'greater_equal', + 'slice', + 'gather', + 'nonzero', + 'squeeze', + 'unsqueeze', + 'sign', + 'clip', + '__init__', + 'running' +] +for node in python_files: + if node not in fixed: + current_dir = os.getcwd() + command = f'python nodegen/node/__init__.py {node}' + os.system(command) \ No newline at end of file diff --git a/nodegen/node/squeeze.py b/nodegen/node/squeeze.py index d34e82b39..2f598e1ea 100644 --- a/nodegen/node/squeeze.py +++ b/nodegen/node/squeeze.py @@ -15,7 +15,7 @@ def squeeze(): name = "squeeze_i8" make_test( - [x], y, "input_0.squeeze(Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()))", name) + [x], y, "input_0.squeeze(Option::Some(array![0_i32, 2_i32].span()))", name) squeeze() @staticmethod @@ -29,7 +29,7 @@ def squeeze(): name = "squeeze_i32" make_test( - [x], y, "input_0.squeeze(Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()))", name) + [x], y, "input_0.squeeze(Option::Some(array![0_i32, 2_i32].span()))", name) squeeze() @staticmethod @@ -43,7 +43,7 @@ def squeeze(): name = "squeeze_u32" make_test( - [x], y, "input_0.squeeze(Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()))", name) + [x], y, "input_0.squeeze(Option::Some(array![0_i32, 2_i32].span()))", name) squeeze() @staticmethod @@ -59,7 +59,7 @@ def squeeze(): name = "squeeze_fP16x16" make_test( - [x], y, "input_0.squeeze(Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()))", name) + [x], y, "input_0.squeeze(Option::Some(array![0_i32, 2_i32].span()))", name) squeeze() @staticmethod @@ -75,5 +75,5 @@ def squeeze(): name = "squeeze_fP8x23" make_test( - [x], y, "input_0.squeeze(Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()))", name) + [x], y, "input_0.squeeze(Option::Some(array![0_i32, 2_i32].span()))", name) squeeze() diff --git a/nodegen/node/sub.py b/nodegen/node/sub.py index dcce20452..f82f5ddb4 100644 --- a/nodegen/node/sub.py +++ b/nodegen/node/sub.py @@ -16,7 +16,7 @@ def default(): z = Tensor(Dtype.U32, z.shape, z.flatten()) name = "sub_u32" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) def broadcast(): x = np.random.randint(3, 6, (3, 3, 3)).astype(np.uint32) @@ -28,7 +28,7 @@ def broadcast(): z = Tensor(Dtype.U32, z.shape, z.flatten()) name = "sub_u32_broadcast" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) default() broadcast() @@ -45,7 +45,7 @@ def default(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "sub_i32" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.int32) @@ -57,7 +57,7 @@ def broadcast(): z = Tensor(Dtype.I32, z.shape, z.flatten()) name = "sub_i32_broadcast" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) default() broadcast() @@ -74,7 +74,7 @@ def default(): z = Tensor(Dtype.I8, z.shape, z.flatten()) name = "sub_i8" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.int8) @@ -86,7 +86,7 @@ def broadcast(): z = Tensor(Dtype.I8, z.shape, z.flatten()) name = "sub_i8_broadcast" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) default() broadcast() @@ -106,7 +106,7 @@ def default(): z.flatten(), FixedImpl.FP8x23)) name = "sub_fp8x23" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.float64) @@ -121,7 +121,7 @@ def broadcast(): z.flatten(), FixedImpl.FP8x23)) name = "sub_fp8x23_broadcast" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) default() broadcast() @@ -141,7 +141,7 @@ def default(): z.flatten(), FixedImpl.FP16x16)) name = "sub_fp16x16" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) def broadcast(): x = np.random.randint(-3, 3, (3, 3, 3)).astype(np.float64) @@ -156,7 +156,7 @@ def broadcast(): z.flatten(), FixedImpl.FP16x16)) name = "sub_fp16x16_broadcast" - make_test([x, y], z, "input_0.sub(@input_1)", name) + make_test([x, y], z, "input_0 - input_1", name) default() broadcast() diff --git a/nodegen/node/trilu.py b/nodegen/node/trilu.py index 87553e48c..611b28ec4 100644 --- a/nodegen/node/trilu.py +++ b/nodegen/node/trilu.py @@ -1,6 +1,6 @@ import numpy as np from nodegen.node import RunAll -from ..helpers import make_node, make_test, to_fp, Tensor, Dtype, FixedImpl +from ..helpers import make_test, to_fp, Tensor, Dtype, FixedImpl class Trilu(RunAll): @@ -14,7 +14,7 @@ def tril(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -26,7 +26,7 @@ def tril_neg(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -38,7 +38,7 @@ def tril_one_row(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -50,7 +50,7 @@ def tril_out_neg(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -7)", name) @@ -63,7 +63,7 @@ def tril_out_pos(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -76,7 +76,7 @@ def tril_pos(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 2)", name) @@ -89,7 +89,7 @@ def tril_square(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -102,7 +102,7 @@ def tril_square_neg(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -115,7 +115,7 @@ def tril_zero(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "tril_u32_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -128,7 +128,7 @@ def triu(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -140,7 +140,7 @@ def triu_neg(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -152,7 +152,7 @@ def triu_one_row(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -164,7 +164,7 @@ def triu_out_neg(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -7)", name) @@ -177,7 +177,7 @@ def triu_out_pos(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -190,7 +190,7 @@ def triu_pos(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 2)", name) @@ -203,7 +203,7 @@ def triu_square(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -216,7 +216,7 @@ def triu_square_neg(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -229,7 +229,7 @@ def triu_zero(): y = Tensor(Dtype.U32, y.shape, y.flatten()) name = "triu_u32_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -263,7 +263,7 @@ def tril(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -275,7 +275,7 @@ def tril_neg(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_neg_i32" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -287,7 +287,7 @@ def tril_one_row(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -299,7 +299,7 @@ def tril_out_neg(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -7)", name) @@ -312,7 +312,7 @@ def tril_out_pos(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -325,7 +325,7 @@ def tril_pos(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 2)", name) @@ -338,7 +338,7 @@ def tril_square(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -351,7 +351,7 @@ def tril_square_neg(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -364,7 +364,7 @@ def tril_zero(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "tril_i32_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -377,7 +377,7 @@ def triu(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -389,7 +389,7 @@ def triu_neg(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -401,7 +401,7 @@ def triu_one_row(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -413,7 +413,7 @@ def triu_out_neg(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -7)", name) @@ -426,7 +426,7 @@ def triu_out_pos(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -439,7 +439,7 @@ def triu_pos(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 2)", name) @@ -452,7 +452,7 @@ def triu_square(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -465,7 +465,7 @@ def triu_square_neg(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -478,7 +478,7 @@ def triu_zero(): y = Tensor(Dtype.I32, y.shape, y.flatten()) name = "triu_i32_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -512,7 +512,7 @@ def tril(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -524,7 +524,7 @@ def tril_neg(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -536,7 +536,7 @@ def tril_one_row(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -548,7 +548,7 @@ def tril_out_neg(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -7)", name) @@ -561,7 +561,7 @@ def tril_out_pos(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -574,7 +574,7 @@ def tril_pos(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 2)", name) @@ -587,7 +587,7 @@ def tril_square(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -600,7 +600,7 @@ def tril_square_neg(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -613,7 +613,7 @@ def tril_zero(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "tril_i8_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -626,7 +626,7 @@ def triu(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -638,7 +638,7 @@ def triu_neg(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -650,7 +650,7 @@ def triu_one_row(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -662,7 +662,7 @@ def triu_out_neg(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -7)", name) @@ -675,7 +675,7 @@ def triu_out_pos(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -688,7 +688,7 @@ def triu_pos(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 2)", name) @@ -701,7 +701,7 @@ def triu_square(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -714,7 +714,7 @@ def triu_square_neg(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -727,7 +727,7 @@ def triu_zero(): y = Tensor(Dtype.I8, y.shape, y.flatten()) name = "triu_i8_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -761,7 +761,7 @@ def tril(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -773,7 +773,7 @@ def tril_neg(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -785,7 +785,7 @@ def tril_one_row(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -797,7 +797,7 @@ def tril_out_neg(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -7)", name) @@ -810,7 +810,7 @@ def tril_out_pos(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -823,7 +823,7 @@ def tril_pos(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 2)", name) @@ -836,7 +836,7 @@ def tril_square(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -849,7 +849,7 @@ def tril_square_neg(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -862,7 +862,7 @@ def tril_zero(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "tril_fp8x23_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -875,7 +875,7 @@ def triu(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -887,7 +887,7 @@ def triu_neg(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -899,7 +899,7 @@ def triu_one_row(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -911,7 +911,7 @@ def triu_out_neg(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -7)", name) @@ -924,7 +924,7 @@ def triu_out_pos(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -937,7 +937,7 @@ def triu_pos(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 2)", name) @@ -950,7 +950,7 @@ def triu_square(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -963,7 +963,7 @@ def triu_square_neg(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -976,7 +976,7 @@ def triu_zero(): y = Tensor(Dtype.FP8x23, y.shape, y.flatten()) name = "triu_fp8x23_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -1010,7 +1010,7 @@ def tril(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -1022,7 +1022,7 @@ def tril_neg(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -1034,7 +1034,7 @@ def tril_one_row(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -1046,7 +1046,7 @@ def tril_out_neg(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -7)", name) @@ -1059,7 +1059,7 @@ def tril_out_pos(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -1072,7 +1072,7 @@ def tril_pos(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 2)", name) @@ -1085,7 +1085,7 @@ def tril_square(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 0)", name) @@ -1098,7 +1098,7 @@ def tril_square_neg(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, -1)", name) @@ -1111,7 +1111,7 @@ def tril_zero(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "tril_fp16x16_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(false, 6)", name) @@ -1124,7 +1124,7 @@ def triu(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -1136,7 +1136,7 @@ def triu_neg(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -1148,7 +1148,7 @@ def triu_one_row(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_one_row" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -1160,7 +1160,7 @@ def triu_out_neg(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_out_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -7)", name) @@ -1173,7 +1173,7 @@ def triu_out_pos(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_out_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) @@ -1186,7 +1186,7 @@ def triu_pos(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_pos" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 2)", name) @@ -1199,7 +1199,7 @@ def triu_square(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_square" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 0)", name) @@ -1212,7 +1212,7 @@ def triu_square_neg(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_square_neg" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, -1)", name) @@ -1225,7 +1225,7 @@ def triu_zero(): y = Tensor(Dtype.FP16x16, y.shape, y.flatten()) name = "triu_fp16x16_zero" - make_node([x], [y], name) + make_test( [x], y, "input_0.trilu(true, 6)", name) diff --git a/nodegen/test_list.py b/nodegen/test_list.py new file mode 100644 index 000000000..989109573 --- /dev/null +++ b/nodegen/test_list.py @@ -0,0 +1,16 @@ +import os +import glob +import subprocess + +# Directory path where Python files/modules are located +directory_path = 'nodegen/node/' + +# Get all files in the directory +all_files = os.listdir(directory_path) + +# Filter Python files using glob and '*.py' pattern +python_files = [file[:-3] for file in all_files if file.endswith('.py')] + +# Print the names of Python files/modules +command = 'python --version' +os.system(command) \ No newline at end of file diff --git a/src/numbers.cairo b/src/numbers.cairo index 99d33c29a..936c128e1 100644 --- a/src/numbers.cairo +++ b/src/numbers.cairo @@ -1,9 +1,11 @@ mod fixed_point; -mod signed_integer; mod complex_number; -use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; +use orion::numbers::fixed_point::implementations::fp8x23::core::{ONE as ONE_fp8x23 }; +use orion::numbers::fixed_point::implementations::fp16x16::core::{ONE as ONE_fp16x16 }; +use orion::numbers::fixed_point::implementations::fp64x64::core::{ONE as ONE_fp64x64 }; +use orion::numbers::fixed_point::implementations::fp32x32::core::{ONE as ONE_fp32x32 }; // Common methods from Fixed Point and Signed Integers. trait NumberTrait { @@ -1428,17 +1430,13 @@ impl FP32x32Number of NumberTrait { } } -use orion::numbers::signed_integer::i8 as i8_core; -use orion::numbers::signed_integer::i8::i8; -use orion::numbers::signed_integer::i8::{i8Add, i8Sub}; - -impl I8Number of NumberTrait { - fn new(mag: u8, sign: bool) -> i8 { - i8 { mag, sign } +impl I8Number of NumberTrait { + fn new(mag: i8, sign: bool) -> i8 { + mag } - fn new_unscaled(mag: u8, sign: bool) -> i8 { - i8 { mag, sign } + fn new_unscaled(mag: i8, sign: bool) -> i8 { + mag } fn from_felt(val: felt252) -> i8 { @@ -1534,10 +1532,10 @@ impl I8Number of NumberTrait { } fn zero() -> i8 { - i8 { mag: 0, sign: false } + 0 } fn is_zero(self: i8) -> bool { - i8_core::i8_eq(self, i8 { mag: 0, sign: false }) + self == 0 } fn half() -> i8 { @@ -1545,51 +1543,63 @@ impl I8Number of NumberTrait { } fn one() -> i8 { - i8 { mag: 1, sign: false } + 1 } fn neg_one() -> i8 { - i8 { mag: 1, sign: true } + -1 } fn is_one(self: i8) -> bool { - i8_core::i8_eq(self, i8 { mag: 1, sign: false }) + self == 1 } fn abs(self: i8) -> i8 { - i8_core::i8_abs(self) + if self >= 0 { + return self; + } else { + self * -1_i8 + } } fn neg(self: i8) -> i8 { - i8_core::i8_neg(self) + self * -1_i8 } fn min_value() -> i8 { - i8 { mag: 128, sign: true } + -127 } fn max_value() -> i8 { - i8 { mag: 127, sign: false } + 127 } fn min(self: i8, other: i8) -> i8 { - i8_core::i8_min(self, other) + if self < other { + return self; + } else { + other + } } fn max(self: i8, other: i8) -> i8 { - i8_core::i8_max(self, other) + if self > other { + return self; + } else { + other + } } - fn mag(self: i8) -> u8 { - self.mag + fn mag(self: i8) -> i8 { + self } fn is_neg(self: i8) -> bool { - self.sign + self < 0 } fn xor(lhs: i8, rhs: i8) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) && lhs.mag != rhs.mag { + if (lhs == 0 || rhs == 0) && lhs != rhs { return true; } else { return false; @@ -1597,7 +1607,7 @@ impl I8Number of NumberTrait { } fn or(lhs: i8, rhs: i8) -> bool { - if (lhs.mag == 0 && rhs.mag == 0) { + if (lhs == 0 && rhs == 0) { return false; } else { return true; @@ -1605,11 +1615,17 @@ impl I8Number of NumberTrait { } fn sign(self: i8) -> i8 { - i8_core::i8_sign(self) + if self == 0 { + return 0_i8; + } else if self > 0 { + return 1_i8; + } else { + -1_i8 + } } fn and(lhs: i8, rhs: i8) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) { + if (lhs == 0 || rhs == 0) { return false; } else { return true; @@ -1617,7 +1633,7 @@ impl I8Number of NumberTrait { } fn where(self: i8, x: i8, y: i8) -> i8 { - if self.mag == 0 { + if self == 0 { return y; } else { return x; @@ -1625,61 +1641,144 @@ impl I8Number of NumberTrait { } fn NaN() -> i8 { - IntegerTrait::NaN() + panic(array!['not supported!']) } fn is_nan(self: i8) -> bool { - IntegerTrait::is_nan(self) + panic(array!['not supported!']) } fn INF() -> i8 { - IntegerTrait::INF() + 127 } fn is_inf(self: i8) -> bool { - IntegerTrait::is_inf(self) + (self == 127 || self == -127) } fn is_pos_inf(self: i8) -> bool { - IntegerTrait::is_pos_inf(self) + self == 127 } fn is_neg_inf(self: i8) -> bool { - IntegerTrait::is_neg_inf(self) + self == -127 } fn bitwise_and(lhs: i8, rhs: i8) -> i8 { - i8_core::i8_bitwise_and(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_xor(lhs: i8, rhs: i8) -> i8 { - i8_core::i8_bitwise_xor(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_or(lhs: i8, rhs: i8) -> i8 { - i8_core::i8_bitwise_or(lhs, rhs) + panic(array!['not supported!']) } fn add(lhs: i8, rhs: i8) -> i8 { - i8Add::add(lhs, rhs) + lhs + rhs } fn sub(lhs: i8, rhs: i8) -> i8 { - i8Sub::sub(lhs, rhs) + lhs - rhs } } -use orion::numbers::signed_integer::i16 as i16_core; -use orion::numbers::signed_integer::i16::i16; -use orion::numbers::signed_integer::i16::{i16Add, i16Sub}; +impl I8Div of Div { + fn div(lhs: i8, rhs: i8) -> i8 { + assert(rhs != 0, 'divisor cannot be 0'); + let mut lhs_positive = lhs; + let mut rhs_positive = rhs; + // making sure everything is positive + if lhs < 0 { + lhs_positive = lhs * -1; + } + if rhs < 0 { + rhs_positive = rhs * -1; + } + //felt252 plays role of a bridge for type casting + let lhs_felt: felt252 = lhs_positive.into(); + let rhs_felt: felt252 = rhs_positive.into(); + let lhs_u128: u128 = lhs_felt.try_into().unwrap(); + let rhs_u128: u128 = rhs_felt.try_into().unwrap(); + let mut result = lhs_u128 / rhs_u128; + let felt_result: felt252 = result.into(); + let signed_int_result: i8 = felt_result.try_into().unwrap(); + if lhs * rhs < 0 { + signed_int_result * -1 + } else { + signed_int_result + } + } +} -impl i16Number of NumberTrait { - fn new(mag: u16, sign: bool) -> i16 { - i16 { mag, sign } +impl I8DivEq of DivEq { + #[inline(always)] + fn div_eq(ref self: i8, other: i8) { + self = Div::div(self, other); } +} - fn new_unscaled(mag: u16, sign: bool) -> i16 { - i16 { mag, sign } +impl I8IntoFP8x23 of Into { + fn into(self: i8) -> FP8x23 { + let number_sign: bool = self < 0; + let mut self_positive: i8 = self; + if number_sign { + self_positive = self_positive * -1_i8 + } + let number_felt: felt252 = self_positive.into(); + let number_u32: u32 = number_felt.try_into().unwrap(); + FP8x23 {mag: number_u32 * ONE_fp8x23, sign: number_sign} + } +} + +impl I8IntoFP16x16 of Into { + fn into(self: i8) -> FP16x16 { + let number_sign: bool = self < 0; + let mut self_positive: i8 = self; + if number_sign { + self_positive = self_positive * -1_i8 + } + let number_felt: felt252 = self_positive.into(); + let number_u32: u32 = number_felt.try_into().unwrap(); + FP16x16 {mag: number_u32 * ONE_fp16x16, sign: number_sign} + } +} + +impl I8IntoFP64x64 of Into { + fn into(self: i8) -> FP64x64 { + let number_sign: bool = self < 0; + let mut self_positive: i8 = self; + if number_sign { + self_positive = self_positive * -1_i8 + } + let number_felt: felt252 = self_positive.into(); + let number_u128: u128 = number_felt.try_into().unwrap(); + FP64x64 {mag: number_u128 * ONE_fp64x64, sign: number_sign} + } +} + +impl I8IntoFP32x32 of Into { + fn into(self: i8) -> FP32x32 { + let number_sign: bool = self < 0; + let mut self_positive: i8 = self; + if number_sign { + self_positive = self_positive * -1_i8 + } + let number_felt: felt252 = self_positive.into(); + let number_u128: u64 = number_felt.try_into().unwrap(); + FP32x32 {mag: number_u128 * ONE_fp32x32, sign: number_sign} + } +} + +impl I16Number of NumberTrait { + fn new(mag: i16, sign: bool) -> i16 { + mag + } + + fn new_unscaled(mag: i16, sign: bool) -> i16 { + mag } fn from_felt(val: felt252) -> i16 { @@ -1775,10 +1874,10 @@ impl i16Number of NumberTrait { } fn zero() -> i16 { - i16 { mag: 0, sign: false } + 0 } fn is_zero(self: i16) -> bool { - i16_core::i16_eq(self, i16 { mag: 0, sign: false }) + self == 0 } fn half() -> i16 { @@ -1786,51 +1885,63 @@ impl i16Number of NumberTrait { } fn one() -> i16 { - i16 { mag: 1, sign: false } + 1 } fn neg_one() -> i16 { - i16 { mag: 1, sign: true } + -1 } fn is_one(self: i16) -> bool { - i16_core::i16_eq(self, i16 { mag: 1, sign: false }) + self == 1 } fn abs(self: i16) -> i16 { - i16_core::i16_abs(self) + if self >= 0 { + return self; + } else { + self * -1_i16 + } } fn neg(self: i16) -> i16 { - i16_core::i16_neg(self) + self * -1_i16 } fn min_value() -> i16 { - i16 { mag: 32768, sign: true } + -32767 } fn max_value() -> i16 { - i16 { mag: 32767, sign: false } + 32767 } fn min(self: i16, other: i16) -> i16 { - i16_core::i16_min(self, other) + if self < other { + return self; + } else { + other + } } fn max(self: i16, other: i16) -> i16 { - i16_core::i16_max(self, other) + if self > other { + return self; + } else { + other + } } - fn mag(self: i16) -> u16 { - self.mag + fn mag(self: i16) -> i16 { + self } fn is_neg(self: i16) -> bool { - self.sign + self < 0 } fn xor(lhs: i16, rhs: i16) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) && lhs.mag != rhs.mag { + if (lhs == 0 || rhs == 0) && lhs != rhs { return true; } else { return false; @@ -1838,7 +1949,7 @@ impl i16Number of NumberTrait { } fn or(lhs: i16, rhs: i16) -> bool { - if (lhs.mag == 0 && rhs.mag == 0) { + if (lhs == 0 && rhs == 0) { return false; } else { return true; @@ -1846,11 +1957,17 @@ impl i16Number of NumberTrait { } fn sign(self: i16) -> i16 { - i16_core::i16_sign(self) + if self == 0 { + return 0_i16; + } else if self > 0 { + return 1_i16; + } else { + -1_i16 + } } fn and(lhs: i16, rhs: i16) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) { + if (lhs == 0 || rhs == 0) { return false; } else { return true; @@ -1858,7 +1975,7 @@ impl i16Number of NumberTrait { } fn where(self: i16, x: i16, y: i16) -> i16 { - if self.mag == 0 { + if self == 0 { return y; } else { return x; @@ -1866,61 +1983,92 @@ impl i16Number of NumberTrait { } fn NaN() -> i16 { - IntegerTrait::NaN() + panic(array!['not supported!']) } fn is_nan(self: i16) -> bool { - IntegerTrait::is_nan(self) + panic(array!['not supported!']) } fn INF() -> i16 { - IntegerTrait::INF() + 32767 } fn is_inf(self: i16) -> bool { - IntegerTrait::is_inf(self) + (self == 32767 || self == -32767) } fn is_pos_inf(self: i16) -> bool { - IntegerTrait::is_pos_inf(self) + self == 32767 } fn is_neg_inf(self: i16) -> bool { - IntegerTrait::is_neg_inf(self) + self == -32767 } fn bitwise_and(lhs: i16, rhs: i16) -> i16 { - i16_core::i16_bitwise_and(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_xor(lhs: i16, rhs: i16) -> i16 { - i16_core::i16_bitwise_xor(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_or(lhs: i16, rhs: i16) -> i16 { - i16_core::i16_bitwise_or(lhs, rhs) + panic(array!['not supported!']) } fn add(lhs: i16, rhs: i16) -> i16 { - i16Add::add(lhs, rhs) + lhs + rhs } fn sub(lhs: i16, rhs: i16) -> i16 { - i16Sub::sub(lhs, rhs) + lhs - rhs } } -use orion::numbers::signed_integer::i32 as i32_core; -use orion::numbers::signed_integer::i32::i32; -use orion::numbers::signed_integer::i32::{i32Add, i32Sub}; +impl I16Div of Div { + fn div(lhs: i16, rhs: i16) -> i16 { + assert(rhs != 0, 'divisor cannot be 0'); + let mut lhs_positive = lhs; + let mut rhs_positive = rhs; + // making sure everything is positive + if lhs < 0 { + lhs_positive = lhs * -1; + } + if rhs < 0 { + rhs_positive = rhs * -1; + } + //felt252 plays role of a bridge for type casting + let lhs_felt: felt252 = lhs_positive.into(); + let rhs_felt: felt252 = rhs_positive.into(); + let lhs_u128: u128 = lhs_felt.try_into().unwrap(); + let rhs_u128: u128 = rhs_felt.try_into().unwrap(); + let mut result = lhs_u128 / rhs_u128; + let felt_result: felt252 = result.into(); + let signed_int_result: i16 = felt_result.try_into().unwrap(); + if lhs * rhs < 0 { + signed_int_result * -1 + } else { + signed_int_result + } + } +} -impl i32Number of NumberTrait { - fn new(mag: u32, sign: bool) -> i32 { - i32 { mag, sign } +impl I16DivEq of DivEq { + #[inline(always)] + fn div_eq(ref self: i16, other: i16) { + self = Div::div(self, other); } +} - fn new_unscaled(mag: u32, sign: bool) -> i32 { - i32 { mag, sign } +impl I32Number of NumberTrait { + fn new(mag: i32, sign: bool) -> i32 { + mag + } + + fn new_unscaled(mag: i32, sign: bool) -> i32 { + mag } fn from_felt(val: felt252) -> i32 { @@ -2016,10 +2164,10 @@ impl i32Number of NumberTrait { } fn zero() -> i32 { - i32 { mag: 0, sign: false } + 0 } fn is_zero(self: i32) -> bool { - i32_core::i32_eq(self, i32 { mag: 0, sign: false }) + self == 0 } fn half() -> i32 { @@ -2027,51 +2175,63 @@ impl i32Number of NumberTrait { } fn one() -> i32 { - i32 { mag: 1, sign: false } + 1 } fn neg_one() -> i32 { - i32 { mag: 1, sign: true } + -1 } fn is_one(self: i32) -> bool { - i32_core::i32_eq(self, i32 { mag: 1, sign: false }) + self == 1 } fn abs(self: i32) -> i32 { - i32_core::i32_abs(self) + if self >= 0 { + return self; + } else { + self * -1_i32 + } } fn neg(self: i32) -> i32 { - i32_core::i32_neg(self) + self * -1_i32 } fn min_value() -> i32 { - i32 { mag: 2147483648, sign: true } + -2147483647 } fn max_value() -> i32 { - i32 { mag: 2147483647, sign: false } + 2147483647 } fn min(self: i32, other: i32) -> i32 { - i32_core::i32_min(self, other) + if self < other { + return self; + } else { + other + } } fn max(self: i32, other: i32) -> i32 { - i32_core::i32_max(self, other) + if self > other { + return self; + } else { + other + } } - fn mag(self: i32) -> u32 { - self.mag + fn mag(self: i32) -> i32 { + self } fn is_neg(self: i32) -> bool { - self.sign + self < 0 } fn xor(lhs: i32, rhs: i32) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) && lhs.mag != rhs.mag { + if (lhs == 0 || rhs == 0) && lhs != rhs { return true; } else { return false; @@ -2079,7 +2239,7 @@ impl i32Number of NumberTrait { } fn or(lhs: i32, rhs: i32) -> bool { - if (lhs.mag == 0 && rhs.mag == 0) { + if (lhs == 0 && rhs == 0) { return false; } else { return true; @@ -2087,11 +2247,17 @@ impl i32Number of NumberTrait { } fn sign(self: i32) -> i32 { - i32_core::i32_sign(self) + if self == 0 { + return 0_i32; + } else if self > 0 { + return 1_i32; + } else { + -1_i32 + } } fn and(lhs: i32, rhs: i32) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) { + if (lhs == 0 || rhs == 0) { return false; } else { return true; @@ -2099,7 +2265,7 @@ impl i32Number of NumberTrait { } fn where(self: i32, x: i32, y: i32) -> i32 { - if self.mag == 0 { + if self == 0 { return y; } else { return x; @@ -2107,61 +2273,105 @@ impl i32Number of NumberTrait { } fn NaN() -> i32 { - IntegerTrait::NaN() + panic(array!['not supported!']) } fn is_nan(self: i32) -> bool { - IntegerTrait::is_nan(self) + panic(array!['not supported!']) } fn INF() -> i32 { - IntegerTrait::INF() + 2147483647 } fn is_inf(self: i32) -> bool { - IntegerTrait::is_inf(self) + (self == 2147483647 || self == -2147483647) } fn is_pos_inf(self: i32) -> bool { - IntegerTrait::is_pos_inf(self) + self == 2147483647 } fn is_neg_inf(self: i32) -> bool { - IntegerTrait::is_neg_inf(self) + self == -2147483647 } fn bitwise_and(lhs: i32, rhs: i32) -> i32 { - i32_core::i32_bitwise_and(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_xor(lhs: i32, rhs: i32) -> i32 { - i32_core::i32_bitwise_xor(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_or(lhs: i32, rhs: i32) -> i32 { - i32_core::i32_bitwise_or(lhs, rhs) + panic(array!['not supported!']) } fn add(lhs: i32, rhs: i32) -> i32 { - i32Add::add(lhs, rhs) + lhs + rhs } fn sub(lhs: i32, rhs: i32) -> i32 { - i32Sub::sub(lhs, rhs) + lhs - rhs } } -use orion::numbers::signed_integer::i64 as i64_core; -use orion::numbers::signed_integer::i64::i64; -use orion::numbers::signed_integer::i64::{i64Add, i64Sub}; +impl I32Div of Div { + fn div(lhs: i32, rhs: i32) -> i32 { + assert(rhs != 0, 'divisor cannot be 0'); + let mut lhs_positive = lhs; + let mut rhs_positive = rhs; + // making sure everything is positive + if lhs < 0 { + lhs_positive = lhs * -1; + } + if rhs < 0 { + rhs_positive = rhs * -1; + } + //felt252 plays role of a bridge for type casting + let lhs_felt: felt252 = lhs_positive.into(); + let rhs_felt: felt252 = rhs_positive.into(); + let lhs_u128: u128 = lhs_felt.try_into().unwrap(); + let rhs_u128: u128 = rhs_felt.try_into().unwrap(); + let mut result = lhs_u128 / rhs_u128; + let felt_result: felt252 = result.into(); + let signed_int_result: i32 = felt_result.try_into().unwrap(); + if lhs * rhs < 0 { + signed_int_result * -1 + } else { + signed_int_result + } + } +} -impl i64Number of NumberTrait { - fn new(mag: u64, sign: bool) -> i64 { - i64 { mag, sign } +impl I32DivEq of DivEq { + #[inline(always)] + fn div_eq(ref self: i32, other: i32) { + self = Div::div(self, other); + } +} + +impl I32IntoU32 of Into { + fn into(self: i32) -> u32 { + let number_sign: bool = self < 0; + let mut self_positive: i32 = self; + if number_sign { + self_positive = self_positive * -1_i32 + } + let number_felt: felt252 = self_positive.into(); + let number_u32: u32 = number_felt.try_into().unwrap(); + number_u32 + } +} + +impl I64Number of NumberTrait { + fn new(mag: i64, sign: bool) -> i64 { + mag } - fn new_unscaled(mag: u64, sign: bool) -> i64 { - i64 { mag, sign } + fn new_unscaled(mag: i64, sign: bool) -> i64 { + mag } fn from_felt(val: felt252) -> i64 { @@ -2257,10 +2467,10 @@ impl i64Number of NumberTrait { } fn zero() -> i64 { - i64 { mag: 0, sign: false } + 0 } fn is_zero(self: i64) -> bool { - i64_core::i64_eq(self, i64 { mag: 0, sign: false }) + self == 0 } fn half() -> i64 { @@ -2268,51 +2478,63 @@ impl i64Number of NumberTrait { } fn one() -> i64 { - i64 { mag: 1, sign: false } + 1 } fn neg_one() -> i64 { - i64 { mag: 1, sign: true } + -1 } fn is_one(self: i64) -> bool { - i64_core::i64_eq(self, i64 { mag: 1, sign: false }) + self == 1 } fn abs(self: i64) -> i64 { - i64_core::i64_abs(self) + if self >= 0 { + return self; + } else { + self * -1_i64 + } } fn neg(self: i64) -> i64 { - i64_core::i64_neg(self) + self * -1_i64 } fn min_value() -> i64 { - i64 { mag: 9223372036854775808, sign: true } + -9223372036854775807 } fn max_value() -> i64 { - i64 { mag: 9223372036854775807, sign: false } + 9223372036854775807 } fn min(self: i64, other: i64) -> i64 { - i64_core::i64_min(self, other) + if self < other { + return self; + } else { + other + } } fn max(self: i64, other: i64) -> i64 { - i64_core::i64_max(self, other) + if self > other { + return self; + } else { + other + } } - fn mag(self: i64) -> u64 { - self.mag + fn mag(self: i64) -> i64 { + self } fn is_neg(self: i64) -> bool { - self.sign + self < 0 } fn xor(lhs: i64, rhs: i64) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) && lhs.mag != rhs.mag { + if (lhs == 0 || rhs == 0) && lhs != rhs { return true; } else { return false; @@ -2320,7 +2542,7 @@ impl i64Number of NumberTrait { } fn or(lhs: i64, rhs: i64) -> bool { - if (lhs.mag == 0 && rhs.mag == 0) { + if (lhs == 0 && rhs == 0) { return false; } else { return true; @@ -2328,11 +2550,17 @@ impl i64Number of NumberTrait { } fn sign(self: i64) -> i64 { - i64_core::i64_sign(self) + if self == 0 { + return 0_i64; + } else if self > 0 { + return 1_i64; + } else { + -1_i64 + } } fn and(lhs: i64, rhs: i64) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) { + if (lhs == 0 || rhs == 0) { return false; } else { return true; @@ -2340,7 +2568,7 @@ impl i64Number of NumberTrait { } fn where(self: i64, x: i64, y: i64) -> i64 { - if self.mag == 0 { + if self == 0 { return y; } else { return x; @@ -2348,61 +2576,92 @@ impl i64Number of NumberTrait { } fn NaN() -> i64 { - IntegerTrait::NaN() + panic(array!['not supported!']) } fn is_nan(self: i64) -> bool { - IntegerTrait::is_nan(self) + panic(array!['not supported!']) } fn INF() -> i64 { - IntegerTrait::INF() + 9223372036854775807 } fn is_inf(self: i64) -> bool { - IntegerTrait::is_inf(self) + (self == 9223372036854775807 || self == -9223372036854775807) } fn is_pos_inf(self: i64) -> bool { - IntegerTrait::is_pos_inf(self) + self == 9223372036854775807 } fn is_neg_inf(self: i64) -> bool { - IntegerTrait::is_neg_inf(self) + self == -9223372036854775807 } fn bitwise_and(lhs: i64, rhs: i64) -> i64 { - i64_core::i64_bitwise_and(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_xor(lhs: i64, rhs: i64) -> i64 { - i64_core::i64_bitwise_xor(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_or(lhs: i64, rhs: i64) -> i64 { - i64_core::i64_bitwise_or(lhs, rhs) + panic(array!['not supported!']) } fn add(lhs: i64, rhs: i64) -> i64 { - i64Add::add(lhs, rhs) + lhs + rhs } fn sub(lhs: i64, rhs: i64) -> i64 { - i64Sub::sub(lhs, rhs) + lhs - rhs + } +} + +impl I64Div of Div { + fn div(lhs: i64, rhs: i64) -> i64 { + assert(rhs != 0, 'divisor cannot be 0'); + let mut lhs_positive = lhs; + let mut rhs_positive = rhs; + // making sure everything is positive + if lhs < 0 { + lhs_positive = lhs * -1; + } + if rhs < 0 { + rhs_positive = rhs * -1; + } + //felt252 plays role of a bridge for type casting + let lhs_felt: felt252 = lhs_positive.into(); + let rhs_felt: felt252 = rhs_positive.into(); + let lhs_u128: u128 = lhs_felt.try_into().unwrap(); + let rhs_u128: u128 = rhs_felt.try_into().unwrap(); + let mut result = lhs_u128 / rhs_u128; + let felt_result: felt252 = result.into(); + let signed_int_result: i64 = felt_result.try_into().unwrap(); + if lhs * rhs < 0 { + signed_int_result * -1 + } else { + signed_int_result + } } } -use orion::numbers::signed_integer::i128 as i128_core; -use orion::numbers::signed_integer::i128::i128; -use orion::numbers::signed_integer::i128::{i128Add, i128Sub}; +impl I64DivEq of DivEq { + #[inline(always)] + fn div_eq(ref self: i64, other: i64) { + self = Div::div(self, other); + } +} -impl i128Number of NumberTrait { - fn new(mag: u128, sign: bool) -> i128 { - i128 { mag, sign } +impl I128Number of NumberTrait { + fn new(mag: i128, sign: bool) -> i128 { + mag } - fn new_unscaled(mag: u128, sign: bool) -> i128 { - i128 { mag, sign } + fn new_unscaled(mag: i128, sign: bool) -> i128 { + mag } fn from_felt(val: felt252) -> i128 { @@ -2497,12 +2756,11 @@ impl i128Number of NumberTrait { panic(array!['not supported!']) } - fn zero() -> i128 { - i128 { mag: 0, sign: false } + 0 } fn is_zero(self: i128) -> bool { - i128_core::i128_eq(self, i128 { mag: 0, sign: false }) + self == 0 } fn half() -> i128 { @@ -2510,51 +2768,63 @@ impl i128Number of NumberTrait { } fn one() -> i128 { - i128 { mag: 1, sign: false } + 1 } fn neg_one() -> i128 { - i128 { mag: 1, sign: true } + -1 } fn is_one(self: i128) -> bool { - i128_core::i128_eq(self, i128 { mag: 1, sign: false }) + self == 1 } fn abs(self: i128) -> i128 { - i128_core::i128_abs(self) + if self >= 0 { + return self; + } else { + self * -1_i128 + } } fn neg(self: i128) -> i128 { - i128_core::i128_neg(self) + self * -1_i128 } fn min_value() -> i128 { - i128 { mag: 170141183460469231731687303715884105728, sign: true } + -170141183460469231731687303715884105727 } fn max_value() -> i128 { - i128 { mag: 170141183460469231731687303715884105727, sign: false } + 170141183460469231731687303715884105727 } fn min(self: i128, other: i128) -> i128 { - i128_core::i128_min(self, other) + if self < other { + return self; + } else { + other + } } fn max(self: i128, other: i128) -> i128 { - i128_core::i128_max(self, other) + if self > other { + return self; + } else { + other + } } - fn mag(self: i128) -> u128 { - self.mag + fn mag(self: i128) -> i128 { + self } fn is_neg(self: i128) -> bool { - self.sign + self < 0 } fn xor(lhs: i128, rhs: i128) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) && lhs.mag != rhs.mag { + if (lhs == 0 || rhs == 0) && lhs != rhs { return true; } else { return false; @@ -2562,7 +2832,7 @@ impl i128Number of NumberTrait { } fn or(lhs: i128, rhs: i128) -> bool { - if (lhs.mag == 0 && rhs.mag == 0) { + if (lhs == 0 && rhs == 0) { return false; } else { return true; @@ -2570,11 +2840,17 @@ impl i128Number of NumberTrait { } fn sign(self: i128) -> i128 { - i128_core::i128_sign(self) + if self == 0 { + return 0_i128; + } else if self > 0 { + return 1_i128; + } else { + -1_i128 + } } fn and(lhs: i128, rhs: i128) -> bool { - if (lhs.mag == 0 || rhs.mag == 0) { + if (lhs == 0 || rhs == 0) { return false; } else { return true; @@ -2582,7 +2858,7 @@ impl i128Number of NumberTrait { } fn where(self: i128, x: i128, y: i128) -> i128 { - if self.mag == 0 { + if self == 0 { return y; } else { return x; @@ -2590,47 +2866,83 @@ impl i128Number of NumberTrait { } fn NaN() -> i128 { - IntegerTrait::NaN() + panic(array!['not supported!']) } fn is_nan(self: i128) -> bool { - IntegerTrait::is_nan(self) + panic(array!['not supported!']) } fn INF() -> i128 { - IntegerTrait::INF() + 170141183460469231731687303715884105727 } fn is_inf(self: i128) -> bool { - IntegerTrait::is_inf(self) + (self == 170141183460469231731687303715884105727 || self == -170141183460469231731687303715884105727) } fn is_pos_inf(self: i128) -> bool { - IntegerTrait::is_pos_inf(self) + self == 170141183460469231731687303715884105727 } fn is_neg_inf(self: i128) -> bool { - IntegerTrait::is_neg_inf(self) + self == -170141183460469231731687303715884105727 } fn bitwise_and(lhs: i128, rhs: i128) -> i128 { - i128_core::i128_bitwise_and(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_xor(lhs: i128, rhs: i128) -> i128 { - i128_core::i128_bitwise_xor(lhs, rhs) + panic(array!['not supported!']) } fn bitwise_or(lhs: i128, rhs: i128) -> i128 { - i128_core::i128_bitwise_or(lhs, rhs) + panic(array!['not supported!']) } fn add(lhs: i128, rhs: i128) -> i128 { - i128Add::add(lhs, rhs) + lhs + rhs } fn sub(lhs: i128, rhs: i128) -> i128 { - i128Sub::sub(lhs, rhs) + lhs - rhs + } +} + +impl I128Div of Div { + fn div(lhs: i128, rhs: i128) -> i128 { + assert(rhs != 0, 'divisor cannot be 0'); + let mut lhs_positive = lhs; + let mut rhs_positive = rhs; + // making sure everything is positive + if lhs < 0 { + lhs_positive = lhs * -1; + } + if rhs < 0 { + rhs_positive = rhs * -1; + } + //felt252 plays role of a bridge for type casting + let lhs_felt: felt252 = lhs_positive.into(); + let rhs_felt: felt252 = rhs_positive.into(); + let lhs_u128: u128 = lhs_felt.try_into().unwrap(); + let rhs_u128: u128 = rhs_felt.try_into().unwrap(); + let mut result = lhs_u128 / rhs_u128; + let felt_result: felt252 = result.into(); + let signed_int_result: i128 = felt_result.try_into().unwrap(); + // assigning the sign and returning + if lhs * rhs < 0 { + signed_int_result * -1 + } else { + signed_int_result + } + } +} + +impl I128DivEq of DivEq { + #[inline(always)] + fn div_eq(ref self: i128, other: i128) { + self = Div::div(self, other); } } @@ -3114,3 +3426,11 @@ impl Complex64Number of NumberTrait { Complex64Sub::sub(lhs, rhs) } } + +impl U32IntoI32 of Into { + fn into(self: u32) -> i32 { + let number_felt: felt252 = self.into(); + let number_i32: i32 = number_felt.try_into().unwrap(); + number_i32 + } +} diff --git a/src/numbers/fixed_point/implementations/fp16x16/core.cairo b/src/numbers/fixed_point/implementations/fp16x16/core.cairo index a6fc18c8d..cff7996af 100644 --- a/src/numbers/fixed_point/implementations/fp16x16/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16/core.cairo @@ -4,7 +4,6 @@ use core::option::OptionTrait; use core::result::{ResultTrait, ResultTraitImpl}; use core::traits::{TryInto, Into}; -use orion::numbers::signed_integer::{i32::i32, i8::i8}; use orion::numbers::fixed_point::core::FixedTrait; use orion::numbers::fixed_point::implementations::fp16x16::math::{ core as core_math, trig, hyp, erf @@ -419,14 +418,27 @@ impl FP16x16Rem of Rem { /// INTERNAL fn _i32_into_fp(x: FP16x16) -> i32 { - i32 { mag: x.mag / ONE, sign: x.sign } + let number_felt: felt252 = (x.mag / ONE).into(); + let number_i32: i32 = number_felt.try_into().unwrap(); + if x.sign { + return number_i32 * -1_i32; + } + number_i32 } fn _i8_try_from_fp(x: FP16x16) -> Option { let unscaled_mag: Option = (x.mag / ONE).try_into(); match unscaled_mag { - Option::Some(val) => Option::Some(i8 { mag: unscaled_mag.unwrap(), sign: x.sign }), + Option::Some(val) => { + let number_felt: felt252 = unscaled_mag.unwrap().into(); + let mut number_i8: i8 = number_felt.try_into().unwrap(); + if x.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) + }, + Option::None(_) => Option::None(()) } } diff --git a/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo b/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo index 26d6feec0..b3fe4d39b 100644 --- a/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo +++ b/src/numbers/fixed_point/implementations/fp16x16wide/core.cairo @@ -4,7 +4,6 @@ use core::option::OptionTrait; use core::result::{ResultTrait, ResultTraitImpl}; use core::traits::{TryInto, Into}; -use orion::numbers::signed_integer::{i32::i32, i8::i8}; use orion::numbers::{fixed_point::core::FixedTrait, FP16x16}; use orion::numbers::fixed_point::implementations::fp16x16wide::math::{ core as core_math, trig, hyp, erf @@ -434,14 +433,26 @@ impl FP16x16WRem of Rem { /// INTERNAL fn _i32_into_fp(x: FP16x16W) -> i32 { - i32 { mag: (x.mag / ONE).try_into().unwrap(), sign: x.sign } + let number_felt: felt252 = (x.mag / ONE).into(); + let number_i32: i32 = number_felt.try_into().unwrap(); + if x.sign { + return number_i32 * -1_i32; + } + number_i32 } fn _i8_try_from_fp(x: FP16x16W) -> Option { let unscaled_mag: Option = (x.mag / ONE).try_into(); match unscaled_mag { - Option::Some(val) => Option::Some(i8 { mag: unscaled_mag.unwrap(), sign: x.sign }), + Option::Some(val) => { + let number_felt: felt252 = unscaled_mag.unwrap().into(); + let mut number_i8: i8 = number_felt.try_into().unwrap(); + if x.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) + }, Option::None(_) => Option::None(()) } } diff --git a/src/numbers/fixed_point/implementations/fp32x32/core.cairo b/src/numbers/fixed_point/implementations/fp32x32/core.cairo index 64bbadb74..9fa722e8e 100644 --- a/src/numbers/fixed_point/implementations/fp32x32/core.cairo +++ b/src/numbers/fixed_point/implementations/fp32x32/core.cairo @@ -12,7 +12,6 @@ use cubit::f64::types::fixed; use orion::numbers::fixed_point::implementations::fp32x32::erf; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::utils; -use orion::numbers::{i32, i8}; const MAX: u64 = 9223372036854775808; @@ -397,7 +396,15 @@ fn _i8_try_from_fp(x: FP32x32) -> Option { let unscaled_mag: Option = (x.mag / ONE).try_into(); match unscaled_mag { - Option::Some(val) => Option::Some(i8 { mag: unscaled_mag.unwrap(), sign: x.sign }), + Option::Some(val) => { + let number_felt: felt252 = unscaled_mag.unwrap().into(); + let mut number_i8: i8 = number_felt.try_into().unwrap(); + if x.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) + }, + Option::None(_) => Option::None(()) } } diff --git a/src/numbers/fixed_point/implementations/fp64x64/core.cairo b/src/numbers/fixed_point/implementations/fp64x64/core.cairo index 9d15035cc..c98cb7c57 100644 --- a/src/numbers/fixed_point/implementations/fp64x64/core.cairo +++ b/src/numbers/fixed_point/implementations/fp64x64/core.cairo @@ -12,7 +12,6 @@ use cubit::f128::ops::MAX_u128 as MAX; use orion::numbers::fixed_point::implementations::fp64x64::erf; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::utils; -use orion::numbers::{i32, i8}; const HALF: u128 = 9223372036854775808_u128; // 2 ** 63 @@ -397,7 +396,15 @@ fn _i8_try_from_fp(x: FP64x64) -> Option { let unscaled_mag: Option = (x.mag / ONE).try_into(); match unscaled_mag { - Option::Some(val) => Option::Some(i8 { mag: unscaled_mag.unwrap(), sign: x.sign }), + Option::Some(val) => { + let number_felt: felt252 = unscaled_mag.unwrap().into(); + let mut number_i8: i8 = number_felt.try_into().unwrap(); + if x.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) + }, + Option::None(_) => Option::None(()) } } diff --git a/src/numbers/fixed_point/implementations/fp8x23/core.cairo b/src/numbers/fixed_point/implementations/fp8x23/core.cairo index cdee93541..b1ab1b6ac 100644 --- a/src/numbers/fixed_point/implementations/fp8x23/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23/core.cairo @@ -4,7 +4,6 @@ use core::option::OptionTrait; use core::result::{ResultTrait, ResultTraitImpl}; use core::traits::{TryInto, Into}; -use orion::numbers::signed_integer::{i32::i32, i8::i8}; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp8x23::math::{core as core_math, trig, hyp, erf}; use orion::numbers::fixed_point::utils; @@ -415,14 +414,27 @@ impl FP8x23Rem of Rem { /// INTERNAL fn _i32_into_fp(x: FP8x23) -> i32 { - i32 { mag: x.mag / ONE, sign: x.sign } + // i32 { mag: x.mag / ONE, sign: x.sign } + let number_felt: felt252 = (x.mag / ONE).into(); + let number_i32: i32 = number_felt.try_into().unwrap(); + if x.sign { + return number_i32 * -1_i32; + } + number_i32 } fn _i8_try_from_fp(x: FP8x23) -> Option { let unscaled_mag: Option = (x.mag / ONE).try_into(); - +// Option::Some(i8 { mag: unscaled_mag.unwrap(), sign: x.sign }) match unscaled_mag { - Option::Some(val) => Option::Some(i8 { mag: unscaled_mag.unwrap(), sign: x.sign }), + Option::Some(val) => { + let number_felt: felt252 = unscaled_mag.unwrap().into(); + let mut number_i8: i8 = number_felt.try_into().unwrap(); + if x.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) + }, Option::None(_) => Option::None(()) } } diff --git a/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo b/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo index 1f7ad81a6..c4b49c798 100644 --- a/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo +++ b/src/numbers/fixed_point/implementations/fp8x23wide/core.cairo @@ -4,7 +4,6 @@ use core::option::OptionTrait; use core::result::{ResultTrait, ResultTraitImpl}; use core::traits::{TryInto, Into}; -use orion::numbers::signed_integer::{i32::i32, i8::i8}; use orion::numbers::{fixed_point::core::{FixedTrait}, FP8x23}; use orion::numbers::fixed_point::implementations::fp8x23wide::math::{ core as core_math, trig, hyp, erf @@ -422,14 +421,26 @@ impl FP8x23WRem of Rem { /// INTERNAL fn _i32_into_fp(x: FP8x23W) -> i32 { - i32 { mag: (x.mag / ONE).try_into().unwrap(), sign: x.sign } + let number_felt: felt252 = (x.mag / ONE).into(); + let number_i32: i32 = number_felt.try_into().unwrap(); + if x.sign { + return number_i32 * -1_i32; + } + number_i32 } fn _i8_try_from_fp(x: FP8x23W) -> Option { let unscaled_mag: Option = (x.mag / ONE).try_into(); match unscaled_mag { - Option::Some(val) => Option::Some(i8 { mag: unscaled_mag.unwrap(), sign: x.sign }), + Option::Some(val) => { + let number_felt: felt252 = unscaled_mag.unwrap().into(); + let mut number_i8: i8 = number_felt.try_into().unwrap(); + if x.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) + }, Option::None(_) => Option::None(()) } } diff --git a/src/numbers/signed_integer.cairo b/src/numbers/signed_integer.cairo deleted file mode 100644 index 58ce07e20..000000000 --- a/src/numbers/signed_integer.cairo +++ /dev/null @@ -1,6 +0,0 @@ -mod integer_trait; -mod i8; -mod i16; -mod i32; -mod i64; -mod i128; diff --git a/src/numbers/signed_integer/i128.cairo b/src/numbers/signed_integer/i128.cairo deleted file mode 100644 index 7d4355367..000000000 --- a/src/numbers/signed_integer/i128.cairo +++ /dev/null @@ -1,515 +0,0 @@ -use core::traits::Into; - -use orion::numbers::signed_integer::integer_trait::IntegerTrait; - -// ====================== INT 128 ====================== - -// i128 represents a 128-bit integer. -// The mag field holds the absolute value of the integer. -// The sign field is true for negative integers, and false for non-negative integers. -#[derive(Serde, Copy, Drop)] -struct i128 { - mag: u128, - sign: bool, -} - -impl i128Impl of IntegerTrait { - fn new(mag: u128, sign: bool) -> i128 { - i128_new(mag, sign) - } - - fn div_rem(self: i128, other: i128) -> (i128, i128) { - i128_div_rem(self, other) - } - - fn abs(self: i128) -> i128 { - i128_abs(self) - } - - fn max(self: i128, other: i128) -> i128 { - i128_max(self, other) - } - - fn min(self: i128, other: i128) -> i128 { - i128_min(self, other) - } - - fn sign(self: i128) -> i128 { - i128_sign(self) - } - - fn NaN() -> i128 { - return i128 { mag: 0, sign: true }; - } - - fn is_nan(self: i128) -> bool { - self == i128 { mag: 0, sign: true } - } - - fn INF() -> i128 { - return i128 { mag: 340282366920938463463374607431768211455, sign: false }; - } - - fn POS_INF() -> i128 { - return i128 { mag: 340282366920938463463374607431768211455, sign: false }; - } - - fn NEG_INF() -> i128 { - return i128 { mag: 340282366920938463463374607431768211455, sign: true }; - } - - fn is_inf(self: i128) -> bool { - self.mag == 340282366920938463463374607431768211455 - } - - fn is_pos_inf(self: i128) -> bool { - self.is_inf() && !self.sign - } - - fn is_neg_inf(self: i128) -> bool { - self.is_inf() && self.sign - } -} - -// Implements the Into trait for i128. -impl i32Into of Into { - fn into(self: i128) -> felt252 { - let mag_felt = self.mag.into(); - - if (self.sign == true) { - return mag_felt * -1; - } else { - return mag_felt; - } - } -} - -// Implements the Add trait for i128. -impl i128Add of Add { - fn add(lhs: i128, rhs: i128) -> i128 { - i128_add(lhs, rhs) - } -} - -// Implements the AddEq trait for i128. -impl i128AddEq of AddEq { - #[inline(always)] - fn add_eq(ref self: i128, other: i128) { - self = Add::add(self, other); - } -} - -// Implements the Sub trait for i128. -impl i128Sub of Sub { - fn sub(lhs: i128, rhs: i128) -> i128 { - i128_sub(lhs, rhs) - } -} - -// Implements the SubEq trait for i128. -impl i128SubEq of SubEq { - #[inline(always)] - fn sub_eq(ref self: i128, other: i128) { - self = Sub::sub(self, other); - } -} - -// Implements the Mul trait for i128. -impl i128Mul of Mul { - fn mul(lhs: i128, rhs: i128) -> i128 { - i128_mul(lhs, rhs) - } -} - -// Implements the MulEq trait for i128. -impl i128MulEq of MulEq { - #[inline(always)] - fn mul_eq(ref self: i128, other: i128) { - self = Mul::mul(self, other); - } -} - -// Implements the Div trait for i128. -impl i128Div of Div { - fn div(lhs: i128, rhs: i128) -> i128 { - i128_div(lhs, rhs) - } -} - -// Implements the DivEq trait for i128. -impl i128DivEq of DivEq { - #[inline(always)] - fn div_eq(ref self: i128, other: i128) { - self = Div::div(self, other); - } -} - -// Implements the Rem trait for i128. -impl i128Rem of Rem { - fn rem(lhs: i128, rhs: i128) -> i128 { - i128_rem(lhs, rhs) - } -} - -// Implements the RemEq trait for i128. -impl i128RemEq of RemEq { - #[inline(always)] - fn rem_eq(ref self: i128, other: i128) { - self = Rem::rem(self, other); - } -} - -// Implements the PartialEq trait for i128. -impl i128PartialEq of PartialEq { - fn eq(lhs: @i128, rhs: @i128) -> bool { - i128_eq(*lhs, *rhs) - } - - fn ne(lhs: @i128, rhs: @i128) -> bool { - i128_ne(*lhs, *rhs) - } -} - -// Implements the PartialOrd trait for i128. -impl i128PartialOrd of PartialOrd { - fn le(lhs: i128, rhs: i128) -> bool { - i128_le(lhs, rhs) - } - fn ge(lhs: i128, rhs: i128) -> bool { - i128_ge(lhs, rhs) - } - - fn lt(lhs: i128, rhs: i128) -> bool { - i128_lt(lhs, rhs) - } - fn gt(lhs: i128, rhs: i128) -> bool { - i128_gt(lhs, rhs) - } -} - -// Implements the Neg trait for i128. -impl i128Neg of Neg { - fn neg(a: i128) -> i128 { - i128_neg(a) - } -} - -// Checks if the given i128 integer is zero and has the correct sign. -// # Arguments -// * `x` - The i128 integer to check. -// # Panics -// Panics if `x` is zero and has a sign that is not false. -fn i128_check_sign_zero(x: i128) { - if x.mag == 0_u128 { - assert(x.sign == false, 'sign of 0 must be false'); - } -} - -/// Cf: IntegerTrait::new docstring -fn i128_new(mag: u128, sign: bool) -> i128 { - if sign == true { - assert(mag <= 170141183460469231731687303715884105728_u128, 'int: out of range'); - } else { - assert(mag <= 170141183460469231731687303715884105727_u128, 'int: out of range'); - } - i128 { mag, sign } -} - -// Adds two i128 integers. -// # Arguments -// * `a` - The first i128 to add. -// * `b` - The second i128 to add. -// # Returns -// * `i128` - The sum of `a` and `b`. -fn i128_add(a: i128, b: i128) -> i128 { - i128_check_sign_zero(a); - i128_check_sign_zero(b); - - // If both integers have the same sign, - // the sum of their absolute values can be returned. - if a.sign == b.sign { - let sum = a.mag + b.mag; - if (sum == 0_u128) { - return IntegerTrait::new(sum, false); - } - return ensure_non_negative_zero(sum, a.sign); - } else { - // If the integers have different signs, - // the larger absolute value is subtracted from the smaller one. - let (larger, smaller) = if a.mag >= b.mag { - (a, b) - } else { - (b, a) - }; - let difference = larger.mag - smaller.mag; - - if (difference == 0_u128) { - return IntegerTrait::new(difference, false); - } - return ensure_non_negative_zero(difference, larger.sign); - } -} - -// Subtracts two i128 integers. -// # Arguments -// * `a` - The first i128 to subtract. -// * `b` - The second i128 to subtract. -// # Returns -// * `i128` - The difference of `a` and `b`. -fn i128_sub(a: i128, b: i128) -> i128 { - i128_check_sign_zero(a); - i128_check_sign_zero(b); - - if (b.mag == 0_u128) { - return a; - } - - // The subtraction of `a` to `b` is achieved by negating `b` sign and adding it to `a`. - let neg_b = ensure_non_negative_zero(b.mag, !b.sign); - return a + neg_b; -} - -// Multiplies two i128 integers. -// -// # Arguments -// -// * `a` - The first i128 to multiply. -// * `b` - The second i128 to multiply. -// -// # Returns -// -// * `i128` - The product of `a` and `b`. -fn i128_mul(a: i128, b: i128) -> i128 { - i128_check_sign_zero(a); - i128_check_sign_zero(b); - - // The sign of the product is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - // The product is the product of the absolute values of the operands. - let mag = a.mag * b.mag; - - if (mag == 0_u128) { - return IntegerTrait::new(mag, false); - } - - return ensure_non_negative_zero(mag, sign); -} - -// Divides the first i128 by the second i128. -// # Arguments -// * `a` - The i128 dividend. -// * `b` - The i128 divisor. -// # Returns -// * `i128` - The quotient of `a` and `b`. -fn i128_div(a: i128, b: i128) -> i128 { - i128_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u128, 'b can not be 0'); - - // The sign of the quotient is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - - if (sign == false) { - // If the operands are positive, the quotient is simply their absolute value quotient. - return ensure_non_negative_zero(a.mag / b.mag, sign); - } - - // If the operands have different signs, rounding is necessary. - // First, check if the quotient is an integer. - if (a.mag % b.mag == 0_u128) { - let quotient = a.mag / b.mag; - if (quotient == 0_u128) { - return IntegerTrait::new(quotient, false); - } - return ensure_non_negative_zero(quotient, sign); - } - - // If the quotient is not an integer, multiply the dividend by 10 to move the decimal point over. - let quotient = (a.mag * 10_u128) / b.mag; - let last_digit = quotient % 10_u128; - - if (quotient == 0_u128) { - return IntegerTrait::new(quotient, false); - } - - // Check the last digit to determine rounding direction. - if (last_digit <= 5_u128) { - return ensure_non_negative_zero(quotient / 10_u128, sign); - } else { - return ensure_non_negative_zero((quotient / 10_u128) + 1_u128, sign); - } -} - -// Calculates the remainder of the division of a first i128 by a second i128. -// # Arguments -// * `a` - The i128 dividend. -// * `b` - The i128 divisor. -// # Returns -// * `i128` - The remainder of dividing `a` by `b`. -fn i128_rem(a: i128, b: i128) -> i128 { - i128_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u128, 'b can not be 0'); - - return a - (b * (a / b)); -} - -/// Cf: IntegerTrait::div_rem docstring -fn i128_div_rem(a: i128, b: i128) -> (i128, i128) { - let quotient = i128_div(a, b); - let remainder = i128_rem(a, b); - - return (quotient, remainder); -} - -// Compares two i128 integers for equality. -// # Arguments -// * `a` - The first i128 integer to compare. -// * `b` - The second i128 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are equal, `false` otherwise. -fn i128_eq(a: i128, b: i128) -> bool { - // Check if the two integers have the same sign and the same absolute value. - if a.sign == b.sign && a.mag == b.mag { - return true; - } - - return false; -} - -// Compares two i128 integers for inequality. -// # Arguments -// * `a` - The first i128 integer to compare. -// * `b` - The second i128 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are not equal, `false` otherwise. -fn i128_ne(a: i128, b: i128) -> bool { - // The result is the inverse of the equal function. - return !i128_eq(a, b); -} - -// Compares two i128 integers for greater than. -// # Arguments -// * `a` - The first i128 integer to compare. -// * `b` - The second i128 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than `b`, `false` otherwise. -fn i128_gt(a: i128, b: i128) -> bool { - // Check if `a` is negative and `b` is positive. - if (a.sign & !b.sign) { - return false; - } - // Check if `a` is positive and `b` is negative. - if (!a.sign & b.sign) { - return true; - } - // If `a` and `b` have the same sign, compare their absolute values. - if (a.sign & b.sign) { - return a.mag < b.mag; - } else { - return a.mag > b.mag; - } -} - -// Determines whether the first i128 is less than the second i128. -// # Arguments -// * `a` - The i128 to compare against the second i128. -// * `b` - The i128 to compare against the first i128. -// # Returns -// * `bool` - `true` if `a` is less than `b`, `false` otherwise. -fn i128_lt(a: i128, b: i128) -> bool { - if (a.sign != b.sign) { - return a.sign; - } else { - return a.mag != b.mag && (a.mag < b.mag) ^ a.sign; - } -} - -// Checks if the first i128 integer is less than or equal to the second. -// # Arguments -// * `a` - The first i128 integer to compare. -// * `b` - The second i128 integer to compare. -// # Returns -// * `bool` - `true` if `a` is less than or equal to `b`, `false` otherwise. -fn i128_le(a: i128, b: i128) -> bool { - if (a == b || i128_lt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Checks if the first i128 integer is greater than or equal to the second. -// # Arguments -// * `a` - The first i128 integer to compare. -// * `b` - The second i128 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than or equal to `b`, `false` otherwise. -fn i128_ge(a: i128, b: i128) -> bool { - if (a == b || i128_gt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Negates the given i128 integer. -// # Arguments -// * `x` - The i128 integer to negate. -// # Returns -// * `i128` - The negation of `x`. -fn i128_neg(x: i128) -> i128 { - // The negation of an integer is obtained by flipping its sign. - return ensure_non_negative_zero(x.mag, !x.sign); -} - -/// Cf: IntegerTrait::abs docstring -fn i128_abs(x: i128) -> i128 { - return IntegerTrait::new(x.mag, false); -} - -/// Cf: IntegerTrait::max docstring -fn i128_max(a: i128, b: i128) -> i128 { - if (a > b) { - return a; - } else { - return b; - } -} - -/// Cf: IntegerTrait::new docstring -fn i128_min(a: i128, b: i128) -> i128 { - if (a < b) { - return a; - } else { - return b; - } -} - -fn ensure_non_negative_zero(mag: u128, sign: bool) -> i128 { - if mag == 0 { - IntegerTrait::::new(mag, false) - } else { - IntegerTrait::::new(mag, sign) - } -} - -fn i128_sign(a: i128) -> i128 { - if a.mag == 0 { - IntegerTrait::::new(0, false) - } else { - IntegerTrait::::new(1, a.sign) - } -} - -fn i128_bitwise_and(a: i128, b: i128) -> i128 { - IntegerTrait::::new(a.mag & b.mag, a.sign & b.sign) -} - -fn i128_bitwise_xor(a: i128, b: i128) -> i128 { - IntegerTrait::::new(a.mag ^ b.mag, a.sign ^ b.sign) -} - -fn i128_bitwise_or(a: i128, b: i128) -> i128 { - IntegerTrait::::new(a.mag | b.mag, a.sign | b.sign) -} diff --git a/src/numbers/signed_integer/i16.cairo b/src/numbers/signed_integer/i16.cairo deleted file mode 100644 index 50c68529e..000000000 --- a/src/numbers/signed_integer/i16.cairo +++ /dev/null @@ -1,516 +0,0 @@ -use core::traits::Into; - -use orion::numbers::signed_integer::integer_trait::IntegerTrait; - -// ====================== INT 16 ====================== - -// i16 represents a 16-bit integer. -// The mag field holds the absolute value of the integer. -// The sign field is true for negative integers, and false for non-negative integers. -#[derive(Serde, Copy, Drop)] -struct i16 { - mag: u16, - sign: bool, -} - -impl i16Impl of IntegerTrait { - fn new(mag: u16, sign: bool) -> i16 { - i16_new(mag, sign) - } - - fn div_rem(self: i16, other: i16) -> (i16, i16) { - i16_div_rem(self, other) - } - - fn abs(self: i16) -> i16 { - i16_abs(self) - } - - fn max(self: i16, other: i16) -> i16 { - i16_max(self, other) - } - - fn min(self: i16, other: i16) -> i16 { - i16_min(self, other) - } - - fn sign(self: i16) -> i16 { - i16_sign(self) - } - - fn NaN() -> i16 { - return i16 { mag: 0, sign: true }; - } - - fn is_nan(self: i16) -> bool { - self == i16 { mag: 0, sign: true } - } - - fn INF() -> i16 { - return i16 { mag: 65535, sign: false }; - } - - fn POS_INF() -> i16 { - return i16 { mag: 65535, sign: false }; - } - - fn NEG_INF() -> i16 { - return i16 { mag: 65535, sign: true }; - } - - fn is_inf(self: i16) -> bool { - self.mag == 65535 - } - - fn is_pos_inf(self: i16) -> bool { - self.is_inf() && !self.sign - } - - fn is_neg_inf(self: i16) -> bool { - self.is_inf() && self.sign - } -} - -// Implements the Into trait for i16. -impl i8Into of Into { - fn into(self: i16) -> felt252 { - let mag_felt = self.mag.into(); - - if (self.sign == true) { - return mag_felt * -1; - } else { - return mag_felt; - } - } -} - -// Implements the Add trait for i16. -impl i16Add of Add { - fn add(lhs: i16, rhs: i16) -> i16 { - i16_add(lhs, rhs) - } -} - -// Implements the AddEq trait for i16. -impl i16AddEq of AddEq { - #[inline(always)] - fn add_eq(ref self: i16, other: i16) { - self = Add::add(self, other); - } -} - -// Implements the Sub trait for i16. -impl i16Sub of Sub { - fn sub(lhs: i16, rhs: i16) -> i16 { - i16_sub(lhs, rhs) - } -} - -// Implements the SubEq trait for i16. -impl i16SubEq of SubEq { - #[inline(always)] - fn sub_eq(ref self: i16, other: i16) { - self = Sub::sub(self, other); - } -} - -// Implements the Mul trait for i16. -impl i16Mul of Mul { - fn mul(lhs: i16, rhs: i16) -> i16 { - i16_mul(lhs, rhs) - } -} - -// Implements the MulEq trait for i16. -impl i16MulEq of MulEq { - #[inline(always)] - fn mul_eq(ref self: i16, other: i16) { - self = Mul::mul(self, other); - } -} - -// Implements the Div trait for i16. -impl i16Div of Div { - fn div(lhs: i16, rhs: i16) -> i16 { - i16_div(lhs, rhs) - } -} - -// Implements the DivEq trait for i16. -impl i16DivEq of DivEq { - #[inline(always)] - fn div_eq(ref self: i16, other: i16) { - self = Div::div(self, other); - } -} - -// Implements the Rem trait for i16. -impl i16Rem of Rem { - fn rem(lhs: i16, rhs: i16) -> i16 { - i16_rem(lhs, rhs) - } -} - -// Implements the RemEq trait for i16. -impl i16RemEq of RemEq { - #[inline(always)] - fn rem_eq(ref self: i16, other: i16) { - self = Rem::rem(self, other); - } -} - -// Implements the PartialEq trait for i16. -impl i16PartialEq of PartialEq { - fn eq(lhs: @i16, rhs: @i16) -> bool { - i16_eq(*lhs, *rhs) - } - - fn ne(lhs: @i16, rhs: @i16) -> bool { - i16_ne(*lhs, *rhs) - } -} - -// Implements the PartialOrd trait for i16. -impl i16PartialOrd of PartialOrd { - fn le(lhs: i16, rhs: i16) -> bool { - i16_le(lhs, rhs) - } - fn ge(lhs: i16, rhs: i16) -> bool { - i16_ge(lhs, rhs) - } - - fn lt(lhs: i16, rhs: i16) -> bool { - i16_lt(lhs, rhs) - } - fn gt(lhs: i16, rhs: i16) -> bool { - i16_gt(lhs, rhs) - } -} - -// Implements the Neg trait for i16. -impl i16Neg of Neg { - fn neg(a: i16) -> i16 { - i16_neg(a) - } -} - -// Checks if the given i16 integer is zero and has the correct sign. -// # Arguments -// * `x` - The i16 integer to check. -// # Panics -// Panics if `x` is zero and has a sign that is not false. -fn i16_check_sign_zero(x: i16) { - if x.mag == 0_u16 { - assert(x.sign == false, 'sign of 0 must be false'); - } -} - -/// Cf: IntegerTrait::new docstring -fn i16_new(mag: u16, sign: bool) -> i16 { - if sign == true { - assert(mag <= 32768_u16, 'int: out of range'); - } else { - assert(mag <= 32767_u16, 'int: out of range'); - } - i16 { mag, sign } -} - -// Adds two i16 integers. -// # Arguments -// * `a` - The first i16 to add. -// * `b` - The second i16 to add. -// # Returns -// * `i16` - The sum of `a` and `b`. -fn i16_add(a: i16, b: i16) -> i16 { - i16_check_sign_zero(a); - i16_check_sign_zero(b); - - // If both integers have the same sign, - // the sum of their absolute values can be returned. - if a.sign == b.sign { - let sum = a.mag + b.mag; - if (sum == 0_u16) { - return IntegerTrait::new(sum, false); - } - return ensure_non_negative_zero(sum, a.sign); - } else { - // If the integers have different signs, - // the larger absolute value is subtracted from the smaller one. - let (larger, smaller) = if a.mag >= b.mag { - (a, b) - } else { - (b, a) - }; - let difference = larger.mag - smaller.mag; - - if (difference == 0_u16) { - return IntegerTrait::new(difference, false); - } - return ensure_non_negative_zero(difference, larger.sign); - } -} - -// Subtracts two i16 integers. -// # Arguments -// * `a` - The first i16 to subtract. -// * `b` - The second i16 to subtract. -// # Returns -// * `i16` - The difference of `a` and `b`. -fn i16_sub(a: i16, b: i16) -> i16 { - i16_check_sign_zero(a); - i16_check_sign_zero(b); - - if (b.mag == 0_u16) { - return a; - } - - // The subtraction of `a` to `b` is achieved by negating `b` sign and adding it to `a`. - let neg_b = ensure_non_negative_zero(b.mag, !b.sign); - return a + neg_b; -} - -// Multiplies two i16 integers. -// -// # Arguments -// -// * `a` - The first i16 to multiply. -// * `b` - The second i16 to multiply. -// -// # Returns -// -// * `i16` - The product of `a` and `b`. -fn i16_mul(a: i16, b: i16) -> i16 { - i16_check_sign_zero(a); - i16_check_sign_zero(b); - - // The sign of the product is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - // The product is the product of the absolute values of the operands. - let mag = a.mag * b.mag; - - if (mag == 0_u16) { - return IntegerTrait::new(mag, false); - } - - return ensure_non_negative_zero(mag, sign); -} - -// Divides the first i16 by the second i16. -// # Arguments -// * `a` - The i16 dividend. -// * `b` - The i16 divisor. -// # Returns -// * `i16` - The quotient of `a` and `b`. -fn i16_div(a: i16, b: i16) -> i16 { - i16_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u16, 'b can not be 0'); - - // The sign of the quotient is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - - if (sign == false) { - // If the operands are positive, the quotient is simply their absolute value quotient. - return ensure_non_negative_zero(a.mag / b.mag, sign); - } - - // If the operands have different signs, rounding is necessary. - // First, check if the quotient is an integer. - if (a.mag % b.mag == 0_u16) { - let quotient = a.mag / b.mag; - if (quotient == 0_u16) { - return IntegerTrait::new(quotient, false); - } - return ensure_non_negative_zero(quotient, sign); - } - - // If the quotient is not an integer, multiply the dividend by 10 to move the decimal point over. - let quotient = (a.mag * 10_u16) / b.mag; - let last_digit = quotient % 10_u16; - - if (quotient == 0_u16) { - return IntegerTrait::new(quotient, false); - } - - // Check the last digit to determine rounding direction. - if (last_digit <= 5_u16) { - return ensure_non_negative_zero(quotient / 10_u16, sign); - } else { - return ensure_non_negative_zero((quotient / 10_u16) + 1_u16, sign); - } -} - -// Calculates the remainder of the division of a first i16 by a second i16. -// # Arguments -// * `a` - The i16 dividend. -// * `b` - The i16 divisor. -// # Returns -// * `i16` - The remainder of dividing `a` by `b`. -fn i16_rem(a: i16, b: i16) -> i16 { - i16_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u16, 'b can not be 0'); - - return a - (b * (a / b)); -} - -/// Cf: IntegerTrait::div_rem docstring -fn i16_div_rem(a: i16, b: i16) -> (i16, i16) { - let quotient = i16_div(a, b); - let remainder = i16_rem(a, b); - - return (quotient, remainder); -} - -// Compares two i16 integers for equality. -// # Arguments -// * `a` - The first i16 integer to compare. -// * `b` - The second i16 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are equal, `false` otherwise. -fn i16_eq(a: i16, b: i16) -> bool { - // Check if the two integers have the same sign and the same absolute value. - if a.sign == b.sign && a.mag == b.mag { - return true; - } - - return false; -} - -// Compares two i16 integers for inequality. -// # Arguments -// * `a` - The first i16 integer to compare. -// * `b` - The second i16 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are not equal, `false` otherwise. -fn i16_ne(a: i16, b: i16) -> bool { - // The result is the inverse of the equal function. - return !i16_eq(a, b); -} - -// Compares two i16 integers for greater than. -// # Arguments -// * `a` - The first i16 integer to compare. -// * `b` - The second i16 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than `b`, `false` otherwise. -fn i16_gt(a: i16, b: i16) -> bool { - // Check if `a` is negative and `b` is positive. - if (a.sign & !b.sign) { - return false; - } - // Check if `a` is positive and `b` is negative. - if (!a.sign & b.sign) { - return true; - } - // If `a` and `b` have the same sign, compare their absolute values. - if (a.sign & b.sign) { - return a.mag < b.mag; - } else { - return a.mag > b.mag; - } -} - -// Determines whether the first i16 is less than the second i16. -// # Arguments -// * `a` - The i16 to compare against the second i16. -// * `b` - The i16 to compare against the first i16. -// # Returns -// * `bool` - `true` if `a` is less than `b`, `false` otherwise. -fn i16_lt(a: i16, b: i16) -> bool { - if (a.sign != b.sign) { - return a.sign; - } else { - return a.mag != b.mag && (a.mag < b.mag) ^ a.sign; - } -} - -// Checks if the first i16 integer is less than or equal to the second. -// # Arguments -// * `a` - The first i16 integer to compare. -// * `b` - The second i16 integer to compare. -// # Returns -// * `bool` - `true` if `a` is less than or equal to `b`, `false` otherwise. -fn i16_le(a: i16, b: i16) -> bool { - if (a == b || i16_lt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Checks if the first i16 integer is greater than or equal to the second. -// # Arguments -// * `a` - The first i16 integer to compare. -// * `b` - The second i16 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than or equal to `b`, `false` otherwise. -fn i16_ge(a: i16, b: i16) -> bool { - if (a == b || i16_gt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Negates the given i16 integer. -// # Arguments -// * `x` - The i16 integer to negate. -// # Returns -// * `i16` - The negation of `x`. -fn i16_neg(x: i16) -> i16 { - // The negation of an integer is obtained by flipping its sign. - return ensure_non_negative_zero(x.mag, !x.sign); -} - -/// Cf: IntegerTrait::abs docstring -fn i16_abs(x: i16) -> i16 { - return IntegerTrait::new(x.mag, false); -} - -/// Cf: IntegerTrait::max docstring -fn i16_max(a: i16, b: i16) -> i16 { - if (a > b) { - return a; - } else { - return b; - } -} - -/// Cf: IntegerTrait::min docstring -fn i16_min(a: i16, b: i16) -> i16 { - if (a < b) { - return a; - } else { - return b; - } -} - -fn ensure_non_negative_zero(mag: u16, sign: bool) -> i16 { - if mag == 0 { - IntegerTrait::::new(mag, false) - } else { - IntegerTrait::::new(mag, sign) - } -} - -fn i16_sign(a: i16) -> i16 { - if a.mag == 0 { - IntegerTrait::::new(0, false) - } else { - IntegerTrait::::new(1, a.sign) - } -} - -fn i16_bitwise_and(a: i16, b: i16) -> i16 { - IntegerTrait::::new(a.mag & b.mag, a.sign & b.sign) -} - -fn i16_bitwise_xor(a: i16, b: i16) -> i16 { - IntegerTrait::::new(a.mag ^ b.mag, a.sign ^ b.sign) -} - -fn i16_bitwise_or(a: i16, b: i16) -> i16 { - IntegerTrait::::new(a.mag | b.mag, a.sign | b.sign) -} - diff --git a/src/numbers/signed_integer/i32.cairo b/src/numbers/signed_integer/i32.cairo deleted file mode 100644 index db139764c..000000000 --- a/src/numbers/signed_integer/i32.cairo +++ /dev/null @@ -1,554 +0,0 @@ -use core::option::OptionTrait; -use core::traits::TryInto; -use core::traits::Into; - -use orion::numbers::signed_integer::integer_trait::IntegerTrait; -use orion::numbers::signed_integer::i8::i8; - -// ====================== INT 32 ====================== - -// i32 represents a 32-bit integer. -// The mag field holds the absolute value of the integer. -// The sign field is true for negative integers, and false for non-negative integers. -#[derive(Serde, Copy, Drop)] -struct i32 { - mag: u32, - sign: bool, -} - -impl i32Impl of IntegerTrait { - fn new(mag: u32, sign: bool) -> i32 { - i32_new(mag, sign) - } - - fn div_rem(self: i32, other: i32) -> (i32, i32) { - i32_div_rem(self, other) - } - - fn abs(self: i32) -> i32 { - i32_abs(self) - } - - fn max(self: i32, other: i32) -> i32 { - i32_max(self, other) - } - - fn min(self: i32, other: i32) -> i32 { - i32_min(self, other) - } - - fn sign(self: i32) -> i32 { - i32_sign(self) - } - - fn NaN() -> i32 { - return i32 { mag: 0, sign: true }; - } - - fn is_nan(self: i32) -> bool { - self == i32 { mag: 0, sign: true } - } - - fn INF() -> i32 { - return i32 { mag: 4294967295, sign: false }; - } - - fn POS_INF() -> i32 { - return i32 { mag: 4294967295, sign: false }; - } - - fn NEG_INF() -> i32 { - return i32 { mag: 4294967295, sign: true }; - } - - fn is_inf(self: i32) -> bool { - self.mag == 4294967295 - } - - fn is_pos_inf(self: i32) -> bool { - self.is_inf() && !self.sign - } - - fn is_neg_inf(self: i32) -> bool { - self.is_inf() && self.sign - } -} - -// Implements the Into trait for i32. -impl i32Into of Into { - fn into(self: i32) -> felt252 { - let mag_felt = self.mag.into(); - - if (self.sign == true) { - return mag_felt * -1; - } else { - return mag_felt; - } - } -} - -// Implements the Into trait for u32 -> i32 -impl u32Intoi32 of Into { - fn into(self: u32) -> i32 { - i32 { mag: self.into(), sign: false } - } -} - -// Implements the Add trait for i32. -impl i32Add of Add { - fn add(lhs: i32, rhs: i32) -> i32 { - i32_add(lhs, rhs) - } -} - -// Implements the AddEq trait for i32. -impl i32AddEq of AddEq { - #[inline(always)] - fn add_eq(ref self: i32, other: i32) { - self = Add::add(self, other); - } -} - -// Implements the Sub trait for i32. -impl i32Sub of Sub { - fn sub(lhs: i32, rhs: i32) -> i32 { - i32_sub(lhs, rhs) - } -} - -// Implements the SubEq trait for i32. -impl i32SubEq of SubEq { - #[inline(always)] - fn sub_eq(ref self: i32, other: i32) { - self = Sub::sub(self, other); - } -} - -// Implements the Mul trait for i32. -impl i32Mul of Mul { - fn mul(lhs: i32, rhs: i32) -> i32 { - i32_mul(lhs, rhs) - } -} - -// Implements the MulEq trait for i32. -impl i32MulEq of MulEq { - #[inline(always)] - fn mul_eq(ref self: i32, other: i32) { - self = Mul::mul(self, other); - } -} - -// Implements the Div trait for i32. -impl i32Div of Div { - fn div(lhs: i32, rhs: i32) -> i32 { - i32_div(lhs, rhs) - } -} - -// Implements the DivEq trait for i32. -impl i32DivEq of DivEq { - #[inline(always)] - fn div_eq(ref self: i32, other: i32) { - self = Div::div(self, other); - } -} - -// Implements the Rem trait for i32. -impl i32Rem of Rem { - fn rem(lhs: i32, rhs: i32) -> i32 { - i32_rem(lhs, rhs) - } -} - -// Implements the RemEq trait for i32. -impl i32RemEq of RemEq { - #[inline(always)] - fn rem_eq(ref self: i32, other: i32) { - self = Rem::rem(self, other); - } -} - -// Implements the PartialEq trait for i32. -impl i32PartialEq of PartialEq { - fn eq(lhs: @i32, rhs: @i32) -> bool { - i32_eq(*lhs, *rhs) - } - - fn ne(lhs: @i32, rhs: @i32) -> bool { - i32_ne(*lhs, *rhs) - } -} - -// Implements the PartialOrd trait for i32. -impl i32PartialOrd of PartialOrd { - fn le(lhs: i32, rhs: i32) -> bool { - i32_le(lhs, rhs) - } - fn ge(lhs: i32, rhs: i32) -> bool { - i32_ge(lhs, rhs) - } - - fn lt(lhs: i32, rhs: i32) -> bool { - i32_lt(lhs, rhs) - } - fn gt(lhs: i32, rhs: i32) -> bool { - i32_gt(lhs, rhs) - } -} - -// Implements the Neg trait for i32. -impl i32Neg of Neg { - fn neg(a: i32) -> i32 { - i32_neg(a) - } -} - -impl I32TryIntoI8 of TryInto { - fn try_into(self: i32) -> Option { - i8_try_from_i32(self) - } -} - -// Checks if the given i32 integer is zero and has the correct sign. -// # Arguments -// * `x` - The i32 integer to check. -// # Panics -// Panics if `x` is zero and has a sign that is not false. -fn i32_check_sign_zero(x: i32) { - if x.mag == 0 { - assert(x.sign == false, 'sign of 0 must be false'); - } -} - -/// Cf: IntegerTrait::new docstring -fn i32_new(mag: u32, sign: bool) -> i32 { - if sign == true { - assert(mag <= 2147483648, 'int: out of range'); - } else { - assert(mag <= 2147483647, 'int: out of range'); - } - i32 { mag, sign } -} - -// Adds two i32 integers. -// # Arguments -// * `a` - The first i32 to add. -// * `b` - The second i32 to add. -// # Returns -// * `i32` - The sum of `a` and `b`. -fn i32_add(a: i32, b: i32) -> i32 { - i32_check_sign_zero(a); - i32_check_sign_zero(b); - - // If both integers have the same sign, - // the sum of their absolute values can be returned. - if a.sign == b.sign { - let sum = a.mag + b.mag; - if (sum == 0) { - return IntegerTrait::new(sum, false); - } - return ensure_non_negative_zero(sum, a.sign); - } else { - // If the integers have different signs, - // the larger absolute value is subtracted from the smaller one. - let (larger, smaller) = if a.mag >= b.mag { - (a, b) - } else { - (b, a) - }; - let difference = larger.mag - smaller.mag; - - if (difference == 0) { - return IntegerTrait::new(difference, false); - } - return ensure_non_negative_zero(difference, larger.sign); - } -} - -// Subtracts two i32 integers. -// # Arguments -// * `a` - The first i32 to subtract. -// * `b` - The second i32 to subtract. -// # Returns -// * `i32` - The difference of `a` and `b`. -fn i32_sub(a: i32, b: i32) -> i32 { - i32_check_sign_zero(a); - i32_check_sign_zero(b); - - if (b.mag == 0) { - return a; - } - - // The subtraction of `a` to `b` is achieved by negating `b` sign and adding it to `a`. - let neg_b = ensure_non_negative_zero(b.mag, !b.sign); - return a + neg_b; -} - -// Multiplies two i32 integers. -// -// # Arguments -// -// * `a` - The first i32 to multiply. -// * `b` - The second i32 to multiply. -// -// # Returns -// -// * `i32` - The product of `a` and `b`. -fn i32_mul(a: i32, b: i32) -> i32 { - i32_check_sign_zero(a); - i32_check_sign_zero(b); - - // The sign of the product is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - // The product is the product of the absolute values of the operands. - let mag = a.mag * b.mag; - - if (mag == 0) { - return IntegerTrait::new(mag, false); - } - - return ensure_non_negative_zero(mag, sign); -} - -// Divides the first i32 by the second i32. -// # Arguments -// * `a` - The i32 dividend. -// * `b` - The i32 divisor. -// # Returns -// * `i32` - The quotient of `a` and `b`. -fn i32_div(a: i32, b: i32) -> i32 { - i32_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0, 'b can not be 0'); - - // The sign of the quotient is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - - if (sign == false) { - // If the operands are positive, the quotient is simply their absolute value quotient. - return ensure_non_negative_zero(a.mag / b.mag, sign); - } - - // If the operands have different signs, rounding is necessary. - // First, check if the quotient is an integer. - if (a.mag % b.mag == 0) { - let quotient = a.mag / b.mag; - if (quotient == 0) { - return IntegerTrait::new(quotient, false); - } - return ensure_non_negative_zero(quotient, sign); - } - - // If the quotient is not an integer, multiply the dividend by 10 to move the decimal point over. - let quotient = (a.mag * 10) / b.mag; - let last_digit = quotient % 10; - - if (quotient == 0) { - return ensure_non_negative_zero(quotient, false); - } - - // Check the last digit to determine rounding direction. - if (last_digit <= 5) { - return ensure_non_negative_zero(quotient / 10, sign); - } else { - return ensure_non_negative_zero((quotient / 10) + 1, sign); - } -} - -// Calculates the remainder of the division of a first i32 by a second i32. -// # Arguments -// * `a` - The i32 dividend. -// * `b` - The i32 divisor. -// # Returns -// * `i32` - The remainder of dividing `a` by `b`. -fn i32_rem(a: i32, b: i32) -> i32 { - i32_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0, 'b can not be 0'); - - return a - (b * (a / b)); -} - -/// Cf: IntegerTrait::div_rem docstring -fn i32_div_rem(a: i32, b: i32) -> (i32, i32) { - let quotient = i32_div(a, b); - let remainder = i32_rem(a, b); - - return (quotient, remainder); -} - -// Compares two i32 integers for equality. -// # Arguments -// * `a` - The first i32 integer to compare. -// * `b` - The second i32 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are equal, `false` otherwise. -fn i32_eq(a: i32, b: i32) -> bool { - // Check if the two integers have the same sign and the same absolute value. - if a.sign == b.sign && a.mag == b.mag { - return true; - } - - return false; -} - -// Compares two i32 integers for inequality. -// # Arguments -// * `a` - The first i32 integer to compare. -// * `b` - The second i32 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are not equal, `false` otherwise. -fn i32_ne(a: i32, b: i32) -> bool { - // The result is the inverse of the equal function. - return !i32_eq(a, b); -} - -// Compares two i32 integers for greater than. -// # Arguments -// * `a` - The first i32 integer to compare. -// * `b` - The second i32 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than `b`, `false` otherwise. -fn i32_gt(a: i32, b: i32) -> bool { - // Check if `a` is negative and `b` is positive. - if (a.sign & !b.sign) { - return false; - } - // Check if `a` is positive and `b` is negative. - if (!a.sign & b.sign) { - return true; - } - // If `a` and `b` have the same sign, compare their absolute values. - if (a.sign & b.sign) { - return a.mag < b.mag; - } else { - return a.mag > b.mag; - } -} - -// Determines whether the first i32 is less than the second i32. -// # Arguments -// * `a` - The i32 to compare against the second i32. -// * `b` - The i32 to compare against the first i32. -// # Returns -// * `bool` - `true` if `a` is less than `b`, `false` otherwise. -fn i32_lt(a: i32, b: i32) -> bool { - if (a.sign != b.sign) { - return a.sign; - } else { - return a.mag != b.mag && (a.mag < b.mag) ^ a.sign; - } -} - -// Checks if the first i32 integer is less than or equal to the second. -// # Arguments -// * `a` - The first i32 integer to compare. -// * `b` - The second i32 integer to compare. -// # Returns -// * `bool` - `true` if `a` is less than or equal to `b`, `false` otherwise. -fn i32_le(a: i32, b: i32) -> bool { - if (a == b || i32_lt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Checks if the first i32 integer is greater than or equal to the second. -// # Arguments -// * `a` - The first i32 integer to compare. -// * `b` - The second i32 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than or equal to `b`, `false` otherwise. -fn i32_ge(a: i32, b: i32) -> bool { - if (a == b || i32_gt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Negates the given i32 integer. -// # Arguments -// * `x` - The i32 integer to negate. -// # Returns -// * `i32` - The negation of `x`. -fn i32_neg(x: i32) -> i32 { - // The negation of an integer is obtained by flipping its sign. - return ensure_non_negative_zero(x.mag, !x.sign); -} - -/// Cf: IntegerTrait::abs docstring -fn i32_abs(x: i32) -> i32 { - return IntegerTrait::new(x.mag, false); -} - -/// Cf: IntegerTrait::max docstring -fn i32_max(a: i32, b: i32) -> i32 { - if (a > b) { - return a; - } else { - return b; - } -} - -/// Cf: IntegerTrait::min docstring -fn i32_min(a: i32, b: i32) -> i32 { - if (a < b) { - return a; - } else { - return b; - } -} - -fn i32_xor(a: i32, b: i32) -> bool { - if (a.mag == 0_u32 || b.mag == 0_u32) && a.mag != b.mag { - return true; - } else { - return false; - } -} - -fn i32_or(a: i32, b: i32) -> bool { - if (a.mag == 0_u32 && b.mag == 0_u32) { - return false; - } else { - return true; - } -} - -fn i8_try_from_i32(x: i32) -> Option { - match x.mag.try_into() { - Option::Some(val) => Option::Some(i8 { mag: val, sign: x.sign }), - Option::None(_) => Option::None(()) - } -} - -fn ensure_non_negative_zero(mag: u32, sign: bool) -> i32 { - if mag == 0 { - IntegerTrait::::new(mag, false) - } else { - IntegerTrait::::new(mag, sign) - } -} - -fn i32_sign(a: i32) -> i32 { - if a.mag == 0 { - IntegerTrait::::new(0, false) - } else { - IntegerTrait::::new(1, a.sign) - } -} - -fn i32_bitwise_and(a: i32, b: i32) -> i32 { - IntegerTrait::::new(a.mag & b.mag, a.sign & b.sign) -} - -fn i32_bitwise_xor(a: i32, b: i32) -> i32 { - IntegerTrait::::new(a.mag ^ b.mag, a.sign ^ b.sign) -} - -fn i32_bitwise_or(a: i32, b: i32) -> i32 { - IntegerTrait::::new(a.mag | b.mag, a.sign | b.sign) -} diff --git a/src/numbers/signed_integer/i64.cairo b/src/numbers/signed_integer/i64.cairo deleted file mode 100644 index d0ce98ea1..000000000 --- a/src/numbers/signed_integer/i64.cairo +++ /dev/null @@ -1,515 +0,0 @@ -use core::traits::Into; - -use orion::numbers::signed_integer::integer_trait::IntegerTrait; - -// ====================== INT 64 ====================== - -// i64 represents a 64-bit integer. -// The mag field holds the absolute value of the integer. -// The sign field is true for negative integers, and false for non-negative integers. -#[derive(Serde, Copy, Drop)] -struct i64 { - mag: u64, - sign: bool, -} - -impl i64Impl of IntegerTrait { - fn new(mag: u64, sign: bool) -> i64 { - i64_new(mag, sign) - } - - fn div_rem(self: i64, other: i64) -> (i64, i64) { - i64_div_rem(self, other) - } - - fn abs(self: i64) -> i64 { - i64_abs(self) - } - - fn max(self: i64, other: i64) -> i64 { - i64_max(self, other) - } - - fn min(self: i64, other: i64) -> i64 { - i64_min(self, other) - } - - fn sign(self: i64) -> i64 { - i64_sign(self) - } - - fn NaN() -> i64 { - return i64 { mag: 0, sign: true }; - } - - fn is_nan(self: i64) -> bool { - self == i64 { mag: 0, sign: true } - } - - fn INF() -> i64 { - return i64 { mag: 18446744073709551615, sign: false }; - } - - fn POS_INF() -> i64 { - return i64 { mag: 18446744073709551615, sign: false }; - } - - fn NEG_INF() -> i64 { - return i64 { mag: 18446744073709551615, sign: true }; - } - - fn is_inf(self: i64) -> bool { - self.mag == 18446744073709551615 - } - - fn is_pos_inf(self: i64) -> bool { - self.is_inf() && !self.sign - } - - fn is_neg_inf(self: i64) -> bool { - self.is_inf() && self.sign - } -} - -// Implements the Into trait for i64. -impl i32Into of Into { - fn into(self: i64) -> felt252 { - let mag_felt = self.mag.into(); - - if (self.sign == true) { - return mag_felt * -1; - } else { - return mag_felt; - } - } -} - -// Implements the Add trait for i64. -impl i64Add of Add { - fn add(lhs: i64, rhs: i64) -> i64 { - i64_add(lhs, rhs) - } -} - -// Implements the AddEq trait for i64. -impl i64AddEq of AddEq { - #[inline(always)] - fn add_eq(ref self: i64, other: i64) { - self = Add::add(self, other); - } -} - -// Implements the Sub trait for i64. -impl i64Sub of Sub { - fn sub(lhs: i64, rhs: i64) -> i64 { - i64_sub(lhs, rhs) - } -} - -// Implements the SubEq trait for i64. -impl i64SubEq of SubEq { - #[inline(always)] - fn sub_eq(ref self: i64, other: i64) { - self = Sub::sub(self, other); - } -} - -// Implements the Mul trait for i64. -impl i64Mul of Mul { - fn mul(lhs: i64, rhs: i64) -> i64 { - i64_mul(lhs, rhs) - } -} - -// Implements the MulEq trait for i64. -impl i64MulEq of MulEq { - #[inline(always)] - fn mul_eq(ref self: i64, other: i64) { - self = Mul::mul(self, other); - } -} - -// Implements the Div trait for i64. -impl i64Div of Div { - fn div(lhs: i64, rhs: i64) -> i64 { - i64_div(lhs, rhs) - } -} - -// Implements the DivEq trait for i64. -impl i64DivEq of DivEq { - #[inline(always)] - fn div_eq(ref self: i64, other: i64) { - self = Div::div(self, other); - } -} - -// Implements the Rem trait for i64. -impl i64Rem of Rem { - fn rem(lhs: i64, rhs: i64) -> i64 { - i64_rem(lhs, rhs) - } -} - -// Implements the RemEq trait for i64. -impl i64RemEq of RemEq { - #[inline(always)] - fn rem_eq(ref self: i64, other: i64) { - self = Rem::rem(self, other); - } -} - -// Implements the PartialEq trait for i64. -impl i64PartialEq of PartialEq { - fn eq(lhs: @i64, rhs: @i64) -> bool { - i64_eq(*lhs, *rhs) - } - - fn ne(lhs: @i64, rhs: @i64) -> bool { - i64_ne(*lhs, *rhs) - } -} - -// Implements the PartialOrd trait for i64. -impl i64PartialOrd of PartialOrd { - fn le(lhs: i64, rhs: i64) -> bool { - i64_le(lhs, rhs) - } - fn ge(lhs: i64, rhs: i64) -> bool { - i64_ge(lhs, rhs) - } - - fn lt(lhs: i64, rhs: i64) -> bool { - i64_lt(lhs, rhs) - } - fn gt(lhs: i64, rhs: i64) -> bool { - i64_gt(lhs, rhs) - } -} - -// Implements the Neg trait for i64. -impl i64Neg of Neg { - fn neg(a: i64) -> i64 { - i64_neg(a) - } -} - -// Checks if the given i64 integer is zero and has the correct sign. -// # Arguments -// * `x` - The i64 integer to check. -// # Panics -// Panics if `x` is zero and has a sign that is not false. -fn i64_check_sign_zero(x: i64) { - if x.mag == 0_u64 { - assert(x.sign == false, 'sign of 0 must be false'); - } -} - -/// Cf: IntegerTrait::new docstring -fn i64_new(mag: u64, sign: bool) -> i64 { - if sign == true { - assert(mag <= 9223372036854775808_u64, 'int: out of range'); - } else { - assert(mag <= 9223372036854775807_u64, 'int: out of range'); - } - i64 { mag, sign } -} - -// Adds two i64 integers. -// # Arguments -// * `a` - The first i64 to add. -// * `b` - The second i64 to add. -// # Returns -// * `i64` - The sum of `a` and `b`. -fn i64_add(a: i64, b: i64) -> i64 { - i64_check_sign_zero(a); - i64_check_sign_zero(b); - - // If both integers have the same sign, - // the sum of their absolute values can be returned. - if a.sign == b.sign { - let sum = a.mag + b.mag; - if (sum == 0_u64) { - return IntegerTrait::new(sum, false); - } - return ensure_non_negative_zero(sum, a.sign); - } else { - // If the integers have different signs, - // the larger absolute value is subtracted from the smaller one. - let (larger, smaller) = if a.mag >= b.mag { - (a, b) - } else { - (b, a) - }; - let difference = larger.mag - smaller.mag; - - if (difference == 0_u64) { - return IntegerTrait::new(difference, false); - } - return ensure_non_negative_zero(difference, larger.sign); - } -} - -// Subtracts two i64 integers. -// # Arguments -// * `a` - The first i64 to subtract. -// * `b` - The second i64 to subtract. -// # Returns -// * `i64` - The difference of `a` and `b`. -fn i64_sub(a: i64, b: i64) -> i64 { - i64_check_sign_zero(a); - i64_check_sign_zero(b); - - if (b.mag == 0_u64) { - return a; - } - - // The subtraction of `a` to `b` is achieved by negating `b` sign and adding it to `a`. - let neg_b = ensure_non_negative_zero(b.mag, !b.sign); - return a + neg_b; -} - -// Multiplies two i64 integers. -// -// # Arguments -// -// * `a` - The first i64 to multiply. -// * `b` - The second i64 to multiply. -// -// # Returns -// -// * `i64` - The product of `a` and `b`. -fn i64_mul(a: i64, b: i64) -> i64 { - i64_check_sign_zero(a); - i64_check_sign_zero(b); - - // The sign of the product is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - // The product is the product of the absolute values of the operands. - let mag = a.mag * b.mag; - - if (mag == 0_u64) { - return IntegerTrait::new(mag, false); - } - - return ensure_non_negative_zero(mag, sign); -} - -// Divides the first i64 by the second i64. -// # Arguments -// * `a` - The i64 dividend. -// * `b` - The i64 divisor. -// # Returns -// * `i64` - The quotient of `a` and `b`. -fn i64_div(a: i64, b: i64) -> i64 { - i64_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u64, 'b can not be 0'); - - // The sign of the quotient is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - - if (sign == false) { - // If the operands are positive, the quotient is simply their absolute value quotient. - return ensure_non_negative_zero(a.mag / b.mag, sign); - } - - // If the operands have different signs, rounding is necessary. - // First, check if the quotient is an integer. - if (a.mag % b.mag == 0_u64) { - let quotient = a.mag / b.mag; - if (quotient == 0_u64) { - return IntegerTrait::new(quotient, false); - } - return ensure_non_negative_zero(quotient, sign); - } - - // If the quotient is not an integer, multiply the dividend by 10 to move the decimal point over. - let quotient = (a.mag * 10_u64) / b.mag; - let last_digit = quotient % 10_u64; - - if (quotient == 0_u64) { - return IntegerTrait::new(quotient, false); - } - - // Check the last digit to determine rounding direction. - if (last_digit <= 5_u64) { - return ensure_non_negative_zero(quotient / 10_u64, sign); - } else { - return ensure_non_negative_zero((quotient / 10_u64) + 1_u64, sign); - } -} - -// Calculates the remainder of the division of a first i64 by a second i64. -// # Arguments -// * `a` - The i64 dividend. -// * `b` - The i64 divisor. -// # Returns -// * `i64` - The remainder of dividing `a` by `b`. -fn i64_rem(a: i64, b: i64) -> i64 { - i64_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u64, 'b can not be 0'); - - return a - (b * (a / b)); -} - -/// Cf: IntegerTrait::div_rem docstring -fn i64_div_rem(a: i64, b: i64) -> (i64, i64) { - let quotient = i64_div(a, b); - let remainder = i64_rem(a, b); - - return (quotient, remainder); -} - -// Compares two i64 integers for equality. -// # Arguments -// * `a` - The first i64 integer to compare. -// * `b` - The second i64 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are equal, `false` otherwise. -fn i64_eq(a: i64, b: i64) -> bool { - // Check if the two integers have the same sign and the same absolute value. - if a.sign == b.sign && a.mag == b.mag { - return true; - } - - return false; -} - -// Compares two i64 integers for inequality. -// # Arguments -// * `a` - The first i64 integer to compare. -// * `b` - The second i64 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are not equal, `false` otherwise. -fn i64_ne(a: i64, b: i64) -> bool { - // The result is the inverse of the equal function. - return !i64_eq(a, b); -} - -// Compares two i64 integers for greater than. -// # Arguments -// * `a` - The first i64 integer to compare. -// * `b` - The second i64 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than `b`, `false` otherwise. -fn i64_gt(a: i64, b: i64) -> bool { - // Check if `a` is negative and `b` is positive. - if (a.sign & !b.sign) { - return false; - } - // Check if `a` is positive and `b` is negative. - if (!a.sign & b.sign) { - return true; - } - // If `a` and `b` have the same sign, compare their absolute values. - if (a.sign & b.sign) { - return a.mag < b.mag; - } else { - return a.mag > b.mag; - } -} - -// Determines whether the first i64 is less than the second i64. -// # Arguments -// * `a` - The i64 to compare against the second i64. -// * `b` - The i64 to compare against the first i64. -// # Returns -// * `bool` - `true` if `a` is less than `b`, `false` otherwise. -fn i64_lt(a: i64, b: i64) -> bool { - if (a.sign != b.sign) { - return a.sign; - } else { - return a.mag != b.mag && (a.mag < b.mag) ^ a.sign; - } -} - -// Checks if the first i64 integer is less than or equal to the second. -// # Arguments -// * `a` - The first i64 integer to compare. -// * `b` - The second i64 integer to compare. -// # Returns -// * `bool` - `true` if `a` is less than or equal to `b`, `false` otherwise. -fn i64_le(a: i64, b: i64) -> bool { - if (a == b || i64_lt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Checks if the first i64 integer is greater than or equal to the second. -// # Arguments -// * `a` - The first i64 integer to compare. -// * `b` - The second i64 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than or equal to `b`, `false` otherwise. -fn i64_ge(a: i64, b: i64) -> bool { - if (a == b || i64_gt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Negates the given i64 integer. -// # Arguments -// * `x` - The i64 integer to negate. -// # Returns -// * `i64` - The negation of `x`. -fn i64_neg(x: i64) -> i64 { - // The negation of an integer is obtained by flipping its sign. - return ensure_non_negative_zero(x.mag, !x.sign); -} - -/// Cf: IntegerTrait::abs docstring -fn i64_abs(x: i64) -> i64 { - return IntegerTrait::new(x.mag, false); -} - -/// Cf: IntegerTrait::max docstring -fn i64_max(a: i64, b: i64) -> i64 { - if (a > b) { - return a; - } else { - return b; - } -} - -/// Cf: IntegerTrait::min docstring -fn i64_min(a: i64, b: i64) -> i64 { - if (a < b) { - return a; - } else { - return b; - } -} - -fn ensure_non_negative_zero(mag: u64, sign: bool) -> i64 { - if mag == 0 { - IntegerTrait::::new(mag, false) - } else { - IntegerTrait::::new(mag, sign) - } -} - -fn i64_sign(a: i64) -> i64 { - if a.mag == 0 { - IntegerTrait::::new(0, false) - } else { - IntegerTrait::::new(1, a.sign) - } -} - -fn i64_bitwise_and(a: i64, b: i64) -> i64 { - IntegerTrait::::new(a.mag & b.mag, a.sign & b.sign) -} - -fn i64_bitwise_xor(a: i64, b: i64) -> i64 { - IntegerTrait::::new(a.mag ^ b.mag, a.sign ^ b.sign) -} - -fn i64_bitwise_or(a: i64, b: i64) -> i64 { - IntegerTrait::::new(a.mag | b.mag, a.sign | b.sign) -} diff --git a/src/numbers/signed_integer/i8.cairo b/src/numbers/signed_integer/i8.cairo deleted file mode 100644 index 016469b05..000000000 --- a/src/numbers/signed_integer/i8.cairo +++ /dev/null @@ -1,592 +0,0 @@ -use core::traits::Into; - -use orion::numbers::signed_integer::integer_trait::IntegerTrait; -use orion::numbers::signed_integer::i32::i32; -use orion::numbers::fixed_point::implementations::fp8x23::core::{ONE as ONE_fp8x23, FP8x23}; -use orion::numbers::fixed_point::implementations::fp16x16::core::{ONE as ONE_fp16x16, FP16x16}; -use orion::numbers::fixed_point::implementations::fp64x64::core::{ONE as ONE_fp64x64, FP64x64}; -use orion::numbers::fixed_point::implementations::fp32x32::core::{ONE as ONE_fp32x32, FP32x32}; -use orion::numbers::fixed_point::core::FixedTrait; - -// ====================== INT 8 ====================== - -// i8 represents a 8-bit integer. -// The mag field holds the absolute value of the integer. -// The sign field is true for negative integers, and false for non-negative integers. -#[derive(Serde, Copy, Drop)] -struct i8 { - mag: u8, - sign: bool, -} - -impl i8Impl of IntegerTrait { - fn new(mag: u8, sign: bool) -> i8 { - i8_new(mag, sign) - } - - fn div_rem(self: i8, other: i8) -> (i8, i8) { - i8_div_rem(self, other) - } - - fn abs(self: i8) -> i8 { - i8_abs(self) - } - - fn max(self: i8, other: i8) -> i8 { - i8_max(self, other) - } - - fn min(self: i8, other: i8) -> i8 { - i8_min(self, other) - } - - fn sign(self: i8) -> i8 { - i8_sign(self) - } - - fn NaN() -> i8 { - return i8 { mag: 0, sign: true }; - } - - fn is_nan(self: i8) -> bool { - self == i8 { mag: 0, sign: true } - } - - fn INF() -> i8 { - return i8 { mag: 255, sign: false }; - } - - fn POS_INF() -> i8 { - return i8 { mag: 255, sign: false }; - } - - fn NEG_INF() -> i8 { - return i8 { mag: 255, sign: true }; - } - - fn is_inf(self: i8) -> bool { - self.mag == 255 - } - - fn is_pos_inf(self: i8) -> bool { - self.is_inf() && !self.sign - } - - fn is_neg_inf(self: i8) -> bool { - self.is_inf() && self.sign - } -} - -// Implements the Into trait for i8. -impl i8Into of Into { - fn into(self: i8) -> felt252 { - let mag_felt = self.mag.into(); - - if (self.sign == true) { - return mag_felt * -1; - } else { - return mag_felt; - } - } -} - -// Implements the Add trait for i8. -impl i8Add of Add { - fn add(lhs: i8, rhs: i8) -> i8 { - i8_add(lhs, rhs) - } -} - -// Implements the AddEq trait for i8. -impl i8AddEq of AddEq { - #[inline(always)] - fn add_eq(ref self: i8, other: i8) { - self = Add::add(self, other); - } -} - -// Implements the Sub trait for i8. -impl i8Sub of Sub { - fn sub(lhs: i8, rhs: i8) -> i8 { - i8_sub(lhs, rhs) - } -} - -// Implements the SubEq trait for i8. -impl i8SubEq of SubEq { - #[inline(always)] - fn sub_eq(ref self: i8, other: i8) { - self = Sub::sub(self, other); - } -} - -// Implements the Mul trait for i8. -impl i8Mul of Mul { - fn mul(lhs: i8, rhs: i8) -> i8 { - i8_mul(lhs, rhs) - } -} - -// Implements the MulEq trait for i8. -impl i8MulEq of MulEq { - #[inline(always)] - fn mul_eq(ref self: i8, other: i8) { - self = Mul::mul(self, other); - } -} - -// Implements the Div trait for i8. -impl i8Div of Div { - fn div(lhs: i8, rhs: i8) -> i8 { - i8_div(lhs, rhs) - } -} - -// Implements the DivEq trait for i8. -impl i8DivEq of DivEq { - #[inline(always)] - fn div_eq(ref self: i8, other: i8) { - self = Div::div(self, other); - } -} - -// Implements the Rem trait for i8. -impl i8Rem of Rem { - fn rem(lhs: i8, rhs: i8) -> i8 { - i8_rem(lhs, rhs) - } -} - -// Implements the RemEq trait for i8. -impl i8RemEq of RemEq { - #[inline(always)] - fn rem_eq(ref self: i8, other: i8) { - self = Rem::rem(self, other); - } -} - -// Implements the PartialEq trait for i8. -impl i8PartialEq of PartialEq { - fn eq(lhs: @i8, rhs: @i8) -> bool { - i8_eq(*lhs, *rhs) - } - - fn ne(lhs: @i8, rhs: @i8) -> bool { - i8_ne(*lhs, *rhs) - } -} - -// Implements the PartialOrd trait for i8. -impl i8PartialOrd of PartialOrd { - fn le(lhs: i8, rhs: i8) -> bool { - i8_le(lhs, rhs) - } - fn ge(lhs: i8, rhs: i8) -> bool { - i8_ge(lhs, rhs) - } - - fn lt(lhs: i8, rhs: i8) -> bool { - i8_lt(lhs, rhs) - } - fn gt(lhs: i8, rhs: i8) -> bool { - i8_gt(lhs, rhs) - } -} - -// Implements the Neg trait for i8. -impl i8Neg of Neg { - fn neg(a: i8) -> i8 { - i8_neg(a) - } -} - -// Implements the Into trait for i8 to i32. -impl I8IntoI32 of Into { - fn into(self: i8) -> i32 { - i8_to_i32(self) - } -} - -// Implements the Into trait for i8 to fp_8x23. -impl I8IntoFP8x23 of Into { - fn into(self: i8) -> FP8x23 { - i8_to_fp8x23(self) - } -} - -// Implements the Into trait for i8 to fp_16x16. -impl I8IntoFP16x16 of Into { - fn into(self: i8) -> FP16x16 { - i8_to_fp16x16(self) - } -} - -// Implements the Into trait for i8 to fp_64x64. -impl I8IntoFP64x64 of Into { - fn into(self: i8) -> FP64x64 { - i8_to_fp64x64(self) - } -} - -// Implements the Into trait for i8 to fp_32x32. -impl I8IntoFP32x32 of Into { - fn into(self: i8) -> FP32x32 { - i8_to_fp32x32(self) - } -} - -// Checks if the given i8 integer is zero and has the correct sign. -// # Arguments -// * `x` - The i8 integer to check. -// # Panics -// Panics if `x` is zero and has a sign that is not false. -fn i8_check_sign_zero(x: i8) { - if x.mag == 0_u8 { - assert(x.sign == false, 'sign of 0 must be false'); - } -} - -/// Cf: IntegerTrait::new docstring -fn i8_new(mag: u8, sign: bool) -> i8 { - if sign == true { - assert(mag <= 128_u8, 'int: out of range'); - } else { - assert(mag <= 127_u8, 'int: out of range'); - } - i8 { mag, sign } -} - -// Adds two i8 integers. -// # Arguments -// * `a` - The first i8 to add. -// * `b` - The second i8 to add. -// # Returns -// * `i8` - The sum of `a` and `b`. -fn i8_add(a: i8, b: i8) -> i8 { - i8_check_sign_zero(a); - i8_check_sign_zero(b); - - // If both integers have the same sign, - // the sum of their absolute values can be returned. - if a.sign == b.sign { - let sum = a.mag + b.mag; - if (sum == 0_u8) { - return IntegerTrait::new(sum, false); - } - return ensure_non_negative_zero(sum, a.sign); - } else { - // If the integers have different signs, - // the larger absolute value is subtracted from the smaller one. - let (larger, smaller) = if a.mag >= b.mag { - (a, b) - } else { - (b, a) - }; - let difference = larger.mag - smaller.mag; - - if (difference == 0_u8) { - return IntegerTrait::new(difference, false); - } - return ensure_non_negative_zero(difference, larger.sign); - } -} - -// Subtracts two i8 integers. -// # Arguments -// * `a` - The first i8 to subtract. -// * `b` - The second i8 to subtract. -// # Returns -// * `i8` - The difference of `a` and `b`. -fn i8_sub(a: i8, b: i8) -> i8 { - i8_check_sign_zero(a); - i8_check_sign_zero(b); - - if (b.mag == 0_u8) { - return a; - } - - // The subtraction of `a` to `b` is achieved by negating `b` sign and adding it to `a`. - let neg_b = ensure_non_negative_zero(b.mag, !b.sign); - return a + neg_b; -} - -// Multiplies two i8 integers. -// -// # Arguments -// -// * `a` - The first i8 to multiply. -// * `b` - The second i8 to multiply. -// -// # Returns -// -// * `i8` - The product of `a` and `b`. -fn i8_mul(a: i8, b: i8) -> i8 { - i8_check_sign_zero(a); - i8_check_sign_zero(b); - - // The sign of the product is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - // The product is the product of the absolute values of the operands. - let mag = a.mag * b.mag; - - if (mag == 0_u8) { - return IntegerTrait::new(mag, false); - } - - return ensure_non_negative_zero(mag, sign); -} - -// Divides the first i8 by the second i8. -// # Arguments -// * `a` - The i8 dividend. -// * `b` - The i8 divisor. -// # Returns -// * `i8` - The quotient of `a` and `b`. -fn i8_div(a: i8, b: i8) -> i8 { - i8_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u8, 'b can not be 0'); - - // The sign of the quotient is the XOR of the signs of the operands. - let sign = a.sign ^ b.sign; - - if (sign == false) { - // If the operands are positive, the quotient is simply their absolute value quotient. - return ensure_non_negative_zero(a.mag / b.mag, sign); - } - - // If the operands have different signs, rounding is necessary. - // First, check if the quotient is an integer. - if (a.mag % b.mag == 0_u8) { - let quotient = a.mag / b.mag; - if (quotient == 0_u8) { - return IntegerTrait::new(quotient, false); - } - return ensure_non_negative_zero(quotient, sign); - } - - // If the quotient is not an integer, multiply the dividend by 10 to move the decimal point over. - let quotient = (a.mag * 10_u8) / b.mag; - let last_digit = quotient % 10_u8; - - if (quotient == 0_u8) { - return IntegerTrait::new(quotient, false); - } - - // Check the last digit to determine rounding direction. - if (last_digit <= 5_u8) { - return ensure_non_negative_zero(quotient / 10_u8, sign); - } else { - return ensure_non_negative_zero((quotient / 10_u8) + 1_u8, sign); - } -} - -// Calculates the remainder of the division of a first i8 by a second i8. -// # Arguments -// * `a` - The i8 dividend. -// * `b` - The i8 divisor. -// # Returns -// * `i8` - The remainder of dividing `a` by `b`. -fn i8_rem(a: i8, b: i8) -> i8 { - i8_check_sign_zero(a); - // Check that the divisor is not zero. - assert(b.mag != 0_u8, 'b can not be 0'); - - return a - (b * (a / b)); -} - -/// Cf: IntegerTrait::div_rem docstring -fn i8_div_rem(a: i8, b: i8) -> (i8, i8) { - let quotient = i8_div(a, b); - let remainder = i8_rem(a, b); - - return (quotient, remainder); -} - -// Compares two i8 integers for equality. -// # Arguments -// * `a` - The first i8 integer to compare. -// * `b` - The second i8 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are equal, `false` otherwise. -fn i8_eq(a: i8, b: i8) -> bool { - // Check if the two integers have the same sign and the same absolute value. - if a.sign == b.sign && a.mag == b.mag { - return true; - } - - return false; -} - -// Compares two i8 integers for inequality. -// # Arguments -// * `a` - The first i8 integer to compare. -// * `b` - The second i8 integer to compare. -// # Returns -// * `bool` - `true` if the two integers are not equal, `false` otherwise. -fn i8_ne(a: i8, b: i8) -> bool { - // The result is the inverse of the equal function. - return !i8_eq(a, b); -} - -// Compares two i8 integers for greater than. -// # Arguments -// * `a` - The first i8 integer to compare. -// * `b` - The second i8 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than `b`, `false` otherwise. -fn i8_gt(a: i8, b: i8) -> bool { - // Check if `a` is negative and `b` is positive. - if (a.sign & !b.sign) { - return false; - } - // Check if `a` is positive and `b` is negative. - if (!a.sign & b.sign) { - return true; - } - // If `a` and `b` have the same sign, compare their absolute values. - if (a.sign & b.sign) { - return a.mag < b.mag; - } else { - return a.mag > b.mag; - } -} - -// Determines whether the first i8 is less than the second i8. -// # Arguments -// * `a` - The i8 to compare against the second i8. -// * `b` - The i8 to compare against the first i8. -// # Returns -// * `bool` - `true` if `a` is less than `b`, `false` otherwise. -fn i8_lt(a: i8, b: i8) -> bool { - if (a.sign != b.sign) { - return a.sign; - } else { - return a.mag != b.mag && (a.mag < b.mag) ^ a.sign; - } -} - -// Checks if the first i8 integer is less than or equal to the second. -// # Arguments -// * `a` - The first i8 integer to compare. -// * `b` - The second i8 integer to compare. -// # Returns -// * `bool` - `true` if `a` is less than or equal to `b`, `false` otherwise. -fn i8_le(a: i8, b: i8) -> bool { - if (a == b || i8_lt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Checks if the first i8 integer is greater than or equal to the second. -// # Arguments -// * `a` - The first i8 integer to compare. -// * `b` - The second i8 integer to compare. -// # Returns -// * `bool` - `true` if `a` is greater than or equal to `b`, `false` otherwise. -fn i8_ge(a: i8, b: i8) -> bool { - if (a == b || i8_gt(a, b) == true) { - return true; - } else { - return false; - } -} - -// Negates the given i8 integer. -// # Arguments -// * `x` - The i8 integer to negate. -// # Returns -// * `i8` - The negation of `x`. -fn i8_neg(x: i8) -> i8 { - // The negation of an integer is obtained by flipping its sign. - return ensure_non_negative_zero(x.mag, !x.sign); -} - -/// Cf: IntegerTrait::abs docstring -fn i8_abs(x: i8) -> i8 { - return IntegerTrait::new(x.mag, false); -} - -/// Cf: IntegerTrait::max docstring -fn i8_max(a: i8, b: i8) -> i8 { - if (a > b) { - return a; - } else { - return b; - } -} - -/// Cf: IntegerTrait::min docstring -fn i8_min(a: i8, b: i8) -> i8 { - if (a < b) { - return a; - } else { - return b; - } -} - -fn i8_xor(a: i8, b: i8) -> bool { - if (a.mag == 0_u8 || b.mag == 0_u8) && a.mag != b.mag { - return true; - } else { - return false; - } -} - -fn i8_or(a: i8, b: i8) -> bool { - if (a.mag == 0_u8 && b.mag == 0_u8) { - return false; - } else { - return true; - } -} - -fn i8_to_i32(x: i8) -> i32 { - i32 { mag: x.mag.into(), sign: x.sign } -} - -fn i8_to_fp8x23(x: i8) -> FP8x23 { - FP8x23 { mag: x.mag.into() * ONE_fp8x23, sign: x.sign } -} - -fn i8_to_fp16x16(x: i8) -> FP16x16 { - FP16x16 { mag: x.mag.into() * ONE_fp16x16, sign: x.sign } -} - -fn i8_to_fp64x64(x: i8) -> FP64x64 { - FP64x64 { mag: x.mag.into() * ONE_fp64x64, sign: x.sign } -} - -fn i8_to_fp32x32(x: i8) -> FP32x32 { - FP32x32 { mag: x.mag.into() * ONE_fp32x32, sign: x.sign } -} - -fn ensure_non_negative_zero(mag: u8, sign: bool) -> i8 { - if mag == 0 { - IntegerTrait::::new(mag, false) - } else { - IntegerTrait::::new(mag, sign) - } -} - -fn i8_sign(a: i8) -> i8 { - if a.mag == 0 { - IntegerTrait::::new(0, false) - } else { - IntegerTrait::::new(1, a.sign) - } -} - -fn i8_bitwise_and(a: i8, b: i8) -> i8 { - return IntegerTrait::::new(a.mag & b.mag, a.sign & b.sign); -} - -fn i8_bitwise_xor(a: i8, b: i8) -> i8 { - return IntegerTrait::::new(a.mag ^ b.mag, a.sign ^ b.sign); -} - -fn i8_bitwise_or(a: i8, b: i8) -> i8 { - return IntegerTrait::::new(a.mag | b.mag, a.sign | b.sign); -} diff --git a/src/numbers/signed_integer/integer_trait.cairo b/src/numbers/signed_integer/integer_trait.cairo deleted file mode 100644 index ac53fe62c..000000000 --- a/src/numbers/signed_integer/integer_trait.cairo +++ /dev/null @@ -1,222 +0,0 @@ -/// Trait -/// -/// new - Constructs a new `signed_integer -/// div_rem - Computes `signed_integer` division and modulus simultaneously -/// abs - Computes the absolute value of the given `signed_integer` -/// max - Returns the maximum between two `signed_integer` -/// min - Returns the minimum between two `signed_integer` -/// sign - Returns an element-wise indication of the given `signed_integer` -trait IntegerTrait { - /// # IntegerTrait::new - /// - /// ```rust - /// fn new(mag: MAG, sign: bool) -> T; - /// ``` - /// - /// Returns a new signed integer. - /// - /// ## Args - /// - /// * `mag`(`MAG`) - The magnitude of the integer. - /// * `sign`(`bool`) - The sign of the integer, where `true` represents a negative number. - /// - /// > _`` generic type depends on the uint type (u8, u16, u32, u64, u128)._ - /// - /// ## Panics - /// - /// Panics if `mag` is out of range. - /// - /// ## Returns - /// - /// A new signed integer. - /// - /// ## Examples - /// - /// ```rust - /// fn new_i8_example() -> i8 { - /// IntegerTrait::::new(42_u8, true) - /// } - /// >>> {mag: 42, sign: true} // = -42 - /// ``` - /// - /// ```rust - /// fn panic_i8_example() -> i8 { - /// IntegerTrait::::new(129_u8, true) - /// } - /// >>> panics with "int: out of range" - /// ``` - /// - fn new(mag: MAG, sign: bool) -> T; - /// # int.div_rem - /// - /// ```rust - /// fn div_rem(self: T, other: T) -> (T, T); - /// ``` - /// - /// Computes signed\_integer division and modulus simultaneously - /// - /// ## Args - /// - /// * `self`(`T`) - The dividend - /// * `other`(`T`) - The divisor - /// - /// ## Panics - /// - /// Panics if the divisor is zero. - /// - /// ## Returns - /// - /// A tuple of signed integer ``, containing the quotient and the remainder of the division. - /// - /// ## Examples - /// - /// ```rust - /// fn div_rem_example() -> (i32, i32) { - /// // We instantiate signed integers here. - /// let a = IntegerTrait::::new(13, false); - /// let b = IntegerTrait::::new(5, false); - /// - /// // We can call `div_rem` function as follows. - /// a.div_rem(b) - /// } - /// >>> ({mag: 2, sign: false}, {mag: 3, sign: false}) // = (2, 3) - /// ``` - /// - fn div_rem(self: T, other: T) -> (T, T); - /// # int.abs - /// - /// ```rust - /// fn abs(self: T) -> T; - /// ``` - /// - /// Computes the absolute value of a signed\_integer. - /// - /// ## Args - /// - /// `self`(`T`) - The signed integer to which the absolute value is applied - /// - /// ## Returns - /// - /// A signed integer ``, representing the absolute value of `self` . - /// - /// ## Examples - /// - /// ```rust - /// fn abs_example() -> i32 { - /// // We instantiate signed integers here. - /// let int = IntegerTrait::::new(42, true); - /// - /// // We can call `abs` function as follows. - /// a.abs() - /// } - /// >>> {mag: 42, sign: false} // = 42 - /// ``` - /// - fn abs(self: T) -> T; - /// # int.max - /// - /// ```rust - /// fn max(self: T, other: T) -> T; - /// ``` - /// - /// Returns the maximum between two signed\_integer. - /// - /// ## Args - /// - /// *`self`(`T`) - The first signed integer to compare. - /// * `other`(`T`) - The second signed integer to compare. - /// - /// ## Returns - /// - /// A signed integer ``, The maximum between `self` and `other`. - /// - /// ## Examples - /// - /// ```rust - /// fn max_example() -> i32 { - /// // We instantiate signed integer here. - /// let a = IntegerTrait::::new(42, true); - /// let b = IntegerTrait::::new(13, false); - /// - /// // We can call `max` function as follows. - /// a.max(b) - /// } - /// >>> {mag: 13, sign: false} // as 13 > -42 - /// ``` - /// - fn max(self: T, other: T) -> T; - /// # int.min - /// - /// ```rust - /// fn min(self: T, other: T) -> T; - /// ``` - /// - /// Returns the minimum between two signed\_integer. - /// - /// ## Args - /// - /// `self`(`T`) - The first signed integer to compare. - /// `other`(`T`) - The second signed integer to compare. - /// - /// ## Returns - /// - /// A signed integer ``, The minimum between `self` and `other`. - /// - /// ## Examples - /// - /// - /// ```rust - /// fn min_example() -> i32 { - /// // We instantiate signed integer here. - /// let a = IntegerTrait::::new(42, true); - /// let b = IntegerTrait::::new(13, false); - /// - /// // We can call `max` function as follows. - /// a.min(b) - /// } - /// >>> {mag: 42, sign: true} // as -42 < 13 - /// ``` - /// - fn min(self: T, other: T) -> T; - /// # int.sign - /// - /// ```rust - /// fn sign(self: T, other: T) -> T; - /// ``` - /// - /// Returns an element-wise indication of the given signed_integer. - /// - /// ## Args - /// - /// `self`(`T`) - The input value to which the signed value is applied. - /// - /// ## Returns - /// - /// An element-wise indication of the sign of a number. - /// - /// ## Examples - /// - /// - /// ```rust - /// fn sign_example() -> i32 { - /// // We instantiate signed integer here. - /// let a = IntegerTrait::::new(42, true); - /// - /// // We can call `sign` function as follows. - /// a.sign() - /// } - /// >>> {mag: 1, sign: true} - /// ``` - /// - fn sign(self: T) -> T; - - fn NaN() -> T; - fn is_nan(self: T) -> bool; - fn INF() -> T; - fn POS_INF() -> T; - fn NEG_INF() -> T; - fn is_inf(self: T) -> bool; - fn is_pos_inf(self: T) -> bool; - fn is_neg_inf(self: T) -> bool; -} - diff --git a/src/operators/nn/core.cairo b/src/operators/nn/core.cairo index 7594ba908..3c99f4733 100644 --- a/src/operators/nn/core.cairo +++ b/src/operators/nn/core.cairo @@ -42,18 +42,11 @@ trait NNTrait { /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; /// use orion::operators::nn::{NNTrait, I32NN}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn relu_example() -> Tensor { /// let tensor = TensorTrait::::new( /// shape: array![2, 2].span(), - /// data: array![ - /// IntegerTrait::new(1, false), - /// IntegerTrait::new(2, false), - /// IntegerTrait::new(1, true), - /// IntegerTrait::new(2, true), - /// ] - /// .span(), + /// data: array![1, 2, -1, -2].span(), /// ); /// /// return NNTrait::relu(@tensor); @@ -430,14 +423,13 @@ trait NNTrait { /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; /// use orion::operators::nn::{NNTrait, I32NN}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn linear_example() -> Tensor { /// // We instantiate inputs here. /// let inputs = TensorTrait::::new( /// shape: array![3].span(), /// data: array![ - /// IntegerTrait::new(71, true), IntegerTrait::new(38, false), IntegerTrait::new(62, false), + /// -71, 38, 62, /// ] /// .span(), /// ); @@ -446,12 +438,12 @@ trait NNTrait { /// let weights = TensorTrait::::new( /// shape: array![2, 3].span(), /// data: array![ - /// IntegerTrait::new(8, true), - /// IntegerTrait::new(64, false), - /// IntegerTrait::new(40, false), - /// IntegerTrait::new(33, true), - /// IntegerTrait::new(34, true), - /// IntegerTrait::new(20, true), + /// -8, + /// 64, + /// 40, + /// -33, + /// -34, + /// -20, /// ] /// .span(), /// ); @@ -459,7 +451,7 @@ trait NNTrait { /// // We instantiate bias here. /// let bias = TensorTrait::::new( /// shape: array![2].span(), - /// data: array![IntegerTrait::new(61, false), IntegerTrait::new(61, true),].span(), + /// data: array![61, -61].span(), /// ); /// /// return NNTrait::linear(inputs, weights, bias); diff --git a/src/operators/nn/implementations/nn_i32.cairo b/src/operators/nn/implementations/nn_i32.cairo index 232ebee84..1db66a1c6 100644 --- a/src/operators/nn/implementations/nn_i32.cairo +++ b/src/operators/nn/implementations/nn_i32.cairo @@ -1,7 +1,6 @@ use core::option::OptionTrait; use orion::operators::tensor::core::Tensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::nn::core::NNTrait; use orion::operators::nn::functional; use orion::operators::tensor::implementations::tensor_i32::{I32Tensor, I32TensorAdd}; diff --git a/src/operators/nn/implementations/nn_i8.cairo b/src/operators/nn/implementations/nn_i8.cairo index 185ba4a4e..e67bb7504 100644 --- a/src/operators/nn/implementations/nn_i8.cairo +++ b/src/operators/nn/implementations/nn_i8.cairo @@ -1,7 +1,6 @@ use core::option::OptionTrait; use orion::operators::tensor::core::Tensor; -use orion::numbers::signed_integer::i8::i8; use orion::operators::nn::core::NNTrait; use orion::operators::nn::functional; use orion::operators::tensor::implementations::tensor_i8::{I8Tensor, I8TensorAdd}; diff --git a/src/operators/sequence/core.cairo b/src/operators/sequence/core.cairo index 268e25b16..7ea696df4 100644 --- a/src/operators/sequence/core.cairo +++ b/src/operators/sequence/core.cairo @@ -1,5 +1,4 @@ use orion::operators::tensor::core::Tensor; -use orion::numbers::signed_integer::i32::i32; /// Trait /// @@ -146,6 +145,8 @@ trait SequenceTrait { /// ## Examples /// /// Let's insert the tensor [2] into the sequence [[1], [3]] at position 1. + /// + /// ```rust /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor, U32Tensor}; /// /// fn sequence_insert_example() -> Array> { @@ -170,7 +171,7 @@ trait SequenceTrait { /// // Prepare position /// let mut shape = ArrayTrait::::new(); /// let mut data = ArrayTrait::::new(); - /// data.append(i32 { mag: 1, sign: false }); + /// data.append(1); /// let position = TensorTrait::::new(shape.span(), data.span()) /// /// let sequence = self.sequence_insert(tensor, Option::Some(position)); @@ -212,7 +213,6 @@ trait SequenceTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn sequence_at_example() -> Tensor { /// let tensor1 = TensorTrait::new(shape: array![2, 2].span(), data: array![0, 1, 2, 3].span()); @@ -259,7 +259,6 @@ trait SequenceTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor, I32Tensor}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn sequence_erase_example() -> Tensor { /// let tensor1 = TensorTrait::new(shape: array![2, 2].span(), data: array![0, 1, 2, 3].span()); diff --git a/src/operators/sequence/functional/concat_from_sequence.cairo b/src/operators/sequence/functional/concat_from_sequence.cairo index 692d4a1a8..4503aa996 100644 --- a/src/operators/sequence/functional/concat_from_sequence.cairo +++ b/src/operators/sequence/functional/concat_from_sequence.cairo @@ -5,9 +5,9 @@ use core::debug::PrintTrait; use core::traits::Into; use orion::operators::tensor::helpers::replace_index; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::numbers::signed_integer::i32::i32; +use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::operators::tensor::math::concat::concat; +use orion::numbers::{NumberTrait, I32IntoU32}; fn concat_from_sequence< @@ -39,8 +39,8 @@ fn concat_without_new_axis< >( sequence: Array>, axis: i32, r: usize ) -> Tensor { - let axis_is_negative: bool = axis.sign; - let mut axis_value: u32 = axis.mag; + let axis_is_negative: bool = axis < 0; + let mut axis_value: u32 = axis.into(); /// assert in range [-r, r - 1] assert( @@ -61,8 +61,8 @@ fn concat_with_new_axis< >( sequence: Array>, axis: i32, r: usize ) -> Tensor { - let axis_is_negative: bool = axis.sign; - let mut axis_value: u32 = axis.mag; + let axis_is_negative: bool = axis < 0; + let mut axis_value: u32 = axis.into(); /// assert in range [-r - 1, r] assert( diff --git a/src/operators/sequence/functional/sequence_at.cairo b/src/operators/sequence/functional/sequence_at.cairo index 6108b97d4..7953abb9d 100644 --- a/src/operators/sequence/functional/sequence_at.cairo +++ b/src/operators/sequence/functional/sequence_at.cairo @@ -2,18 +2,17 @@ use core::array::{ArrayTrait, SpanTrait}; use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; -use orion::numbers::NumberTrait; -use orion::numbers::signed_integer::i32::i32; +use orion::numbers::{NumberTrait, I32IntoU32, U32IntoI32}; /// Cf: SequenceTrait::sequence_at docstring fn sequence_at, impl TCopy: Copy, impl TDrop: Drop>( sequence: Array>, position: Tensor ) -> Tensor { - assert(position.shape.len() == 0 && position.data.len() == 1, 'Position must be a scalar'); + assert(position.shape.len() == 0 && position.data.len().into() == 1, 'Position must be a scalar'); let position_value_i32: i32 = *position.data.at(0); - let is_negative: bool = position_value_i32.sign; - let position_value: u32 = position_value_i32.mag; + let is_negative: bool = position_value_i32 < 0; + let position_value: u32 = position_value_i32.into(); assert( (is_negative == false && position_value <= sequence.len() - 1) diff --git a/src/operators/sequence/functional/sequence_erase.cairo b/src/operators/sequence/functional/sequence_erase.cairo index 69349b8ad..dd2a2aad6 100644 --- a/src/operators/sequence/functional/sequence_erase.cairo +++ b/src/operators/sequence/functional/sequence_erase.cairo @@ -3,8 +3,7 @@ use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::operators::tensor::I32Tensor; -use orion::numbers::NumberTrait; -use orion::numbers::signed_integer::i32::i32; +use orion::numbers::{ NumberTrait, I32IntoU32}; /// Cf: SequenceTrait::sequence_erase docstring fn sequence_erase, impl TCopy: Copy, impl TDrop: Drop>( @@ -15,7 +14,7 @@ fn sequence_erase, impl TCopy: Copy, impl TDr Option::None(_) => { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::::new(); - data.append(i32 { mag: 1, sign: true }); + data.append(-1_i32); TensorTrait::::new(shape.span(), data.span()) } }; @@ -23,8 +22,8 @@ fn sequence_erase, impl TCopy: Copy, impl TDr assert(position.shape.len() == 0 && position.data.len() == 1, 'Position must be a scalar'); let position_value_i32: i32 = *position.data.at(0); - let is_negative: bool = position_value_i32.sign; - let mut position_value: u32 = position_value_i32.mag; + let is_negative: bool = position_value_i32 < 0; + let mut position_value: u32 = position_value_i32.into(); assert( (is_negative == false && position_value <= sequence.len() - 1) @@ -56,3 +55,5 @@ fn sequence_erase, impl TCopy: Copy, impl TDr return output_sequence; } + + diff --git a/src/operators/sequence/functional/sequence_insert.cairo b/src/operators/sequence/functional/sequence_insert.cairo index a140938dc..256a1b91c 100644 --- a/src/operators/sequence/functional/sequence_insert.cairo +++ b/src/operators/sequence/functional/sequence_insert.cairo @@ -3,8 +3,7 @@ use core::option::OptionTrait; use orion::operators::tensor::core::{Tensor, TensorTrait}; use orion::operators::tensor::I32Tensor; -use orion::numbers::NumberTrait; -use orion::numbers::signed_integer::i32::i32; +use orion::numbers::{ NumberTrait, I32IntoU32}; /// Cf: SequenceTrait::sequence_insert docstring fn sequence_insert, impl TCopy: Copy, impl TDrop: Drop>( @@ -15,7 +14,7 @@ fn sequence_insert, impl TCopy: Copy, impl TD Option::None(_) => { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::::new(); - data.append(i32 { mag: 1, sign: true }); + data.append(-1_i32); TensorTrait::::new(shape.span(), data.span()) }, }; @@ -23,8 +22,8 @@ fn sequence_insert, impl TCopy: Copy, impl TD assert(position.shape.len() == 0 && position.data.len() == 1, 'Position must be a scalar'); let position_value_i32: i32 = *position.data.at(0); - let is_negative: bool = position_value_i32.sign; - let mut position_value: u32 = position_value_i32.mag; + let is_negative: bool = position_value_i32 < 0; + let mut position_value: u32 = position_value_i32.into(); assert( (is_negative == false && position_value <= self.len() - 1) @@ -56,4 +55,4 @@ fn sequence_insert, impl TCopy: Copy, impl TD }; return new_sequence; -} +} \ No newline at end of file diff --git a/src/operators/sequence/implementations/sequence_bool.cairo b/src/operators/sequence/implementations/sequence_bool.cairo index b9d800123..7c1402db1 100644 --- a/src/operators/sequence/implementations/sequence_bool.cairo +++ b/src/operators/sequence/implementations/sequence_bool.cairo @@ -4,7 +4,6 @@ use orion::operators::tensor::core::Tensor; use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::operators::tensor::implementations::tensor_bool::BoolTensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; impl BoolSequence of SequenceTrait { diff --git a/src/operators/sequence/implementations/sequence_fp16x16.cairo b/src/operators/sequence/implementations/sequence_fp16x16.cairo index 5da4af097..d03967b32 100644 --- a/src/operators/sequence/implementations/sequence_fp16x16.cairo +++ b/src/operators/sequence/implementations/sequence_fp16x16.cairo @@ -5,7 +5,6 @@ use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::numbers::fixed_point::implementations::fp16x16::core::FP16x16; use orion::operators::tensor::implementations::tensor_fp16x16::FP16x16Tensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_fp16x16wide.cairo b/src/operators/sequence/implementations/sequence_fp16x16wide.cairo index 3b2273edb..bfaa11f37 100644 --- a/src/operators/sequence/implementations/sequence_fp16x16wide.cairo +++ b/src/operators/sequence/implementations/sequence_fp16x16wide.cairo @@ -5,7 +5,6 @@ use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::numbers::fixed_point::implementations::fp16x16wide::core::FP16x16W; use orion::operators::tensor::implementations::tensor_fp16x16wide::FP16x16WTensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_fp32x32.cairo b/src/operators/sequence/implementations/sequence_fp32x32.cairo index fd63f9639..2025d6161 100644 --- a/src/operators/sequence/implementations/sequence_fp32x32.cairo +++ b/src/operators/sequence/implementations/sequence_fp32x32.cairo @@ -5,7 +5,6 @@ use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::numbers::fixed_point::implementations::fp32x32::core::FP32x32; use orion::operators::tensor::implementations::tensor_fp32x32::FP32x32Tensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_fp64x64.cairo b/src/operators/sequence/implementations/sequence_fp64x64.cairo index 43424f9eb..a1c0d3f89 100644 --- a/src/operators/sequence/implementations/sequence_fp64x64.cairo +++ b/src/operators/sequence/implementations/sequence_fp64x64.cairo @@ -5,7 +5,6 @@ use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::numbers::fixed_point::implementations::fp64x64::core::FP64x64; use orion::operators::tensor::implementations::tensor_fp64x64::FP64x64Tensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_fp8x23.cairo b/src/operators/sequence/implementations/sequence_fp8x23.cairo index 08ad26a10..ae9bfd18d 100644 --- a/src/operators/sequence/implementations/sequence_fp8x23.cairo +++ b/src/operators/sequence/implementations/sequence_fp8x23.cairo @@ -5,7 +5,6 @@ use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::numbers::fixed_point::implementations::fp8x23::core::FP8x23; use orion::operators::tensor::implementations::tensor_fp8x23::FP8x23Tensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_fp8x23wide.cairo b/src/operators/sequence/implementations/sequence_fp8x23wide.cairo index 64bb5576f..5dc8e246e 100644 --- a/src/operators/sequence/implementations/sequence_fp8x23wide.cairo +++ b/src/operators/sequence/implementations/sequence_fp8x23wide.cairo @@ -5,7 +5,6 @@ use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::numbers::fixed_point::implementations::fp8x23wide::core::FP8x23W; use orion::operators::tensor::implementations::tensor_fp8x23wide::FP8x23WTensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_i32.cairo b/src/operators/sequence/implementations/sequence_i32.cairo index 40892070a..8a267c244 100644 --- a/src/operators/sequence/implementations/sequence_i32.cairo +++ b/src/operators/sequence/implementations/sequence_i32.cairo @@ -3,7 +3,6 @@ use core::option::OptionTrait; use orion::operators::tensor::core::Tensor; use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_i8.cairo b/src/operators/sequence/implementations/sequence_i8.cairo index 2510f3cf2..700e52867 100644 --- a/src/operators/sequence/implementations/sequence_i8.cairo +++ b/src/operators/sequence/implementations/sequence_i8.cairo @@ -3,9 +3,7 @@ use core::option::OptionTrait; use orion::operators::tensor::core::Tensor; use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; -use orion::numbers::signed_integer::i8::i8; use orion::operators::tensor::implementations::tensor_i8::I8Tensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/sequence/implementations/sequence_u32.cairo b/src/operators/sequence/implementations/sequence_u32.cairo index ff0e57212..34ca8d578 100644 --- a/src/operators/sequence/implementations/sequence_u32.cairo +++ b/src/operators/sequence/implementations/sequence_u32.cairo @@ -4,7 +4,6 @@ use orion::operators::tensor::core::Tensor; use orion::operators::sequence::core::SequenceTrait; use orion::operators::sequence::functional; use orion::operators::tensor::implementations::tensor_u32::U32Tensor; -use orion::numbers::signed_integer::i32::i32; use orion::operators::tensor::implementations::tensor_i32::I32Tensor; diff --git a/src/operators/tensor/core.cairo b/src/operators/tensor/core.cairo index 796224fb1..70344eb97 100644 --- a/src/operators/tensor/core.cairo +++ b/src/operators/tensor/core.cairo @@ -6,7 +6,7 @@ use alexandria_data_structures::array_ext::{SpanTraitExt}; //::resize::{MODE, NEAREST_MODE, KEEP_ASPECT_RATIO_POLICY, TRANSFORMATION_MODE}; use orion::operators::tensor::helpers::{len_from_shape, check_shape}; -use orion::numbers::{i8, i32, NumberTrait}; +use orion::numbers::{NumberTrait, I32IntoU32, U32IntoI32}; #[derive(Copy, Drop)] struct Tensor { @@ -865,7 +865,7 @@ trait TensorTrait { /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// - /// fn dot_product_example() -> Tensor { + /// fn dot_product_example() -> Tensor { /// let tensor_1 = TensorTrait::::new(shape: array![3].span(), data: array![0, 1, 2].span(),); /// /// let tensor_2 = TensorTrait::::new(shape: array![3].span(), data: array![0, 1, 2].span(),); @@ -883,7 +883,7 @@ trait TensorTrait { /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// - /// fn matrix_mul_example() -> Tensor { + /// fn matrix_mul_example() -> Tensor { /// let tensor_1 = TensorTrait::::new( /// shape: array![2, 2].span(), data: array![244, 99, 109, 162].span() /// ); @@ -905,7 +905,7 @@ trait TensorTrait { /// /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// - /// fn matrix_vec_mul_example() -> Tensor { + /// fn matrix_vec_mul_example() -> Tensor { /// let tensor_1 = TensorTrait::::new( /// shape: array![3, 3].span(), data: array![0, 1, 2, 3, 4, 5, 6, 7, 8].span(), /// ); @@ -951,7 +951,7 @@ trait TensorTrait { /// use orion::numbers::{FP8x23, FixedTrait}; /// /// fn exp_example() -> Tensor { - /// let tensor = TensorTrait::::new( + /// let tensor = TensorTrait::::new( /// shape: array![2, 2].span(), /// data: array![ /// FixedTrait::new_unscaled(0, false), @@ -1002,7 +1002,7 @@ trait TensorTrait { /// use orion::numbers::{FP8x23, FixedTrait}; /// /// fn log_example() -> Tensor { - /// let tensor = TensorTrait::::new( + /// let tensor = TensorTrait::::new( /// shape: array![2, 2].span(), /// data: array![ /// FixedTrait::new_unscaled(0, false), @@ -1390,13 +1390,12 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn abs_example() -> Tensor { /// let tensor = TensorTrait::new( /// shape: array![3].span(), /// data: array![ - /// IntegerTrait::new(1, true), IntegerTrait::new(2, true), IntegerTrait::new(3, false) + /// -1, -2, 3 /// ] /// .span(), /// ); @@ -1431,13 +1430,12 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn neg_example() -> Tensor { /// let tensor = TensorTrait::new( /// shape: array![3].span(), /// data: array![ - /// IntegerTrait::new(1, true), IntegerTrait::new(2, true), IntegerTrait::new(3, false) + /// -1, -2, 3 /// ] /// .span(), /// ); @@ -2473,31 +2471,22 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; - /// use orion::numbers::{i8, i32, IntegerTrait}; /// /// fn quantize_linear_example() -> Tensor { /// // We instantiate a 1D Tensor here. /// let x = TensorTrait::::new( /// shape: array![6].span(), - /// data: array![ - /// IntegerTrait::new(0, false), - /// IntegerTrait::new(2, false), - /// IntegerTrait::new(3, false), - /// IntegerTrait::new(1000, false), - /// IntegerTrait::new(254, true), - /// IntegerTrait::new(1000, true), - /// ] - /// .span(), + /// data: array![0, 2, 3, 1, -254,-1000].span(), /// ); /// /// // We instantiate the y_scale here. /// let y_scale = TensorTrait::::new( - /// shape: array![1].span(), data: array![IntegerTrait::new(2, false)].span(), + /// shape: array![1].span(), data: array![2].span(), /// ); /// /// // We instantiate the y_zero_point here. /// let y_zero_point = TensorTrait::::new( - /// shape: array![1].span(), data: array![IntegerTrait::new(1, false)].span(), + /// shape: array![1].span(), data: array![1].span(), /// ); /// /// return x.quantize_linear(@y_scale, @y_zero_point); @@ -2543,29 +2532,22 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor}; - /// use orion::numbers::{i8, i32, IntegerTrait}; /// /// fn dequantize_linear_example() -> Tensor { /// // We instantiate a 1D Tensor here. /// let x = TensorTrait::::new( /// shape: array![4].span(), - /// data: array![ - /// IntegerTrait::new(0, false), - /// IntegerTrait::new(3, false), - /// IntegerTrait::new(125, false), - /// IntegerTrait::new(127, false), - /// ] - /// .span(), + /// data: array![0, 3, 125, 127].span(), /// ); /// /// // We instantiate the x_scale here. /// let x_scale = TensorTrait::::new( - /// shape: array![1].span(), data: array![IntegerTrait::new(2, false)].span(), + /// shape: array![1].span(), data: array![2].span(), /// ); /// /// // We instantiate the x_zero_point here. /// let x_zero_point = TensorTrait::::new( - /// shape: array![1].span(), data: array![IntegerTrait::new(0, false)].span(), + /// shape: array![1].span(), data: array![0].span(), /// ); /// /// return x.dequantize_linear(@x_scale, @x_zero_point); @@ -2618,7 +2600,7 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; - /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; + /// use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; /// /// /// fn qlinear_add_example() -> Tensor { @@ -2626,28 +2608,13 @@ trait TensorTrait { /// i8 /// >::new( /// shape: array![2, 3].span(), - /// data: array![ - /// IntegerTrait::::new(6_u8, false), - /// IntegerTrait::::new(6_u8, false), - /// IntegerTrait::::new(6_u8, false), - /// IntegerTrait::::new(11_u8, false), - /// IntegerTrait::::new(11_u8, false), - /// IntegerTrait::::new(11_u8, false) - /// ] - /// .span(), + /// data: array![6, 6, 6, 11, 11, 11].span(), /// ); /// /// // As the operator supports broadcasting shapes [1, 3] and [2, 3] are compatible - /// let b = TensorTrait::< - /// i8 - /// >::new( + /// let b = TensorTrait::::new( /// shape: array![1, 3].span(), - /// data: array![ - /// IntegerTrait::::new(40_u8, false), - /// IntegerTrait::::new(40_u8, false), - /// IntegerTrait::::new(40_u8, false) - /// ] - /// .span(), + /// data: array![40, 40, 40].span(), /// ); /// /// let a_scale = TensorTrait::< @@ -2731,7 +2698,7 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; - /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; + /// use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; /// /// ```rust /// #[test] @@ -2741,26 +2708,14 @@ trait TensorTrait { /// i8 /// >::new( /// shape: array![2, 3].span(), - /// data: array![ - /// IntegerTrait::::new(21_u8, false), - /// IntegerTrait::::new(21_u8, false), - /// IntegerTrait::::new(21_u8, false), - /// IntegerTrait::::new(41_u8, false), - /// IntegerTrait::::new(41_u8, false), - /// IntegerTrait::::new(41_u8, false) - /// ] + /// data: array![21, 21, 21, 41, 41, 41] /// .span(), /// ); /// let b = TensorTrait::< /// i8 /// >::new( /// shape: array![1, 3].span(), - /// data: array![ - /// IntegerTrait::::new(4_u8, false), - /// IntegerTrait::::new(8_u8, false), - /// IntegerTrait::::new(12_u8, false) - /// ] - /// .span(), + /// data: array![4, 8, 12].span(), /// ); /// /// let a_scale = TensorTrait::< @@ -2850,19 +2805,19 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; - /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; + /// use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; /// fn qlinear_matmul_example() -> Tensor { /// let a = TensorTrait::< /// i8 /// >::new( /// shape: array![2, 3].span(), /// data: array![ - /// IntegerTrait::::new(3_u8, false), - /// IntegerTrait::::new(4_u8, false), - /// IntegerTrait::::new(5_u8, false), - /// IntegerTrait::::new(2_u8, false), - /// IntegerTrait::::new(4_u8, false), - /// IntegerTrait::::new(3_u8, false) + /// 3, + /// 4, + /// 5, + /// 2, + /// 4, + /// 3 /// ] /// .span(), /// ); @@ -2871,9 +2826,9 @@ trait TensorTrait { /// >::new( /// shape: array![3, 1].span(), /// data: array![ - /// IntegerTrait::::new(4_u8, false), - /// IntegerTrait::::new(8_u8, false), - /// IntegerTrait::::new(4_u8, false) + /// 4, + /// 8, + /// 4 /// ] /// .span(), /// ); @@ -2954,7 +2909,7 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; - /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; + /// use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; /// /// fn qlinear_concat_example() -> Tensor { /// let tensor1 = TensorTrait::< @@ -2962,10 +2917,10 @@ trait TensorTrait { /// >::new( /// shape: array![2, 2].span(), /// data: array![ - /// IntegerTrait::::new(5_u8, false), - /// IntegerTrait::::new(5_u8, false), - /// IntegerTrait::::new(5_u8, false), - /// IntegerTrait::::new(5_u8, false), + /// 5, + /// 5, + /// 5, + /// 5, /// ] /// .span(), /// ); @@ -2974,10 +2929,10 @@ trait TensorTrait { /// >::new( /// shape: array![2, 2].span(), /// data: array![ - /// IntegerTrait::::new(1_u8, false), - /// IntegerTrait::::new(1_u8, false), - /// IntegerTrait::::new(1_u8, false), - /// IntegerTrait::::new(1_u8, false), + /// 1, + /// 1, + /// 1, + /// 1, /// ] /// .span(), /// ); @@ -3063,7 +3018,7 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, FP16x16Tensor}; - /// use orion::numbers::{i8, FP16x16, FP16x16Impl, IntegerTrait, FixedTrait}; + /// use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait}; /// /// /// fn qlinear_leakyrelu_example() -> Tensor { @@ -3072,12 +3027,12 @@ trait TensorTrait { /// >::new( /// shape: array![2, 3].span(), /// data: array![ - /// IntegerTrait::::new(10_u8, true), - /// IntegerTrait::::new(10_u8, true), - /// IntegerTrait::::new(10_u8, true), - /// IntegerTrait::::new(10_u8, false), - /// IntegerTrait::::new(10_u8, false), - /// IntegerTrait::::new(10_u8, false) + /// -10, + /// -10, + /// -10, + /// 10, + /// 10, + /// 10 /// ] /// .span(), /// ); @@ -3397,10 +3352,10 @@ trait TensorTrait { /// ```rust /// use core::array::{ArrayTrait, SpanTrait}; /// - /// use orion::operators::tensor::{TensorTrait, Tensor, FP8x23Tensor}; + /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor}; /// - /// fn sign_example() -> Tensor { - /// let tensor = TensorTrait::::new( + /// fn sign_example() -> Tensor { + /// let tensor = TensorTrait::::new( /// shape: array![11].span(), /// data: array![-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5].span(), /// ); @@ -3432,10 +3387,10 @@ trait TensorTrait { /// ```rust /// use core::array::{ArrayTrait, SpanTrait}; /// - /// use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; + /// use orion::operators::tensor::{TensorTrait, Tensor, i32Tensor}; /// - /// fn identity_example() -> Tensor { - /// let tensor = TensorTrait::::new( + /// fn identity_example() -> Tensor { + /// let tensor = TensorTrait::::new( /// shape: array![2, 2].span(), /// data: array![1, 2, 3, 4].span(), /// ); @@ -3475,7 +3430,7 @@ trait TensorTrait { /// ```rust /// use core::array::{ArrayTrait, SpanTrait}; /// - /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + /// use orion::operators::tensor::{TensorTrait, Tensor, BoolTensor}; /// /// fn and_example() -> Tensor { /// let tensor_1 = TensorTrait::::new( @@ -4142,6 +4097,11 @@ trait TensorTrait { /// ## Returns /// /// A new `Tensor` instance with the specified axis reduced by summing its elements. + /// ## Examples + /// + /// ```rust + /// use core::array::{ArrayTrait, SpanTrait}; + /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// /// fn reduce_l2_example() -> Tensor { /// @@ -4183,6 +4143,12 @@ trait TensorTrait { /// /// A new `Tensor` instance with the specified axis reduced by summing its elements. /// + /// ## Examples + /// + /// ```rust + /// use core::array::{ArrayTrait, SpanTrait}; + /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + /// /// fn reduce_sum_square_example() -> Tensor { /// /// let mut shape = ArrayTrait::::new(); @@ -4365,17 +4331,15 @@ trait TensorTrait { /// ```rust /// use core::array::{ArrayTrait, SpanTrait}; /// use orion::operators::tensor::{TensorTrait, Tensor, I32Tensor, U32Tensor}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn array_feature_extractor_example() -> Tensor { /// let input_tensor = TensorTrait::new( /// shape: array![3, 4].span(), /// data: array![ - /// IntegerTrait::new(0, false), IntegerTrait::new(1, false), IntegerTrait::new(2, false), IntegerTrait::new(3, false), - /// IntegerTrait::new(4, false), IntegerTrait::new(5, false), IntegerTrait::new(6, false), IntegerTrait::new(7, false), - /// IntegerTrait::new(8, false), IntegerTrait::new(9, false), IntegerTrait::new(10, false), IntegerTrait::new(11, false) - /// ] - /// .span(), + /// 0, 1, 2, 3, + /// 4, 5, 6, 7, + /// 8, 9, 10, 11 + /// ].span(), /// ); /// /// let indices = TensorTrait::::new( @@ -4703,8 +4667,9 @@ trait TensorTrait { /// /// A new `Tensor` instance with entries set to true iff the input tensors corresponding element was NaN. /// - /// ## Examples + /// ## Example /// + /// ```rust /// use core::array::{ArrayTrait, SpanTrait}; /// use orion::operators::tensor::{BoolTensor, TensorTrait, Tensor, FP8x23Tensor}; /// use orion::numbers::{FixedTrait, FP8x23}; @@ -4750,7 +4715,6 @@ trait TensorTrait { /// use core::array::{ArrayTrait, SpanTrait}; /// /// use orion::operators::tensor::{TensorTrait, Tensor, BoolTensor}; - /// use orion::numbers::{i32, IntegerTrait}; /// /// fn not_example() -> Tensor { /// let tensor = TensorTrait::new( @@ -4787,8 +4751,15 @@ trait TensorTrait { /// ## Returns /// /// A new `Tensor` instance with the specified axis reduced by summing its elements. + /// ## Examples + /// + /// ```rust + /// use core::array::{ArrayTrait, SpanTrait}; + /// + /// use orion::operators::tensor::{TensorTrait, Tensor, FP16x16Tensor}; + /// use orion::numbers::{FixedTrait, FP16x16}; /// - /// fn reduce_log_sum() -> Tensor { + /// fn reduce_log_sum() -> Tensor { /// /// let mut sizes = ArrayTrait::new(); /// sizes.append(2); @@ -4963,9 +4934,15 @@ trait TensorTrait { /// * Panics if If indices_shape[-1] > r-b. /// * Panics if first b dimensions of the shape of indices tensor and data tensor are not equal. /// - /// ## Returns + /// ## Returns + /// A new `Tensor`. + /// + /// ## Example + /// + /// ```rust + /// use array::{ArrayTrait, SpanTrait}; + /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; /// - /// A new `Tensor` . /// fn gather_nd_example() -> Tensor { /// let tensor = TensorTrait::::new( /// shape: array![2, 2].span(), @@ -5009,6 +4986,13 @@ trait TensorTrait { /// ## Returns /// /// A new `Tensor` . + /// + /// ## Example + /// + /// ```rust + /// use array::{ArrayTrait, SpanTrait}; + /// use orion::operators::tensor::{TensorTrait, Tensor, U32Tensor}; + /// /// fn compress_example() -> Tensor { /// let tensor = TensorTrait::::new( /// shape: array![3, 2].span(), @@ -5573,13 +5557,13 @@ fn squeeze(self: @Tensor, axes: Option>) -> Tensor { match axes.pop_front() { Option::Some(axis) => { let mut reshape: Array = ArrayTrait::new(); - let mut index = 0_usize; - let axis = if *axis.sign { - assert(*axis.mag <= (*self.shape).len(), 'axis out of accepted range'); - (*self.shape).len() - *axis.mag + let mut index = 0_i32; + let axis = if *axis < 0 { + assert(*axis <= (*self.shape).len().into(), 'axis out of accepted range'); + (*self.shape).len().into() - *axis } else { - assert(*axis.mag < (*self.shape).len(), 'axis out of accepted range'); - *axis.mag + assert(*axis < (*self.shape).len().into(), 'axis out of accepted range'); + *axis }; loop { diff --git a/src/operators/tensor/implementations/tensor_bool.cairo b/src/operators/tensor/implementations/tensor_bool.cairo index eaeda00d5..3da518ec8 100644 --- a/src/operators/tensor/implementations/tensor_bool.cairo +++ b/src/operators/tensor/implementations/tensor_bool.cairo @@ -8,8 +8,8 @@ use orion::operators::tensor::core::{ constant_of_shape, new_tensor, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; -use orion::operators::tensor::{math, linalg, quantization, core as core_ops, ml}; -use orion::numbers::{i8, i32, NumberTrait}; +use orion::operators::tensor::{math, linalg, quantization, core as core_ops, ml, manipulation}; +use orion::numbers::{NumberTrait}; use orion::operators::tensor::implementations::tensor_u32::U32Tensor; impl BoolTensor of TensorTrait { diff --git a/src/operators/tensor/implementations/tensor_complex64.cairo b/src/operators/tensor/implementations/tensor_complex64.cairo index 52d916b14..74acba5c6 100644 --- a/src/operators/tensor/implementations/tensor_complex64.cairo +++ b/src/operators/tensor/implementations/tensor_complex64.cairo @@ -8,8 +8,8 @@ use orion::operators::tensor::core::{ new_tensor, constant_of_shape, stride, Tensor, TensorTrait, ravel_index, unravel_index, reshape, at_tensor, }; -use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml}; -use orion::numbers::{i8, i32, NumberTrait, FP64x64, FP64x64Impl}; +use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; +use orion::numbers::{NumberTrait, FP64x64, FP64x64Impl}; use orion::numbers::fixed_point::implementations::fp64x64::core::ONE; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor diff --git a/src/operators/tensor/implementations/tensor_fp16x16.cairo b/src/operators/tensor/implementations/tensor_fp16x16.cairo index cbe7fdfcc..cdc50bc4f 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16.cairo @@ -10,7 +10,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait, FP16x16}; +use orion::numbers::{NumberTrait, FP16x16, I8IntoFP16x16}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor }; @@ -223,7 +223,7 @@ impl FP16x16Tensor of TensorTrait { self, y_scale, y_zero_point, - NumberTrait::new_unscaled(128, true), + NumberTrait::new_unscaled(127, true), NumberTrait::new_unscaled(127, false) ) } diff --git a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo index 584abf5c1..b0dc2d858 100644 --- a/src/operators/tensor/implementations/tensor_fp16x16wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp16x16wide.cairo @@ -10,7 +10,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait, FP16x16W}; +use orion::numbers::{NumberTrait, FP16x16W}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor }; diff --git a/src/operators/tensor/implementations/tensor_fp32x32.cairo b/src/operators/tensor/implementations/tensor_fp32x32.cairo index e7b517eb4..4f862fd0e 100644 --- a/src/operators/tensor/implementations/tensor_fp32x32.cairo +++ b/src/operators/tensor/implementations/tensor_fp32x32.cairo @@ -10,7 +10,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait, FP32x32, FP32x32Impl}; +use orion::numbers::{NumberTrait, FP32x32, FP32x32Impl, I8IntoFP32x32}; use orion::numbers::fixed_point::implementations::fp32x32::core::ONE; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor @@ -636,10 +636,14 @@ impl FP32x32TensorPartialEq of PartialEq> { impl FP32x32TryIntoI8 of TryInto { fn try_into(self: FP32x32) -> Option { - Option::Some(i8 { mag: (self.mag / ONE).try_into().unwrap(), sign: self.sign }) + let number_felt: felt252 = (self.mag / ONE).into(); + let number_i8: i8 = number_felt.try_into().unwrap(); + if self.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) } } - impl TensorI8IntoTensorFP32x32 of Into, Tensor> { fn into(self: Tensor) -> Tensor { tensor_i8_to_tensor_fp32x32(@self) diff --git a/src/operators/tensor/implementations/tensor_fp64x64.cairo b/src/operators/tensor/implementations/tensor_fp64x64.cairo index a8121fc31..1fe5591fc 100644 --- a/src/operators/tensor/implementations/tensor_fp64x64.cairo +++ b/src/operators/tensor/implementations/tensor_fp64x64.cairo @@ -10,7 +10,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait, FP64x64, FP64x64Impl}; +use orion::numbers::{NumberTrait, FP64x64, FP64x64Impl, I8IntoFP64x64}; use orion::numbers::fixed_point::implementations::fp64x64::core::ONE; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor @@ -636,7 +636,12 @@ impl FP64x64TensorPartialEq of PartialEq> { impl FP64x64TryIntoI8 of TryInto { fn try_into(self: FP64x64) -> Option { - Option::Some(i8 { mag: (self.mag / ONE).try_into().unwrap(), sign: self.sign }) + let number_felt: felt252 = (self.mag / ONE).into(); + let number_i8: i8 = number_felt.try_into().unwrap(); + if self.sign { + return Option::Some(number_i8 * -1_i8); + } + Option::Some(number_i8) } } diff --git a/src/operators/tensor/implementations/tensor_fp8x23.cairo b/src/operators/tensor/implementations/tensor_fp8x23.cairo index 9f3e78573..77d183c21 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23.cairo @@ -10,7 +10,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_ops, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait, FP8x23}; +use orion::numbers::{NumberTrait, FP8x23, I8IntoFP8x23}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor }; diff --git a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo index 6a7ca5ba4..ff6069087 100644 --- a/src/operators/tensor/implementations/tensor_fp8x23wide.cairo +++ b/src/operators/tensor/implementations/tensor_fp8x23wide.cairo @@ -10,7 +10,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait, FP8x23W}; +use orion::numbers::{NumberTrait, FP8x23W}; use orion::operators::tensor::implementations::{ tensor_i8::I8Tensor, tensor_u32::U32Tensor, tensor_bool::BoolTensor }; diff --git a/src/operators/tensor/implementations/tensor_i32.cairo b/src/operators/tensor/implementations/tensor_i32.cairo index 2e2ae267d..50383d2df 100644 --- a/src/operators/tensor/implementations/tensor_i32.cairo +++ b/src/operators/tensor/implementations/tensor_i32.cairo @@ -3,6 +3,7 @@ use core::array::SpanTrait; use core::option::OptionTrait; use core::traits::{TryInto, Into}; +use orion::numbers::{ I32Div, I32DivEq }; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ @@ -10,7 +11,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i32, i8, NumberTrait}; +use orion::numbers::{NumberTrait}; use orion::operators::tensor::implementations::{ tensor_u32::U32Tensor, tensor_i8::I8Tensor, tensor_bool::BoolTensor }; @@ -46,7 +47,7 @@ impl I32Tensor of TensorTrait { } fn min_in_tensor(self: @Tensor) -> i32 { - math::min_in_tensor::min_in_tensor::(*self.data) + math::min_in_tensor::min_in_tensor::(*self.data) } fn min(tensors: Span>) -> Tensor { @@ -224,8 +225,8 @@ impl I32Tensor of TensorTrait { self, y_scale, y_zero_point, - NumberTrait::new_unscaled(128, true), - NumberTrait::new_unscaled(127, false) + -127, + 127 ) } diff --git a/src/operators/tensor/implementations/tensor_i8.cairo b/src/operators/tensor/implementations/tensor_i8.cairo index 769368166..7e81d90eb 100644 --- a/src/operators/tensor/implementations/tensor_i8.cairo +++ b/src/operators/tensor/implementations/tensor_i8.cairo @@ -3,6 +3,7 @@ use core::array::SpanTrait; use core::option::OptionTrait; use core::traits::{TryInto, Into}; +use orion::numbers::{ I8Div, I8DivEq }; use orion::numbers::fixed_point::core::FixedTrait; use orion::operators::tensor::helpers::SpanPartialOrd; use orion::operators::tensor::core::{ @@ -10,7 +11,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait}; +use orion::numbers::{NumberTrait}; use orion::operators::tensor::implementations::{tensor_u32::U32Tensor, tensor_bool::BoolTensor}; impl I8Tensor of TensorTrait { @@ -43,7 +44,7 @@ impl I8Tensor of TensorTrait { } fn min_in_tensor(self: @Tensor) -> i8 { - math::min_in_tensor::min_in_tensor::(*self.data) + math::min_in_tensor::min_in_tensor::(*self.data) } fn min(tensors: Span>) -> Tensor { @@ -221,7 +222,7 @@ impl I8Tensor of TensorTrait { self, y_scale, y_zero_point, - NumberTrait::new_unscaled(128, true), + NumberTrait::new_unscaled(-127, true), NumberTrait::new_unscaled(127, false) ) } @@ -251,7 +252,7 @@ impl I8Tensor of TensorTrait { b_zero_point, y_scale, y_zero_point, - NumberTrait::new_unscaled(128, true), + NumberTrait::new_unscaled(-127, true), NumberTrait::new_unscaled(127, false) ) } @@ -275,7 +276,7 @@ impl I8Tensor of TensorTrait { b_zero_point, y_scale, y_zero_point, - NumberTrait::new_unscaled(128, true), + NumberTrait::new_unscaled(-127, true), NumberTrait::new_unscaled(127, false) ) } @@ -299,7 +300,7 @@ impl I8Tensor of TensorTrait { b_zero_point, y_scale, y_zero_point, - NumberTrait::new_unscaled(128, true), + NumberTrait::new_unscaled(-127, true), NumberTrait::new_unscaled(127, false) ) } @@ -319,7 +320,7 @@ impl I8Tensor of TensorTrait { y_scale, y_zero_point, axis, - NumberTrait::new_unscaled(128, true), + NumberTrait::new_unscaled(-127, true), NumberTrait::new_unscaled(127, false) ) } @@ -332,7 +333,7 @@ impl I8Tensor of TensorTrait { a_scale, a_zero_point, alpha, - NumberTrait::new_unscaled(128, true), + NumberTrait::new_unscaled(-127, true), NumberTrait::new_unscaled(127, false) ) } diff --git a/src/operators/tensor/implementations/tensor_u32.cairo b/src/operators/tensor/implementations/tensor_u32.cairo index d8e02d490..5a926a538 100644 --- a/src/operators/tensor/implementations/tensor_u32.cairo +++ b/src/operators/tensor/implementations/tensor_u32.cairo @@ -10,7 +10,7 @@ use orion::operators::tensor::core::{ at_tensor, }; use orion::operators::tensor::{math, linalg, quantization, core as core_tensor, ml, manipulation}; -use orion::numbers::{i8, i32, NumberTrait}; +use orion::numbers::{NumberTrait}; use orion::operators::tensor::implementations::{tensor_i8::I8Tensor, tensor_bool::BoolTensor}; impl U32Tensor of TensorTrait { @@ -558,7 +558,9 @@ impl U32TensorPartialEq of PartialEq> { impl U32TryIntoI8 of TryInto { fn try_into(self: u32) -> Option { - Option::Some(i8 { mag: self.try_into().unwrap(), sign: false }) + let number_felt: felt252 = self.into(); + let number_i8: i8 = number_felt.try_into().unwrap(); + Option::Some(number_i8) } } diff --git a/src/operators/tensor/manipulation/unique.cairo b/src/operators/tensor/manipulation/unique.cairo index b1707a47f..d90b9b8cd 100644 --- a/src/operators/tensor/manipulation/unique.cairo +++ b/src/operators/tensor/manipulation/unique.cairo @@ -8,7 +8,7 @@ use core::debug::PrintTrait; use alexandria_data_structures::array_ext::{SpanTraitExt, ArrayTraitExt}; use alexandria_sorting::merge_sort::merge; -use orion::numbers::{i32, NumberTrait}; +use orion::numbers::{NumberTrait, U32IntoI32}; use orion::operators::tensor::core::{Tensor, TensorTrait, stride}; use orion::operators::tensor::helpers::{as_tensors_array, flatten_array_of_tensors}; diff --git a/src/operators/tensor/math/layer_normalization.cairo b/src/operators/tensor/math/layer_normalization.cairo index 6a20fd92b..372d5b1c2 100644 --- a/src/operators/tensor/math/layer_normalization.cairo +++ b/src/operators/tensor/math/layer_normalization.cairo @@ -3,13 +3,12 @@ use core::array::ArrayTrait; use core::array::SpanTrait; use core::option::OptionTrait; use core::traits::Into; -use orion::numbers::NumberTrait; +use orion::numbers::{ NumberTrait, I32IntoU32}; use orion::operators::tensor::{ TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor, BoolTensor }; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; use core::debug::PrintTrait; -use orion::numbers::{i8, i32, IntegerTrait}; use orion::operators::vec::{VecTrait, NullableVec, NullableVecImpl}; @@ -40,7 +39,7 @@ fn layer_normalization< let mut axis = match axis { Option::Some(axis) => axis, - Option::None => IntegerTrait::::new(1, true), + Option::None => -1, }; let epsilon = match epsilon { Option::Some(epsilon) => epsilon, @@ -52,10 +51,11 @@ fn layer_normalization< Option::None => 1, }; - let axis = if axis < IntegerTrait::::new(0, false) { - X_rank - axis.mag + + let axis = if axis < 0 { + X_rank - axis.into() } else { - axis.mag + axis.into() }; let unsqueezed_rank = X_rank - axis; diff --git a/src/operators/tensor/math/reduce_l1.cairo b/src/operators/tensor/math/reduce_l1.cairo index 8485f6e03..813101eb5 100644 --- a/src/operators/tensor/math/reduce_l1.cairo +++ b/src/operators/tensor/math/reduce_l1.cairo @@ -5,7 +5,6 @@ use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; -use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; /// Cf: TensorTrait::reduce_sum docstring fn reduce_l1< diff --git a/src/operators/tensor/math/reduce_l2.cairo b/src/operators/tensor/math/reduce_l2.cairo index d03499fec..e633e28d6 100644 --- a/src/operators/tensor/math/reduce_l2.cairo +++ b/src/operators/tensor/math/reduce_l2.cairo @@ -5,7 +5,6 @@ use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; -use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; fn square< diff --git a/src/operators/tensor/math/reduce_log_sum.cairo b/src/operators/tensor/math/reduce_log_sum.cairo index d2cccaad4..91019ebc0 100644 --- a/src/operators/tensor/math/reduce_log_sum.cairo +++ b/src/operators/tensor/math/reduce_log_sum.cairo @@ -5,7 +5,6 @@ use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; -use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; /// Cf: TensorTrait::reduce_sum_square docstring diff --git a/src/operators/tensor/math/reduce_mean.cairo b/src/operators/tensor/math/reduce_mean.cairo index 0fa2314b8..0024e4680 100644 --- a/src/operators/tensor/math/reduce_mean.cairo +++ b/src/operators/tensor/math/reduce_mean.cairo @@ -6,7 +6,6 @@ use core::traits::Into; use core::array::ArrayTrait; use core::array::SpanTrait; -use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; diff --git a/src/operators/tensor/math/reduce_min.cairo b/src/operators/tensor/math/reduce_min.cairo index fcf9c91a8..1ee23eed1 100644 --- a/src/operators/tensor/math/reduce_min.cairo +++ b/src/operators/tensor/math/reduce_min.cairo @@ -5,7 +5,6 @@ use core::traits::Into; use core::array::ArrayTrait; use core::array::SpanTrait; -use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; diff --git a/src/operators/tensor/math/reduce_sum_square.cairo b/src/operators/tensor/math/reduce_sum_square.cairo index 131e4f198..7d1cdcc6e 100644 --- a/src/operators/tensor/math/reduce_sum_square.cairo +++ b/src/operators/tensor/math/reduce_sum_square.cairo @@ -5,7 +5,6 @@ use core::debug::PrintTrait; use orion::numbers::NumberTrait; use orion::operators::tensor::core::{Tensor, TensorTrait, ravel_index, unravel_index}; -use orion::numbers::signed_integer::integer_trait::IntegerTrait; use orion::numbers::fixed_point::core::FixedTrait; diff --git a/src/test_helper/tensor/i32.cairo b/src/test_helper/tensor/i32.cairo index f28647779..0451fa442 100644 --- a/src/test_helper/tensor/i32.cairo +++ b/src/test_helper/tensor/i32.cairo @@ -2,36 +2,32 @@ use core::array::ArrayTrait; use core::array::SpanTrait; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32Tensor; + // 1D fn i32_tensor_1x3_helper() -> Tensor { let mut sizes = ArrayTrait::new(); sizes.append(3); - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } fn i32_tensor_1x3_neg_helper() -> Tensor { let mut sizes = ArrayTrait::new(); sizes.append(3); - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -43,12 +39,12 @@ fn i32_tensor_2x2_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + data.append(3_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -59,12 +55,12 @@ fn i32_tensor_2x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + data.append(-3_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -75,17 +71,18 @@ fn i32_tensor_3x3_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + data.append(3_i32); + data.append(4_i32); + data.append(5_i32); + data.append(6_i32); + data.append(7_i32); + data.append(8_i32); + + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -96,17 +93,18 @@ fn i32_tensor_3x3_neg_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0_u32, sign: false }); - data.append(i32 { mag: 1_u32, sign: true }); - data.append(i32 { mag: 2_u32, sign: true }); - data.append(i32 { mag: 3_u32, sign: true }); - data.append(i32 { mag: 4_u32, sign: true }); - data.append(i32 { mag: 5_u32, sign: true }); - data.append(i32 { mag: 6_u32, sign: true }); - data.append(i32 { mag: 7_u32, sign: true }); - data.append(i32 { mag: 8_u32, sign: true }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + data.append(-3_i32); + data.append(-4_i32); + data.append(-5_i32); + data.append(-6_i32); + data.append(-7_i32); + data.append(-8_i32); + + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -116,15 +114,15 @@ fn i32_tensor_3x2_helper() -> Tensor { sizes.append(3); sizes.append(2); - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + let mut data: Array = ArrayTrait::new(); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + data.append(3_i32); + data.append(4_i32); + data.append(5_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -135,14 +133,13 @@ fn i32_tensor_3x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + data.append(-3_i32); + data.append(-4_i32); + data.append(-5_i32); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -153,11 +150,11 @@ fn i32_tensor_3x1_helper() -> Tensor { sizes.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -168,11 +165,11 @@ fn i32_tensor_3x1_neg_helper() -> Tensor { sizes.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -183,14 +180,14 @@ fn i32_tensor_2x3_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + data.append(3_i32); + data.append(4_i32); + data.append(5_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -201,14 +198,14 @@ fn i32_tensor_2x3_neg_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + data.append(-3_i32); + data.append(-4_i32); + data.append(-5_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -222,16 +219,16 @@ fn i32_tensor_2x2x2_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + data.append(3_i32); + data.append(4_i32); + data.append(5_i32); + data.append(6_i32); + data.append(7_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -243,16 +240,16 @@ fn i32_tensor_2x2x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0_u32, sign: false }); - data.append(i32 { mag: 1_u32, sign: true }); - data.append(i32 { mag: 2_u32, sign: true }); - data.append(i32 { mag: 3_u32, sign: true }); - data.append(i32 { mag: 4_u32, sign: true }); - data.append(i32 { mag: 5_u32, sign: true }); - data.append(i32 { mag: 6_u32, sign: true }); - data.append(i32 { mag: 7_u32, sign: true }); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + data.append(-3_i32); + data.append(-4_i32); + data.append(-5_i32); + data.append(-6_i32); + data.append(-7_i32); - let tensor = TensorTrait::::new(sizes.span(), data.span()); + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -264,20 +261,20 @@ fn i32_tensor_3x2x2_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + data.append(3_i32); + data.append(4_i32); + data.append(5_i32); + data.append(6_i32); + data.append(7_i32); + data.append(8_i32); + data.append(9_i32); + data.append(10_i32); + data.append(11_i32); + + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -289,20 +286,20 @@ fn i32_tensor_3x2x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 11, sign: true }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + data.append(-3_i32); + data.append(-4_i32); + data.append(-5_i32); + data.append(-6_i32); + data.append(-7_i32); + data.append(-8_i32); + data.append(-9_i32); + data.append(-10_i32); + data.append(-11_i32); + + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -314,35 +311,36 @@ fn i32_tensor_3x3x3_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + data.append(0_i32); + data.append(1_i32); + data.append(2_i32); + data.append(3_i32); + data.append(4_i32); + data.append(5_i32); + data.append(6_i32); + data.append(7_i32); + data.append(8_i32); + data.append(9_i32); + data.append(10_i32); + data.append(11_i32); + data.append(12_i32); + data.append(13_i32); + data.append(14_i32); + data.append(15_i32); + data.append(16_i32); + data.append(17_i32); + data.append(18_i32); + data.append(19_i32); + data.append(20_i32); + data.append(21_i32); + data.append(22_i32); + data.append(23_i32); + data.append(24_i32); + data.append(25_i32); + data.append(26_i32); + + + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } @@ -354,35 +352,35 @@ fn i32_tensor_3x3x3_neg_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 26, sign: true }); - - let tensor = TensorTrait::::new(sizes.span(), data.span()); + data.append(0_i32); + data.append(-1_i32); + data.append(-2_i32); + data.append(-3_i32); + data.append(-4_i32); + data.append(-5_i32); + data.append(-6_i32); + data.append(-7_i32); + data.append(-8_i32); + data.append(-9_i32); + data.append(-10_i32); + data.append(-11_i32); + data.append(-12_i32); + data.append(-13_i32); + data.append(-14_i32); + data.append(-15_i32); + data.append(-16_i32); + data.append(-17_i32); + data.append(-18_i32); + data.append(-19_i32); + data.append(-20_i32); + data.append(-21_i32); + data.append(-22_i32); + data.append(-23_i32); + data.append(-24_i32); + data.append(-25_i32); + data.append(-26_i32); + + let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; } diff --git a/src/test_helper/tensor/i8.cairo b/src/test_helper/tensor/i8.cairo index d4ee6ed67..e492ad913 100644 --- a/src/test_helper/tensor/i8.cairo +++ b/src/test_helper/tensor/i8.cairo @@ -4,7 +4,6 @@ use core::array::SpanTrait; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; // 1D @@ -12,9 +11,9 @@ fn i8_tensor_1x3_helper() -> Tensor { let mut sizes = ArrayTrait::new(); sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; @@ -24,9 +23,9 @@ fn i8_tensor_1x3_neg_helper() -> Tensor { let mut sizes = ArrayTrait::new(); sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; @@ -40,10 +39,10 @@ fn i8_tensor_2x2_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); + data.append(3_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -56,10 +55,10 @@ fn i8_tensor_2x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); + data.append(-3_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -72,15 +71,16 @@ fn i8_tensor_3x3_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); + data.append(3_i8); + data.append(4_i8); + data.append(5_i8); + data.append(6_i8); + data.append(7_i8); + data.append(8_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -93,15 +93,16 @@ fn i8_tensor_3x3_neg_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 8, sign: true }); + + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); + data.append(-3_i8); + data.append(-4_i8); + data.append(-5_i8); + data.append(-6_i8); + data.append(-7_i8); + data.append(-8_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -113,13 +114,13 @@ fn i8_tensor_3x2_helper() -> Tensor { sizes.append(3); sizes.append(2); - let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); + let mut data: Array = ArrayTrait::new(); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); + data.append(3_i8); + data.append(4_i8); + data.append(5_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -132,13 +133,12 @@ fn i8_tensor_3x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: true }); - + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); + data.append(-3_i8); + data.append(-4_i8); + data.append(-5_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); return tensor; @@ -150,9 +150,9 @@ fn i8_tensor_3x1_helper() -> Tensor { sizes.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -165,9 +165,9 @@ fn i8_tensor_3x1_neg_helper() -> Tensor { sizes.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -180,12 +180,12 @@ fn i8_tensor_2x3_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); + data.append(3_i8); + data.append(4_i8); + data.append(5_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -198,12 +198,12 @@ fn i8_tensor_2x3_neg_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: true }); + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); + data.append(-3_i8); + data.append(-4_i8); + data.append(-5_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -219,14 +219,14 @@ fn i8_tensor_2x2x2_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); + data.append(3_i8); + data.append(4_i8); + data.append(5_i8); + data.append(6_i8); + data.append(7_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -240,14 +240,14 @@ fn i8_tensor_2x2x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 7, sign: true }); + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); + data.append(-3_i8); + data.append(-4_i8); + data.append(-5_i8); + data.append(-6_i8); + data.append(-7_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -261,18 +261,18 @@ fn i8_tensor_3x2x2_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); + data.append(3_i8); + data.append(4_i8); + data.append(5_i8); + data.append(6_i8); + data.append(7_i8); + data.append(8_i8); + data.append(9_i8); + data.append(10_i8); + data.append(11_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -286,18 +286,18 @@ fn i8_tensor_3x2x2_neg_helper() -> Tensor { sizes.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 11, sign: true }); + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); + data.append(-3_i8); + data.append(-4_i8); + data.append(-5_i8); + data.append(-6_i8); + data.append(-7_i8); + data.append(-8_i8); + data.append(-9_i8); + data.append(-10_i8); + data.append(-11_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -311,33 +311,34 @@ fn i8_tensor_3x3x3_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0_i8); + data.append(1_i8); + data.append(2_i8); + data.append(3_i8); + data.append(4_i8); + data.append(5_i8); + data.append(6_i8); + data.append(7_i8); + data.append(8_i8); + data.append(9_i8); + data.append(10_i8); + data.append(11_i8); + data.append(12_i8); + data.append(13_i8); + data.append(14_i8); + data.append(15_i8); + data.append(16_i8); + data.append(17_i8); + data.append(18_i8); + data.append(19_i8); + data.append(20_i8); + data.append(21_i8); + data.append(22_i8); + data.append(23_i8); + data.append(24_i8); + data.append(25_i8); + data.append(26_i8); + let tensor = TensorTrait::new(sizes.span(), data.span()); @@ -351,33 +352,33 @@ fn i8_tensor_3x3x3_neg_helper() -> Tensor { sizes.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 26, sign: true }); + data.append(0_i8); + data.append(-1_i8); + data.append(-2_i8); + data.append(-3_i8); + data.append(-4_i8); + data.append(-5_i8); + data.append(-6_i8); + data.append(-7_i8); + data.append(-8_i8); + data.append(-9_i8); + data.append(-10_i8); + data.append(-11_i8); + data.append(-12_i8); + data.append(-13_i8); + data.append(-14_i8); + data.append(-15_i8); + data.append(-16_i8); + data.append(-17_i8); + data.append(-18_i8); + data.append(-19_i8); + data.append(-20_i8); + data.append(-21_i8); + data.append(-22_i8); + data.append(-23_i8); + data.append(-24_i8); + data.append(-25_i8); + data.append(-26_i8); let tensor = TensorTrait::new(sizes.span(), data.span()); diff --git a/tests/nodes.cairo b/tests/nodes.cairo index e06f9efde..6c70b42cb 100644 --- a/tests/nodes.cairo +++ b/tests/nodes.cairo @@ -912,13 +912,13 @@ mod layer_normalization_4d_axis1; mod layer_normalization_4d_axis2; mod layer_normalization_4d_axis3; mod layer_normalization_3d_axis0_epsilon; +mod layer_normalization_3d_axis_negative_3_epsilon; mod layer_normalization_3d_axis1_epsilon; mod layer_normalization_3d_axis2_epsilon; mod layer_normalization_4d_axis_negative_4; mod layer_normalization_4d_axis_negative_3; mod layer_normalization_4d_axis_negative_2; mod layer_normalization_4d_axis_negative_1; -mod layer_normalization_3d_axis_negative_3_epsilon; mod layer_normalization_3d_axis_negative_2_epsilon; mod layer_normalization_3d_axis_negative_1_epsilon; mod layer_normalization_test; diff --git a/tests/nodes/abs_fp16x16.cairo b/tests/nodes/abs_fp16x16.cairo index 493682bd4..90920341d 100644 --- a/tests/nodes/abs_fp16x16.cairo +++ b/tests/nodes/abs_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/abs_fp16x16/input_0.cairo b/tests/nodes/abs_fp16x16/input_0.cairo index 7482436b8..0ddd0fe87 100644 --- a/tests/nodes/abs_fp16x16/input_0.cairo +++ b/tests/nodes/abs_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/abs_fp16x16/output_0.cairo b/tests/nodes/abs_fp16x16/output_0.cairo index fc031a4b6..10602c550 100644 --- a/tests/nodes/abs_fp16x16/output_0.cairo +++ b/tests/nodes/abs_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/abs_fp8x23.cairo b/tests/nodes/abs_fp8x23.cairo index b6ed1e097..1b9cc4d37 100644 --- a/tests/nodes/abs_fp8x23.cairo +++ b/tests/nodes/abs_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/abs_fp8x23/input_0.cairo b/tests/nodes/abs_fp8x23/input_0.cairo index 90adfd51b..d330405fe 100644 --- a/tests/nodes/abs_fp8x23/input_0.cairo +++ b/tests/nodes/abs_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/abs_fp8x23/output_0.cairo b/tests/nodes/abs_fp8x23/output_0.cairo index b4ab25398..30e1410fa 100644 --- a/tests/nodes/abs_fp8x23/output_0.cairo +++ b/tests/nodes/abs_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/abs_i32.cairo b/tests/nodes/abs_i32.cairo index a48da9fc6..f9e37e096 100644 --- a/tests/nodes/abs_i32.cairo +++ b/tests/nodes/abs_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/abs_i32/input_0.cairo b/tests/nodes/abs_i32/input_0.cairo index 81eec58e8..3434839dd 100644 --- a/tests/nodes/abs_i32/input_0.cairo +++ b/tests/nodes/abs_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 67, sign: true }); + data.append(-35); + data.append(106); + data.append(91); + data.append(-12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/abs_i32/output_0.cairo b/tests/nodes/abs_i32/output_0.cairo index f11d16637..6407071fc 100644 --- a/tests/nodes/abs_i32/output_0.cairo +++ b/tests/nodes/abs_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 67, sign: false }); + data.append(35); + data.append(106); + data.append(91); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/abs_i8.cairo b/tests/nodes/abs_i8.cairo index 4ed52a38c..72e475137 100644 --- a/tests/nodes/abs_i8.cairo +++ b/tests/nodes/abs_i8.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/abs_i8/input_0.cairo b/tests/nodes/abs_i8/input_0.cairo index e80cba1b9..182ff597c 100644 --- a/tests/nodes/abs_i8/input_0.cairo +++ b/tests/nodes/abs_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 24, sign: true }); + data.append(-85); + data.append(100); + data.append(-90); + data.append(-40); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/abs_i8/output_0.cairo b/tests/nodes/abs_i8/output_0.cairo index 9aa25b00e..dfbd9636e 100644 --- a/tests/nodes/abs_i8/output_0.cairo +++ b/tests/nodes/abs_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 24, sign: false }); + data.append(85); + data.append(100); + data.append(90); + data.append(40); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acos_fp16x16.cairo b/tests/nodes/acos_fp16x16.cairo index ef610ffd8..80c2667a2 100644 --- a/tests/nodes/acos_fp16x16.cairo +++ b/tests/nodes/acos_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/acos_fp16x16/input_0.cairo b/tests/nodes/acos_fp16x16/input_0.cairo index e82ec0a13..5b8d4e699 100644 --- a/tests/nodes/acos_fp16x16/input_0.cairo +++ b/tests/nodes/acos_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 47767, sign: false }); - data.append(FP16x16 { mag: 33238, sign: true }); - data.append(FP16x16 { mag: 47744, sign: false }); - data.append(FP16x16 { mag: 21178, sign: true }); + data.append(FP16x16 { mag: 51202, sign: true }); + data.append(FP16x16 { mag: 49944, sign: false }); + data.append(FP16x16 { mag: 18761, sign: false }); + data.append(FP16x16 { mag: 64655, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acos_fp16x16/output_0.cairo b/tests/nodes/acos_fp16x16/output_0.cairo index 44e0845e5..874a5861d 100644 --- a/tests/nodes/acos_fp16x16/output_0.cairo +++ b/tests/nodes/acos_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 49421, sign: false }); - data.append(FP16x16 { mag: 137802, sign: false }); - data.append(FP16x16 { mag: 49455, sign: false }); - data.append(FP16x16 { mag: 124509, sign: false }); + data.append(FP16x16 { mag: 161711, sign: false }); + data.append(FP16x16 { mag: 46154, sign: false }); + data.append(FP16x16 { mag: 83915, sign: false }); + data.append(FP16x16 { mag: 195133, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acos_fp8x23.cairo b/tests/nodes/acos_fp8x23.cairo index 586ec403a..827ae159b 100644 --- a/tests/nodes/acos_fp8x23.cairo +++ b/tests/nodes/acos_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/acos_fp8x23/input_0.cairo b/tests/nodes/acos_fp8x23/input_0.cairo index c576b9d0d..779c8bb85 100644 --- a/tests/nodes/acos_fp8x23/input_0.cairo +++ b/tests/nodes/acos_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 3985911, sign: false }); - data.append(FP8x23 { mag: 4254306, sign: true }); - data.append(FP8x23 { mag: 5997528, sign: true }); - data.append(FP8x23 { mag: 3494756, sign: true }); + data.append(FP8x23 { mag: 3764690, sign: false }); + data.append(FP8x23 { mag: 556457, sign: true }); + data.append(FP8x23 { mag: 529360, sign: false }); + data.append(FP8x23 { mag: 2252561, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acos_fp8x23/output_0.cairo b/tests/nodes/acos_fp8x23/output_0.cairo index bb0247c25..b1e40bd01 100644 --- a/tests/nodes/acos_fp8x23/output_0.cairo +++ b/tests/nodes/acos_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9023232, sign: false }); - data.append(FP8x23 { mag: 17638511, sign: false }); - data.append(FP8x23 { mag: 19858895, sign: false }); - data.append(FP8x23 { mag: 16781466, sign: false }); + data.append(FP8x23 { mag: 9272682, sign: false }); + data.append(FP8x23 { mag: 13733660, sign: false }); + data.append(FP8x23 { mag: 12647081, sign: false }); + data.append(FP8x23 { mag: 15457344, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acosh_fp16x16.cairo b/tests/nodes/acosh_fp16x16.cairo index 029e33ae3..0d89ac51d 100644 --- a/tests/nodes/acosh_fp16x16.cairo +++ b/tests/nodes/acosh_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/acosh_fp16x16/input_0.cairo b/tests/nodes/acosh_fp16x16/input_0.cairo index b0afc87dc..3982f7f9c 100644 --- a/tests/nodes/acosh_fp16x16/input_0.cairo +++ b/tests/nodes/acosh_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 257246, sign: false }); - data.append(FP16x16 { mag: 273870, sign: false }); - data.append(FP16x16 { mag: 185580, sign: false }); - data.append(FP16x16 { mag: 308003, sign: false }); + data.append(FP16x16 { mag: 278211, sign: false }); + data.append(FP16x16 { mag: 184787, sign: false }); + data.append(FP16x16 { mag: 83173, sign: false }); + data.append(FP16x16 { mag: 258400, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acosh_fp16x16/output_0.cairo b/tests/nodes/acosh_fp16x16/output_0.cairo index 6b7b151b9..23c855263 100644 --- a/tests/nodes/acosh_fp16x16/output_0.cairo +++ b/tests/nodes/acosh_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 133952, sign: false }); - data.append(FP16x16 { mag: 138187, sign: false }); - data.append(FP16x16 { mag: 111495, sign: false }); - data.append(FP16x16 { mag: 146089, sign: false }); + data.append(FP16x16 { mag: 139248, sign: false }); + data.append(FP16x16 { mag: 111195, sign: false }); + data.append(FP16x16 { mag: 47062, sign: false }); + data.append(FP16x16 { mag: 134255, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acosh_fp8x23.cairo b/tests/nodes/acosh_fp8x23.cairo index 7fc08d2c5..2819029da 100644 --- a/tests/nodes/acosh_fp8x23.cairo +++ b/tests/nodes/acosh_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/acosh_fp8x23/input_0.cairo b/tests/nodes/acosh_fp8x23/input_0.cairo index 82866a091..071b9825e 100644 --- a/tests/nodes/acosh_fp8x23/input_0.cairo +++ b/tests/nodes/acosh_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 26479692, sign: false }); - data.append(FP8x23 { mag: 34552514, sign: false }); - data.append(FP8x23 { mag: 21028116, sign: false }); - data.append(FP8x23 { mag: 39741582, sign: false }); + data.append(FP8x23 { mag: 11868883, sign: false }); + data.append(FP8x23 { mag: 28161016, sign: false }); + data.append(FP8x23 { mag: 27794185, sign: false }); + data.append(FP8x23 { mag: 28651727, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/acosh_fp8x23/output_0.cairo b/tests/nodes/acosh_fp8x23/output_0.cairo index 0ac26e986..85ffa573b 100644 --- a/tests/nodes/acosh_fp8x23/output_0.cairo +++ b/tests/nodes/acosh_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 15238413, sign: false }); - data.append(FP8x23 { mag: 17563067, sign: false }); - data.append(FP8x23 { mag: 13167925, sign: false }); - data.append(FP8x23 { mag: 18768178, sign: false }); + data.append(FP8x23 { mag: 7399094, sign: false }); + data.append(FP8x23 { mag: 15781079, sign: false }); + data.append(FP8x23 { mag: 15665784, sign: false }); + data.append(FP8x23 { mag: 15932759, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp16x16.cairo b/tests/nodes/add_fp16x16.cairo index 3d919c7b3..03dd4c1b5 100644 --- a/tests/nodes/add_fp16x16.cairo +++ b/tests/nodes/add_fp16x16.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_fp16x16/input_0.cairo b/tests/nodes/add_fp16x16/input_0.cairo index da5896eb9..10a6ce8f1 100644 --- a/tests/nodes/add_fp16x16/input_0.cairo +++ b/tests/nodes/add_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp16x16/input_1.cairo b/tests/nodes/add_fp16x16/input_1.cairo index 583a9a091..e690fbe3e 100644 --- a/tests/nodes/add_fp16x16/input_1.cairo +++ b/tests/nodes/add_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp16x16/output_0.cairo b/tests/nodes/add_fp16x16/output_0.cairo index f08fdac69..b78d61ce3 100644 --- a/tests/nodes/add_fp16x16/output_0.cairo +++ b/tests/nodes/add_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp16x16_broadcast.cairo b/tests/nodes/add_fp16x16_broadcast.cairo index a0a1e9dbf..fc4ff77ba 100644 --- a/tests/nodes/add_fp16x16_broadcast.cairo +++ b/tests/nodes/add_fp16x16_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_fp16x16_broadcast/input_0.cairo b/tests/nodes/add_fp16x16_broadcast/input_0.cairo index 66c8a0858..24f383a23 100644 --- a/tests/nodes/add_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/add_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp16x16_broadcast/input_1.cairo b/tests/nodes/add_fp16x16_broadcast/input_1.cairo index 2aec11537..5eebfdb0a 100644 --- a/tests/nodes/add_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/add_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp16x16_broadcast/output_0.cairo b/tests/nodes/add_fp16x16_broadcast/output_0.cairo index 1d56a5b00..eb0ddbf71 100644 --- a/tests/nodes/add_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/add_fp16x16_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp8x23.cairo b/tests/nodes/add_fp8x23.cairo index 18ff3f5a8..f3f1feb90 100644 --- a/tests/nodes/add_fp8x23.cairo +++ b/tests/nodes/add_fp8x23.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_fp8x23/input_0.cairo b/tests/nodes/add_fp8x23/input_0.cairo index 9dba4c568..cb6529943 100644 --- a/tests/nodes/add_fp8x23/input_0.cairo +++ b/tests/nodes/add_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp8x23/input_1.cairo b/tests/nodes/add_fp8x23/input_1.cairo index bb3d993c1..d2cc46cdb 100644 --- a/tests/nodes/add_fp8x23/input_1.cairo +++ b/tests/nodes/add_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -14,29 +13,29 @@ fn input_1() -> Tensor { data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp8x23/output_0.cairo b/tests/nodes/add_fp8x23/output_0.cairo index 54dbe7b85..8540ef775 100644 --- a/tests/nodes/add_fp8x23/output_0.cairo +++ b/tests/nodes/add_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp8x23_broadcast.cairo b/tests/nodes/add_fp8x23_broadcast.cairo index 6710b47cc..86bf8c004 100644 --- a/tests/nodes/add_fp8x23_broadcast.cairo +++ b/tests/nodes/add_fp8x23_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_fp8x23_broadcast/input_0.cairo b/tests/nodes/add_fp8x23_broadcast/input_0.cairo index ce75edfd5..270a57d69 100644 --- a/tests/nodes/add_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/add_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp8x23_broadcast/input_1.cairo b/tests/nodes/add_fp8x23_broadcast/input_1.cairo index 02974d48d..cf2d57635 100644 --- a/tests/nodes/add_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/add_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,7 +11,7 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_fp8x23_broadcast/output_0.cairo b/tests/nodes/add_fp8x23_broadcast/output_0.cairo index b3ba9fcc3..88285bd36 100644 --- a/tests/nodes/add_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/add_fp8x23_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i32.cairo b/tests/nodes/add_i32.cairo index a5375bc0d..b354d37d5 100644 --- a/tests/nodes/add_i32.cairo +++ b/tests/nodes/add_i32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_i32/input_0.cairo b/tests/nodes/add_i32/input_0.cairo index 65a9899f3..f314ca410 100644 --- a/tests/nodes/add_i32/input_0.cairo +++ b/tests/nodes/add_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(-3); + data.append(1); + data.append(-1); + data.append(0); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(0); + data.append(-2); + data.append(2); + data.append(2); + data.append(1); + data.append(-3); + data.append(2); + data.append(-2); + data.append(0); + data.append(-2); + data.append(2); + data.append(-2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i32/input_1.cairo b/tests/nodes/add_i32/input_1.cairo index 57dc1eba5..5e4b81754 100644 --- a/tests/nodes/add_i32/input_1.cairo +++ b/tests/nodes/add_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(0); + data.append(1); + data.append(-2); + data.append(2); + data.append(-2); + data.append(-3); + data.append(-2); + data.append(1); + data.append(-3); + data.append(2); + data.append(0); + data.append(-3); + data.append(2); + data.append(1); + data.append(2); + data.append(0); + data.append(1); + data.append(-3); + data.append(-3); + data.append(0); + data.append(-1); + data.append(-2); + data.append(2); + data.append(-1); + data.append(2); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i32/output_0.cairo b/tests/nodes/add_i32/output_0.cairo index 6af111480..57a53f9eb 100644 --- a/tests/nodes/add_i32/output_0.cairo +++ b/tests/nodes/add_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-1); + data.append(0); + data.append(-4); + data.append(0); + data.append(-3); + data.append(-6); + data.append(-1); + data.append(0); + data.append(-3); + data.append(3); + data.append(2); + data.append(-2); + data.append(4); + data.append(3); + data.append(2); + data.append(-2); + data.append(3); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(1); + data.append(-4); + data.append(2); + data.append(-3); + data.append(4); + data.append(-1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i32_broadcast.cairo b/tests/nodes/add_i32_broadcast.cairo index 2ef133f07..d5bb60d98 100644 --- a/tests/nodes/add_i32_broadcast.cairo +++ b/tests/nodes/add_i32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_i32_broadcast/input_0.cairo b/tests/nodes/add_i32_broadcast/input_0.cairo index 798ec1148..ae17e01d2 100644 --- a/tests/nodes/add_i32_broadcast/input_0.cairo +++ b/tests/nodes/add_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(-2); + data.append(-2); + data.append(0); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(-3); + data.append(0); + data.append(1); + data.append(0); + data.append(-2); + data.append(-2); + data.append(1); + data.append(-2); + data.append(1); + data.append(2); + data.append(-3); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(0); + data.append(0); + data.append(0); + data.append(-3); + data.append(1); + data.append(-2); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i32_broadcast/input_1.cairo b/tests/nodes/add_i32_broadcast/input_1.cairo index c5058a387..1bf315fd8 100644 --- a/tests/nodes/add_i32_broadcast/input_1.cairo +++ b/tests/nodes/add_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); + data.append(-1); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i32_broadcast/output_0.cairo b/tests/nodes/add_i32_broadcast/output_0.cairo index f67a0d8f0..b0d29743c 100644 --- a/tests/nodes/add_i32_broadcast/output_0.cairo +++ b/tests/nodes/add_i32_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(1); + data.append(2); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(1); + data.append(-2); + data.append(1); + data.append(3); + data.append(-2); + data.append(0); + data.append(-3); + data.append(-4); + data.append(-1); + data.append(0); + data.append(0); + data.append(-3); + data.append(2); + data.append(-1); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i8.cairo b/tests/nodes/add_i8.cairo index 0bd7b30a9..42ebd1355 100644 --- a/tests/nodes/add_i8.cairo +++ b/tests/nodes/add_i8.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_i8/input_0.cairo b/tests/nodes/add_i8/input_0.cairo index 3a12f520e..bf6212698 100644 --- a/tests/nodes/add_i8/input_0.cairo +++ b/tests/nodes/add_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(2); + data.append(-3); + data.append(0); + data.append(0); + data.append(0); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-2); + data.append(0); + data.append(-3); + data.append(1); + data.append(0); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(1); + data.append(2); + data.append(0); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(-3); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i8/input_1.cairo b/tests/nodes/add_i8/input_1.cairo index 6b4bda3f3..8b71c6fa8 100644 --- a/tests/nodes/add_i8/input_1.cairo +++ b/tests/nodes/add_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(-3); + data.append(0); + data.append(-2); + data.append(2); + data.append(2); + data.append(-3); + data.append(1); + data.append(-2); + data.append(0); + data.append(1); + data.append(2); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(-3); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-2); + data.append(-1); + data.append(2); + data.append(0); + data.append(2); + data.append(2); + data.append(-1); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i8/output_0.cairo b/tests/nodes/add_i8/output_0.cairo index fd72478ab..a3d55fa7c 100644 --- a/tests/nodes/add_i8/output_0.cairo +++ b/tests/nodes/add_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(-1); + data.append(-3); + data.append(-2); + data.append(2); + data.append(2); + data.append(-6); + data.append(-2); + data.append(-3); + data.append(0); + data.append(0); + data.append(0); + data.append(-3); + data.append(-5); + data.append(0); + data.append(-3); + data.append(-4); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(1); + data.append(2); + data.append(2); + data.append(3); + data.append(4); + data.append(0); + data.append(-1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i8_broadcast.cairo b/tests/nodes/add_i8_broadcast.cairo index a6c3d2233..9f4a5d38c 100644 --- a/tests/nodes/add_i8_broadcast.cairo +++ b/tests/nodes/add_i8_broadcast.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_i8_broadcast/input_0.cairo b/tests/nodes/add_i8_broadcast/input_0.cairo index 6edba4069..b47fd1be3 100644 --- a/tests/nodes/add_i8_broadcast/input_0.cairo +++ b/tests/nodes/add_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(0); + data.append(2); + data.append(0); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(-2); + data.append(0); + data.append(0); + data.append(1); + data.append(-2); + data.append(0); + data.append(1); + data.append(-3); + data.append(0); + data.append(0); + data.append(1); + data.append(-3); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(-3); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i8_broadcast/input_1.cairo b/tests/nodes/add_i8_broadcast/input_1.cairo index b6c2b6351..67ad369b0 100644 --- a/tests/nodes/add_i8_broadcast/input_1.cairo +++ b/tests/nodes/add_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(-1); + data.append(2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_i8_broadcast/output_0.cairo b/tests/nodes/add_i8_broadcast/output_0.cairo index c174866e8..4d18e2b60 100644 --- a/tests/nodes/add_i8_broadcast/output_0.cairo +++ b/tests/nodes/add_i8_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(2); + data.append(4); + data.append(2); + data.append(0); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(-1); + data.append(2); + data.append(3); + data.append(0); + data.append(-1); + data.append(0); + data.append(-4); + data.append(-1); + data.append(-1); + data.append(0); + data.append(-1); + data.append(1); + data.append(-1); + data.append(-4); + data.append(-4); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_u32.cairo b/tests/nodes/add_u32.cairo index 78977acd8..3c17e620e 100644 --- a/tests/nodes/add_u32.cairo +++ b/tests/nodes/add_u32.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_u32/input_0.cairo b/tests/nodes/add_u32/input_0.cairo index de0e8c8a5..42361dff8 100644 --- a/tests/nodes/add_u32/input_0.cairo +++ b/tests/nodes/add_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(1); - data.append(1); - data.append(1); - data.append(2); - data.append(0); - data.append(1); data.append(0); data.append(2); - data.append(0); - data.append(1); data.append(2); data.append(2); data.append(0); data.append(1); - data.append(1); data.append(2); - data.append(0); data.append(1); data.append(2); data.append(1); + data.append(1); + data.append(0); data.append(2); data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); data.append(0); + data.append(2); data.append(0); data.append(0); - data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_u32/input_1.cairo b/tests/nodes/add_u32/input_1.cairo index e06eff828..5d5633c4f 100644 --- a/tests/nodes/add_u32/input_1.cairo +++ b/tests/nodes/add_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); - data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(2); + data.append(1); data.append(0); data.append(2); data.append(1); + data.append(2); + data.append(2); data.append(1); data.append(0); + data.append(2); data.append(1); data.append(1); data.append(2); - data.append(1); + data.append(0); data.append(0); data.append(2); - data.append(1); data.append(2); - data.append(1); + data.append(0); data.append(2); + data.append(0); data.append(2); data.append(2); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_u32/output_0.cairo b/tests/nodes/add_u32/output_0.cairo index 6c2bff922..ea1cb2dff 100644 --- a/tests/nodes/add_u32/output_0.cairo +++ b/tests/nodes/add_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(1); + data.append(0); + data.append(2); data.append(2); + data.append(4); data.append(1); - data.append(3); data.append(1); + data.append(4); data.append(2); - data.append(1); data.append(4); - data.append(0); - data.append(3); data.append(3); - data.append(3); - data.append(0); - data.append(2); data.append(2); + data.append(0); data.append(4); + data.append(3); + data.append(2); + data.append(3); data.append(1); data.append(1); - data.append(4); - data.append(2); - data.append(4); data.append(3); + data.append(3); + data.append(1); data.append(2); data.append(2); data.append(2); - data.append(0); + data.append(2); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_u32_broadcast.cairo b/tests/nodes/add_u32_broadcast.cairo index 56388b6e5..39ed1431c 100644 --- a/tests/nodes/add_u32_broadcast.cairo +++ b/tests/nodes/add_u32_broadcast.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/add_u32_broadcast/input_0.cairo b/tests/nodes/add_u32_broadcast/input_0.cairo index 78d737847..554c757d0 100644 --- a/tests/nodes/add_u32_broadcast/input_0.cairo +++ b/tests/nodes/add_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - data.append(2); - data.append(0); data.append(0); data.append(0); data.append(1); - data.append(1); + data.append(2); data.append(0); data.append(1); data.append(2); - data.append(0); - data.append(0); data.append(1); - data.append(0); data.append(2); - data.append(0); data.append(2); - data.append(0); - data.append(0); data.append(1); + data.append(2); data.append(0); - data.append(0); - data.append(0); - data.append(0); data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); data.append(0); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_u32_broadcast/input_1.cairo b/tests/nodes/add_u32_broadcast/input_1.cairo index e6c6a0131..c049aad04 100644 --- a/tests/nodes/add_u32_broadcast/input_1.cairo +++ b/tests/nodes/add_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); + data.append(2); data.append(1); data.append(0); - data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/add_u32_broadcast/output_0.cairo b/tests/nodes/add_u32_broadcast/output_0.cairo index 544c65b9e..c64fbf886 100644 --- a/tests/nodes/add_u32_broadcast/output_0.cairo +++ b/tests/nodes/add_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(2); - data.append(1); + data.append(2); data.append(3); - data.append(0); - data.append(0); - data.append(0); + data.append(3); + data.append(1); data.append(2); data.append(2); data.append(1); data.append(2); + data.append(4); data.append(3); + data.append(4); data.append(1); - data.append(0); + data.append(2); + data.append(2); data.append(1); - data.append(0); - data.append(3); data.append(1); - data.append(3); data.append(1); + data.append(3); + data.append(4); + data.append(4); data.append(1); + data.append(3); + data.append(2); + data.append(2); data.append(2); - data.append(0); - data.append(0); - data.append(0); - data.append(1); data.append(2); - data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/and_bool.cairo b/tests/nodes/and_bool.cairo index 21b2f042f..223240abe 100644 --- a/tests/nodes/and_bool.cairo +++ b/tests/nodes/and_bool.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::BoolTensor; -use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/and_bool/input_0.cairo b/tests/nodes/and_bool/input_0.cairo index 0ffac7d66..881c7e8ea 100644 --- a/tests/nodes/and_bool/input_0.cairo +++ b/tests/nodes/and_bool/input_0.cairo @@ -10,15 +10,15 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(false); data.append(true); - data.append(false); - data.append(false); - data.append(false); data.append(true); data.append(true); - data.append(false); + data.append(true); + data.append(true); + data.append(true); data.append(true); data.append(false); data.append(false); data.append(true); + data.append(true); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/and_bool/input_1.cairo b/tests/nodes/and_bool/input_1.cairo index e420ca43d..e26f3717a 100644 --- a/tests/nodes/and_bool/input_1.cairo +++ b/tests/nodes/and_bool/input_1.cairo @@ -11,14 +11,14 @@ fn input_1() -> Tensor { data.append(false); data.append(false); data.append(true); - data.append(true); data.append(false); data.append(true); data.append(false); - data.append(true); data.append(false); - data.append(true); data.append(false); + data.append(false); + data.append(true); + data.append(true); data.append(true); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/and_bool/output_0.cairo b/tests/nodes/and_bool/output_0.cairo index 88fd7a1e8..e961a4093 100644 --- a/tests/nodes/and_bool/output_0.cairo +++ b/tests/nodes/and_bool/output_0.cairo @@ -10,8 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(false); data.append(false); - data.append(false); - data.append(false); + data.append(true); data.append(false); data.append(true); data.append(false); @@ -20,5 +19,6 @@ fn output_0() -> Tensor { data.append(false); data.append(false); data.append(true); + data.append(true); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/and_bool_broadcast.cairo b/tests/nodes/and_bool_broadcast.cairo index 15efda6be..1ef34c86b 100644 --- a/tests/nodes/and_bool_broadcast.cairo +++ b/tests/nodes/and_bool_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::BoolTensor; -use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/and_bool_broadcast/input_0.cairo b/tests/nodes/and_bool_broadcast/input_0.cairo new file mode 100644 index 000000000..56fdd1103 --- /dev/null +++ b/tests/nodes/and_bool_broadcast/input_0.cairo @@ -0,0 +1,73 @@ +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::BoolTensor; + +fn input_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(4); + shape.append(5); + + let mut data = ArrayTrait::new(); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(true); + data.append(true); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(true); + data.append(false); + data.append(true); + data.append(true); + data.append(true); + data.append(false); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/and_bool_broadcast/input_1.cairo b/tests/nodes/and_bool_broadcast/input_1.cairo new file mode 100644 index 000000000..8da43cc44 --- /dev/null +++ b/tests/nodes/and_bool_broadcast/input_1.cairo @@ -0,0 +1,73 @@ +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::BoolTensor; + +fn input_1() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(4); + shape.append(5); + + let mut data = ArrayTrait::new(); + data.append(true); + data.append(true); + data.append(true); + data.append(true); + data.append(true); + data.append(true); + data.append(false); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(true); + data.append(false); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(true); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(true); + data.append(true); + data.append(true); + data.append(true); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(true); + data.append(true); + data.append(true); + data.append(true); + data.append(false); + data.append(true); + data.append(false); + data.append(true); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/and_bool_broadcast/output_0.cairo b/tests/nodes/and_bool_broadcast/output_0.cairo new file mode 100644 index 000000000..e12ed574d --- /dev/null +++ b/tests/nodes/and_bool_broadcast/output_0.cairo @@ -0,0 +1,73 @@ +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::BoolTensor; + +fn output_0() -> Tensor { + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(4); + shape.append(5); + + let mut data = ArrayTrait::new(); + data.append(true); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + data.append(false); + data.append(false); + data.append(true); + data.append(false); + TensorTrait::new(shape.span(), data.span()) +} diff --git a/tests/nodes/argmax_fp16x16_1D_default.cairo b/tests/nodes/argmax_fp16x16_1D_default.cairo index fa63628d5..873579cce 100644 --- a/tests/nodes/argmax_fp16x16_1D_default.cairo +++ b/tests/nodes/argmax_fp16x16_1D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo b/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo index 6bfe5e894..1d26625fd 100644 --- a/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_default/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo b/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo index 4a377d050..23846d97b 100644 --- a/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo b/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo index ec20d165d..1563fad06 100644 --- a/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp16x16_1D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_1D_keepdims_false/input_0.cairo b/tests/nodes/argmax_fp16x16_1D_keepdims_false/input_0.cairo index c52feb518..1c4977212 100644 --- a/tests/nodes/argmax_fp16x16_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_keepdims_false/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_1D_keepdims_false/output_0.cairo b/tests/nodes/argmax_fp16x16_1D_keepdims_false/output_0.cairo index 31cebe9de..e4dbc507c 100644 --- a/tests/nodes/argmax_fp16x16_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_keepdims_false/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_1D_last_index.cairo b/tests/nodes/argmax_fp16x16_1D_last_index.cairo index 3a87e4d30..fad13c40f 100644 --- a/tests/nodes/argmax_fp16x16_1D_last_index.cairo +++ b/tests/nodes/argmax_fp16x16_1D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_1D_last_index/input_0.cairo b/tests/nodes/argmax_fp16x16_1D_last_index/input_0.cairo index 1be090a24..9f3f8fb9f 100644 --- a/tests/nodes/argmax_fp16x16_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_last_index/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_1D_last_index/output_0.cairo b/tests/nodes/argmax_fp16x16_1D_last_index/output_0.cairo index 31cebe9de..23846d97b 100644 --- a/tests/nodes/argmax_fp16x16_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_1D_last_index/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_2D_default.cairo b/tests/nodes/argmax_fp16x16_2D_default.cairo index cacc73f3b..754dd2119 100644 --- a/tests/nodes/argmax_fp16x16_2D_default.cairo +++ b/tests/nodes/argmax_fp16x16_2D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo b/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo index ca89b361d..ce1b11cae 100644 --- a/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo b/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo index 03e4272da..a550af121 100644 --- a/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo b/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo index cdd071698..32fa5de64 100644 --- a/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp16x16_2D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_2D_keepdims_false/input_0.cairo b/tests/nodes/argmax_fp16x16_2D_keepdims_false/input_0.cairo index 59eb88a9e..906f29fff 100644 --- a/tests/nodes/argmax_fp16x16_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_2D_keepdims_false/output_0.cairo b/tests/nodes/argmax_fp16x16_2D_keepdims_false/output_0.cairo index 60d86b990..2fe75c127 100644 --- a/tests/nodes/argmax_fp16x16_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,6 +8,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_2D_last_index.cairo b/tests/nodes/argmax_fp16x16_2D_last_index.cairo index f842a1d59..3c0061e3e 100644 --- a/tests/nodes/argmax_fp16x16_2D_last_index.cairo +++ b/tests/nodes/argmax_fp16x16_2D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_2D_last_index/input_0.cairo b/tests/nodes/argmax_fp16x16_2D_last_index/input_0.cairo index 603a5662b..708f630e3 100644 --- a/tests/nodes/argmax_fp16x16_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_2D_last_index/output_0.cairo b/tests/nodes/argmax_fp16x16_2D_last_index/output_0.cairo index 96c5ee26d..a550af121 100644 --- a/tests/nodes/argmax_fp16x16_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +9,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_3D_default.cairo b/tests/nodes/argmax_fp16x16_3D_default.cairo index 5fb555efa..b7efa083b 100644 --- a/tests/nodes/argmax_fp16x16_3D_default.cairo +++ b/tests/nodes/argmax_fp16x16_3D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo b/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo index 2652d4391..d2f4ba6a0 100644 --- a/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo b/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo index e7d5e2e20..03945682b 100644 --- a/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,6 +12,6 @@ fn output_0() -> Tensor { data.append(1); data.append(0); data.append(1); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo b/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo index 47dbdbabb..dfd529ffb 100644 --- a/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp16x16_3D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_3D_keepdims_false/input_0.cairo b/tests/nodes/argmax_fp16x16_3D_keepdims_false/input_0.cairo index bb3e1dd69..392ed4928 100644 --- a/tests/nodes/argmax_fp16x16_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_3D_keepdims_false/output_0.cairo b/tests/nodes/argmax_fp16x16_3D_keepdims_false/output_0.cairo index 6bcb5ce4a..825125d8a 100644 --- a/tests/nodes/argmax_fp16x16_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(1); - data.append(1); - data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_3D_last_index.cairo b/tests/nodes/argmax_fp16x16_3D_last_index.cairo index 668340d76..72b0e2642 100644 --- a/tests/nodes/argmax_fp16x16_3D_last_index.cairo +++ b/tests/nodes/argmax_fp16x16_3D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp16x16_3D_last_index/input_0.cairo b/tests/nodes/argmax_fp16x16_3D_last_index/input_0.cairo index 8560dcbf6..50ac50fc8 100644 --- a/tests/nodes/argmax_fp16x16_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 458752, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp16x16_3D_last_index/output_0.cairo b/tests/nodes/argmax_fp16x16_3D_last_index/output_0.cairo index a027e8e44..9c34c6139 100644 --- a/tests/nodes/argmax_fp16x16_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp16x16_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/argmax_fp8x23_1D_default.cairo b/tests/nodes/argmax_fp8x23_1D_default.cairo index b34c394c1..022e60b2f 100644 --- a/tests/nodes/argmax_fp8x23_1D_default.cairo +++ b/tests/nodes/argmax_fp8x23_1D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo b/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo index f3c01a659..96ca7af0a 100644 --- a/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_default/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo b/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo index b37eb7383..e4dbc507c 100644 --- a/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo b/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo index de250c355..cb6cea94f 100644 --- a/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp8x23_1D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_1D_keepdims_false/input_0.cairo b/tests/nodes/argmax_fp8x23_1D_keepdims_false/input_0.cairo index 236268e17..35f085f6e 100644 --- a/tests/nodes/argmax_fp8x23_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_keepdims_false/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_1D_keepdims_false/output_0.cairo b/tests/nodes/argmax_fp8x23_1D_keepdims_false/output_0.cairo index 31cebe9de..23846d97b 100644 --- a/tests/nodes/argmax_fp8x23_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_keepdims_false/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_1D_last_index.cairo b/tests/nodes/argmax_fp8x23_1D_last_index.cairo index 48670b47b..e2a7f0985 100644 --- a/tests/nodes/argmax_fp8x23_1D_last_index.cairo +++ b/tests/nodes/argmax_fp8x23_1D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_1D_last_index/input_0.cairo b/tests/nodes/argmax_fp8x23_1D_last_index/input_0.cairo index e4292fa23..7613acbd4 100644 --- a/tests/nodes/argmax_fp8x23_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_last_index/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_1D_last_index/output_0.cairo b/tests/nodes/argmax_fp8x23_1D_last_index/output_0.cairo index 4a377d050..23846d97b 100644 --- a/tests/nodes/argmax_fp8x23_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_1D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_fp8x23_2D_default.cairo b/tests/nodes/argmax_fp8x23_2D_default.cairo index d99ca0bfd..0e474f982 100644 --- a/tests/nodes/argmax_fp8x23_2D_default.cairo +++ b/tests/nodes/argmax_fp8x23_2D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo b/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo index 55f662a32..d3ddea114 100644 --- a/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo b/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo index f7286dbbb..a550af121 100644 --- a/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo b/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo index 3a606d140..40fe14c02 100644 --- a/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp8x23_2D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_2D_keepdims_false/input_0.cairo b/tests/nodes/argmax_fp8x23_2D_keepdims_false/input_0.cairo index a307f7256..efb3441d3 100644 --- a/tests/nodes/argmax_fp8x23_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_2D_keepdims_false/output_0.cairo b/tests/nodes/argmax_fp8x23_2D_keepdims_false/output_0.cairo index 321c81958..edc68637b 100644 --- a/tests/nodes/argmax_fp8x23_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,6 +8,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_2D_last_index.cairo b/tests/nodes/argmax_fp8x23_2D_last_index.cairo index d45a8ef7d..05510e4f2 100644 --- a/tests/nodes/argmax_fp8x23_2D_last_index.cairo +++ b/tests/nodes/argmax_fp8x23_2D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_2D_last_index/input_0.cairo b/tests/nodes/argmax_fp8x23_2D_last_index/input_0.cairo index ae97871c0..be2e02d4c 100644 --- a/tests/nodes/argmax_fp8x23_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_2D_last_index/output_0.cairo b/tests/nodes/argmax_fp8x23_2D_last_index/output_0.cairo index 96c5ee26d..a550af121 100644 --- a/tests/nodes/argmax_fp8x23_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +9,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_3D_default.cairo b/tests/nodes/argmax_fp8x23_3D_default.cairo index 4a547583d..4ca1b45c4 100644 --- a/tests/nodes/argmax_fp8x23_3D_default.cairo +++ b/tests/nodes/argmax_fp8x23_3D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo b/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo index c63201618..4512a7d3c 100644 --- a/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo b/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo index 9eabbe2ba..07cf1b47e 100644 --- a/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,7 +11,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(1); - data.append(1); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo b/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo index 25285d9ab..4d5a5b850 100644 --- a/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_fp8x23_3D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_3D_keepdims_false/input_0.cairo b/tests/nodes/argmax_fp8x23_3D_keepdims_false/input_0.cairo index f327128a9..a7ac816c9 100644 --- a/tests/nodes/argmax_fp8x23_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_3D_keepdims_false/output_0.cairo b/tests/nodes/argmax_fp8x23_3D_keepdims_false/output_0.cairo index eb0deaedb..637e10c01 100644 --- a/tests/nodes/argmax_fp8x23_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); - data.append(1); - data.append(1); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_3D_last_index.cairo b/tests/nodes/argmax_fp8x23_3D_last_index.cairo index 97bf7d4b2..856fbd988 100644 --- a/tests/nodes/argmax_fp8x23_3D_last_index.cairo +++ b/tests/nodes/argmax_fp8x23_3D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_fp8x23_3D_last_index/input_0.cairo b/tests/nodes/argmax_fp8x23_3D_last_index/input_0.cairo index 3bd4d132f..42b2e25d0 100644 --- a/tests/nodes/argmax_fp8x23_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_fp8x23_3D_last_index/output_0.cairo b/tests/nodes/argmax_fp8x23_3D_last_index/output_0.cairo index faaf6ccbe..e35cd05a2 100644 --- a/tests/nodes/argmax_fp8x23_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_fp8x23_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,7 +11,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(1); - data.append(0); data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_1D_default.cairo b/tests/nodes/argmax_i32_1D_default.cairo index eaf42f034..7846917bd 100644 --- a/tests/nodes/argmax_i32_1D_default.cairo +++ b/tests/nodes/argmax_i32_1D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_1D_default/input_0.cairo b/tests/nodes/argmax_i32_1D_default/input_0.cairo index 456dcc7b2..97fbd451a 100644 --- a/tests/nodes/argmax_i32_1D_default/input_0.cairo +++ b/tests/nodes/argmax_i32_1D_default/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 108, sign: false }); + data.append(-54); + data.append(29); + data.append(81); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_1D_default/output_0.cairo b/tests/nodes/argmax_i32_1D_default/output_0.cairo index 31cebe9de..23846d97b 100644 --- a/tests/nodes/argmax_i32_1D_default/output_0.cairo +++ b/tests/nodes/argmax_i32_1D_default/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_1D_keepdims_false.cairo b/tests/nodes/argmax_i32_1D_keepdims_false.cairo index 599b4d6ea..9649435c7 100644 --- a/tests/nodes/argmax_i32_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_i32_1D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_1D_keepdims_false/input_0.cairo b/tests/nodes/argmax_i32_1D_keepdims_false/input_0.cairo index 1bdc98cb2..7a2414371 100644 --- a/tests/nodes/argmax_i32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i32_1D_keepdims_false/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 92, sign: true }); + data.append(-69); + data.append(51); + data.append(-49); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_1D_keepdims_false/output_0.cairo b/tests/nodes/argmax_i32_1D_keepdims_false/output_0.cairo index b37eb7383..f59edfe99 100644 --- a/tests/nodes/argmax_i32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i32_1D_keepdims_false/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_1D_last_index.cairo b/tests/nodes/argmax_i32_1D_last_index.cairo index 9ea51f605..94f533be6 100644 --- a/tests/nodes/argmax_i32_1D_last_index.cairo +++ b/tests/nodes/argmax_i32_1D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_1D_last_index/input_0.cairo b/tests/nodes/argmax_i32_1D_last_index/input_0.cairo index 1ec41a67b..fa967cdc9 100644 --- a/tests/nodes/argmax_i32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i32_1D_last_index/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 232, sign: false }); - data.append(i32 { mag: 204, sign: false }); - data.append(i32 { mag: 189, sign: false }); + data.append(135); + data.append(148); + data.append(67); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_1D_last_index/output_0.cairo b/tests/nodes/argmax_i32_1D_last_index/output_0.cairo index b37eb7383..f59edfe99 100644 --- a/tests/nodes/argmax_i32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i32_1D_last_index/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_2D_default.cairo b/tests/nodes/argmax_i32_2D_default.cairo index 4376bdfb2..1d8e4b3f7 100644 --- a/tests/nodes/argmax_i32_2D_default.cairo +++ b/tests/nodes/argmax_i32_2D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_2D_default/input_0.cairo b/tests/nodes/argmax_i32_2D_default/input_0.cairo index 8cac2beed..92434e2c9 100644 --- a/tests/nodes/argmax_i32_2D_default/input_0.cairo +++ b/tests/nodes/argmax_i32_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 103, sign: true }); + data.append(-27); + data.append(114); + data.append(-54); + data.append(-100); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_2D_default/output_0.cairo b/tests/nodes/argmax_i32_2D_default/output_0.cairo index 96c5ee26d..e072284af 100644 --- a/tests/nodes/argmax_i32_2D_default/output_0.cairo +++ b/tests/nodes/argmax_i32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_i32_2D_keepdims_false.cairo b/tests/nodes/argmax_i32_2D_keepdims_false.cairo index 33004e5d4..6e5372c2b 100644 --- a/tests/nodes/argmax_i32_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_i32_2D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_2D_keepdims_false/input_0.cairo b/tests/nodes/argmax_i32_2D_keepdims_false/input_0.cairo index 28f83b1b8..4b1340a16 100644 --- a/tests/nodes/argmax_i32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i32_2D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 108, sign: false }); + data.append(15); + data.append(57); + data.append(-83); + data.append(13); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_2D_keepdims_false/output_0.cairo b/tests/nodes/argmax_i32_2D_keepdims_false/output_0.cairo index 321c81958..4870d2de9 100644 --- a/tests/nodes/argmax_i32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i32_2D_keepdims_false/output_0.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_2D_last_index.cairo b/tests/nodes/argmax_i32_2D_last_index.cairo index b0e0dcfd5..5d734d434 100644 --- a/tests/nodes/argmax_i32_2D_last_index.cairo +++ b/tests/nodes/argmax_i32_2D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_2D_last_index/input_0.cairo b/tests/nodes/argmax_i32_2D_last_index/input_0.cairo index 15c17716b..f06f44db7 100644 --- a/tests/nodes/argmax_i32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i32_2D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 127, sign: true }); + data.append(-31); + data.append(-9); + data.append(-103); + data.append(-88); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_2D_last_index/output_0.cairo b/tests/nodes/argmax_i32_2D_last_index/output_0.cairo index 5603a4cbe..e072284af 100644 --- a/tests/nodes/argmax_i32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i32_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_3D_default.cairo b/tests/nodes/argmax_i32_3D_default.cairo index 918f21490..0f1088869 100644 --- a/tests/nodes/argmax_i32_3D_default.cairo +++ b/tests/nodes/argmax_i32_3D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_3D_default/input_0.cairo b/tests/nodes/argmax_i32_3D_default/input_0.cairo index 9325c3902..142afb3c3 100644 --- a/tests/nodes/argmax_i32_3D_default/input_0.cairo +++ b/tests/nodes/argmax_i32_3D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 70, sign: true }); + data.append(-56); + data.append(46); + data.append(-48); + data.append(91); + data.append(-70); + data.append(-54); + data.append(96); + data.append(122); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_3D_default/output_0.cairo b/tests/nodes/argmax_i32_3D_default/output_0.cairo index cb26295db..a4cc4f838 100644 --- a/tests/nodes/argmax_i32_3D_default/output_0.cairo +++ b/tests/nodes/argmax_i32_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +10,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(1); - data.append(0); data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_3D_keepdims_false.cairo b/tests/nodes/argmax_i32_3D_keepdims_false.cairo index d11dd0605..8aac46a2c 100644 --- a/tests/nodes/argmax_i32_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_i32_3D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_3D_keepdims_false/input_0.cairo b/tests/nodes/argmax_i32_3D_keepdims_false/input_0.cairo index dc5e3cff1..5a61a206a 100644 --- a/tests/nodes/argmax_i32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i32_3D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 124, sign: true }); + data.append(-121); + data.append(-114); + data.append(56); + data.append(42); + data.append(79); + data.append(43); + data.append(126); + data.append(-64); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_3D_keepdims_false/output_0.cairo b/tests/nodes/argmax_i32_3D_keepdims_false/output_0.cairo index 5f2035f24..1d637338a 100644 --- a/tests/nodes/argmax_i32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i32_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); - data.append(0); + data.append(1); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_3D_last_index.cairo b/tests/nodes/argmax_i32_3D_last_index.cairo index b5a084dfe..81f4997de 100644 --- a/tests/nodes/argmax_i32_3D_last_index.cairo +++ b/tests/nodes/argmax_i32_3D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i32_3D_last_index/input_0.cairo b/tests/nodes/argmax_i32_3D_last_index/input_0.cairo index 48f835d82..c5d8bc74e 100644 --- a/tests/nodes/argmax_i32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i32_3D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 110, sign: false }); + data.append(98); + data.append(89); + data.append(-126); + data.append(-68); + data.append(31); + data.append(7); + data.append(-86); + data.append(99); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i32_3D_last_index/output_0.cairo b/tests/nodes/argmax_i32_3D_last_index/output_0.cairo index 7db2dbebd..a4cc4f838 100644 --- a/tests/nodes/argmax_i32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i32_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(0); data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_1D_default.cairo b/tests/nodes/argmax_i8_1D_default.cairo index bfc732316..5fd40f6b5 100644 --- a/tests/nodes/argmax_i8_1D_default.cairo +++ b/tests/nodes/argmax_i8_1D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_1D_default/input_0.cairo b/tests/nodes/argmax_i8_1D_default/input_0.cairo index 54fa23142..d760a1faa 100644 --- a/tests/nodes/argmax_i8_1D_default/input_0.cairo +++ b/tests/nodes/argmax_i8_1D_default/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 77, sign: true }); + data.append(6); + data.append(-60); + data.append(-123); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_1D_default/output_0.cairo b/tests/nodes/argmax_i8_1D_default/output_0.cairo index b37eb7383..e4dbc507c 100644 --- a/tests/nodes/argmax_i8_1D_default/output_0.cairo +++ b/tests/nodes/argmax_i8_1D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_i8_1D_keepdims_false.cairo b/tests/nodes/argmax_i8_1D_keepdims_false.cairo index cea1c3a7c..9fa8ef88c 100644 --- a/tests/nodes/argmax_i8_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_i8_1D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_1D_keepdims_false/input_0.cairo b/tests/nodes/argmax_i8_1D_keepdims_false/input_0.cairo index eb4f1a4d9..fdfdf6ff4 100644 --- a/tests/nodes/argmax_i8_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i8_1D_keepdims_false/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 52, sign: true }); + data.append(-68); + data.append(56); + data.append(-126); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_1D_keepdims_false/output_0.cairo b/tests/nodes/argmax_i8_1D_keepdims_false/output_0.cairo index b37eb7383..f59edfe99 100644 --- a/tests/nodes/argmax_i8_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i8_1D_keepdims_false/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_1D_last_index.cairo b/tests/nodes/argmax_i8_1D_last_index.cairo index 284987163..54ccb82f9 100644 --- a/tests/nodes/argmax_i8_1D_last_index.cairo +++ b/tests/nodes/argmax_i8_1D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_1D_last_index/input_0.cairo b/tests/nodes/argmax_i8_1D_last_index/input_0.cairo index c0d04bd2a..262a8306c 100644 --- a/tests/nodes/argmax_i8_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i8_1D_last_index/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 63, sign: true }); + data.append(111); + data.append(84); + data.append(-120); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_1D_last_index/output_0.cairo b/tests/nodes/argmax_i8_1D_last_index/output_0.cairo index b37eb7383..e4dbc507c 100644 --- a/tests/nodes/argmax_i8_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i8_1D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_i8_2D_default.cairo b/tests/nodes/argmax_i8_2D_default.cairo index 744927b4b..dc0a71e4e 100644 --- a/tests/nodes/argmax_i8_2D_default.cairo +++ b/tests/nodes/argmax_i8_2D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_2D_default/input_0.cairo b/tests/nodes/argmax_i8_2D_default/input_0.cairo index 164a3db90..9aa9650c7 100644 --- a/tests/nodes/argmax_i8_2D_default/input_0.cairo +++ b/tests/nodes/argmax_i8_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 123, sign: true }); + data.append(-8); + data.append(-67); + data.append(-22); + data.append(99); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_2D_default/output_0.cairo b/tests/nodes/argmax_i8_2D_default/output_0.cairo index 5603a4cbe..a550af121 100644 --- a/tests/nodes/argmax_i8_2D_default/output_0.cairo +++ b/tests/nodes/argmax_i8_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_2D_keepdims_false.cairo b/tests/nodes/argmax_i8_2D_keepdims_false.cairo index 763c54db7..a56d67f01 100644 --- a/tests/nodes/argmax_i8_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_i8_2D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_2D_keepdims_false/input_0.cairo b/tests/nodes/argmax_i8_2D_keepdims_false/input_0.cairo index 5af9757df..373558d6e 100644 --- a/tests/nodes/argmax_i8_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i8_2D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 66, sign: false }); + data.append(25); + data.append(-120); + data.append(-2); + data.append(105); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_2D_keepdims_false/output_0.cairo b/tests/nodes/argmax_i8_2D_keepdims_false/output_0.cairo index 1e01eb240..2fe75c127 100644 --- a/tests/nodes/argmax_i8_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i8_2D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_i8_2D_last_index.cairo b/tests/nodes/argmax_i8_2D_last_index.cairo index b54760a2e..1574a72f7 100644 --- a/tests/nodes/argmax_i8_2D_last_index.cairo +++ b/tests/nodes/argmax_i8_2D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_2D_last_index/input_0.cairo b/tests/nodes/argmax_i8_2D_last_index/input_0.cairo index 8e4e37bd0..051786fb8 100644 --- a/tests/nodes/argmax_i8_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i8_2D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 15, sign: false }); + data.append(-73); + data.append(111); + data.append(47); + data.append(-18); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_2D_last_index/output_0.cairo b/tests/nodes/argmax_i8_2D_last_index/output_0.cairo index f7286dbbb..221e8a246 100644 --- a/tests/nodes/argmax_i8_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i8_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_3D_default.cairo b/tests/nodes/argmax_i8_3D_default.cairo index e64a24d41..eaf92eae5 100644 --- a/tests/nodes/argmax_i8_3D_default.cairo +++ b/tests/nodes/argmax_i8_3D_default.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_3D_default/input_0.cairo b/tests/nodes/argmax_i8_3D_default/input_0.cairo index ae0aa6d42..cc96b52ca 100644 --- a/tests/nodes/argmax_i8_3D_default/input_0.cairo +++ b/tests/nodes/argmax_i8_3D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 49, sign: false }); + data.append(66); + data.append(-56); + data.append(49); + data.append(-2); + data.append(-93); + data.append(-55); + data.append(115); + data.append(28); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_3D_default/output_0.cairo b/tests/nodes/argmax_i8_3D_default/output_0.cairo index 5f4080377..56d0d331d 100644 --- a/tests/nodes/argmax_i8_3D_default/output_0.cairo +++ b/tests/nodes/argmax_i8_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); + data.append(1); data.append(1); data.append(1); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/argmax_i8_3D_keepdims_false.cairo b/tests/nodes/argmax_i8_3D_keepdims_false.cairo index 0c9719853..3b3f3c10c 100644 --- a/tests/nodes/argmax_i8_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_i8_3D_keepdims_false.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_3D_keepdims_false/input_0.cairo b/tests/nodes/argmax_i8_3D_keepdims_false/input_0.cairo index 46eac779a..f6de84eca 100644 --- a/tests/nodes/argmax_i8_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_i8_3D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 39, sign: false }); + data.append(82); + data.append(70); + data.append(-18); + data.append(-46); + data.append(-4); + data.append(82); + data.append(58); + data.append(-41); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_3D_keepdims_false/output_0.cairo b/tests/nodes/argmax_i8_3D_keepdims_false/output_0.cairo index 226ba2d48..f13678224 100644 --- a/tests/nodes/argmax_i8_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_i8_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(1); - data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_3D_last_index.cairo b/tests/nodes/argmax_i8_3D_last_index.cairo index 3b6761752..cd460d7c2 100644 --- a/tests/nodes/argmax_i8_3D_last_index.cairo +++ b/tests/nodes/argmax_i8_3D_last_index.cairo @@ -3,10 +3,12 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_i8_3D_last_index/input_0.cairo b/tests/nodes/argmax_i8_3D_last_index/input_0.cairo index 5d10e3e1a..a665d1534 100644 --- a/tests/nodes/argmax_i8_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_i8_3D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 87, sign: false }); + data.append(-7); + data.append(-94); + data.append(-64); + data.append(-19); + data.append(59); + data.append(-40); + data.append(99); + data.append(38); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_i8_3D_last_index/output_0.cairo b/tests/nodes/argmax_i8_3D_last_index/output_0.cairo index 9eabbe2ba..23b7ccc3c 100644 --- a/tests/nodes/argmax_i8_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_i8_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +9,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); data.append(1); data.append(1); data.append(1); diff --git a/tests/nodes/argmax_u32_1D_default.cairo b/tests/nodes/argmax_u32_1D_default.cairo index dff56c590..f8bf64a5b 100644 --- a/tests/nodes/argmax_u32_1D_default.cairo +++ b/tests/nodes/argmax_u32_1D_default.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_1D_default/input_0.cairo b/tests/nodes/argmax_u32_1D_default/input_0.cairo index 59504741b..d02f0a9a5 100644 --- a/tests/nodes/argmax_u32_1D_default/input_0.cairo +++ b/tests/nodes/argmax_u32_1D_default/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(22); - data.append(149); - data.append(157); + data.append(244); + data.append(135); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_1D_default/output_0.cairo b/tests/nodes/argmax_u32_1D_default/output_0.cairo index 4a377d050..e4dbc507c 100644 --- a/tests/nodes/argmax_u32_1D_default/output_0.cairo +++ b/tests/nodes/argmax_u32_1D_default/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_1D_keepdims_false.cairo b/tests/nodes/argmax_u32_1D_keepdims_false.cairo index 9494acb75..aa6555d1c 100644 --- a/tests/nodes/argmax_u32_1D_keepdims_false.cairo +++ b/tests/nodes/argmax_u32_1D_keepdims_false.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_1D_keepdims_false/input_0.cairo b/tests/nodes/argmax_u32_1D_keepdims_false/input_0.cairo index b87a17d2e..161945ea0 100644 --- a/tests/nodes/argmax_u32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_u32_1D_keepdims_false/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(159); - data.append(31); - data.append(202); + data.append(89); + data.append(33); + data.append(140); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_1D_keepdims_false/output_0.cairo b/tests/nodes/argmax_u32_1D_keepdims_false/output_0.cairo index 4a377d050..23846d97b 100644 --- a/tests/nodes/argmax_u32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_u32_1D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmax_u32_1D_last_index.cairo b/tests/nodes/argmax_u32_1D_last_index.cairo index 87bc93a0e..e6ad1f332 100644 --- a/tests/nodes/argmax_u32_1D_last_index.cairo +++ b/tests/nodes/argmax_u32_1D_last_index.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_1D_last_index/input_0.cairo b/tests/nodes/argmax_u32_1D_last_index/input_0.cairo index c1c9c5c67..caad0d75f 100644 --- a/tests/nodes/argmax_u32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmax_u32_1D_last_index/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(177); - data.append(78); - data.append(187); + data.append(63); + data.append(40); + data.append(22); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_1D_last_index/output_0.cairo b/tests/nodes/argmax_u32_1D_last_index/output_0.cairo index 4a377d050..e4dbc507c 100644 --- a/tests/nodes/argmax_u32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmax_u32_1D_last_index/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_2D_default.cairo b/tests/nodes/argmax_u32_2D_default.cairo index 365021433..9c9a285bd 100644 --- a/tests/nodes/argmax_u32_2D_default.cairo +++ b/tests/nodes/argmax_u32_2D_default.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_2D_default/input_0.cairo b/tests/nodes/argmax_u32_2D_default/input_0.cairo index 83866d960..e6678379b 100644 --- a/tests/nodes/argmax_u32_2D_default/input_0.cairo +++ b/tests/nodes/argmax_u32_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(208); - data.append(4); - data.append(108); - data.append(60); + data.append(51); + data.append(202); + data.append(164); + data.append(83); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_2D_default/output_0.cairo b/tests/nodes/argmax_u32_2D_default/output_0.cairo index f7286dbbb..221e8a246 100644 --- a/tests/nodes/argmax_u32_2D_default/output_0.cairo +++ b/tests/nodes/argmax_u32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_2D_keepdims_false.cairo b/tests/nodes/argmax_u32_2D_keepdims_false.cairo index 4d4f9c55f..8bfa99454 100644 --- a/tests/nodes/argmax_u32_2D_keepdims_false.cairo +++ b/tests/nodes/argmax_u32_2D_keepdims_false.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_2D_keepdims_false/input_0.cairo b/tests/nodes/argmax_u32_2D_keepdims_false/input_0.cairo index c913f746a..19a457838 100644 --- a/tests/nodes/argmax_u32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_u32_2D_keepdims_false/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(229); - data.append(129); - data.append(171); - data.append(10); + data.append(207); + data.append(36); + data.append(209); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_2D_keepdims_false/output_0.cairo b/tests/nodes/argmax_u32_2D_keepdims_false/output_0.cairo index 60d86b990..edc68637b 100644 --- a/tests/nodes/argmax_u32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_u32_2D_keepdims_false/output_0.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_2D_last_index.cairo b/tests/nodes/argmax_u32_2D_last_index.cairo index 909ed6af1..60b70f828 100644 --- a/tests/nodes/argmax_u32_2D_last_index.cairo +++ b/tests/nodes/argmax_u32_2D_last_index.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_2D_last_index/input_0.cairo b/tests/nodes/argmax_u32_2D_last_index/input_0.cairo index d6950965a..0f577ecf4 100644 --- a/tests/nodes/argmax_u32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmax_u32_2D_last_index/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(162); - data.append(67); - data.append(147); - data.append(150); + data.append(41); + data.append(93); + data.append(233); + data.append(71); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_2D_last_index/output_0.cairo b/tests/nodes/argmax_u32_2D_last_index/output_0.cairo index f7286dbbb..221e8a246 100644 --- a/tests/nodes/argmax_u32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmax_u32_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_3D_default.cairo b/tests/nodes/argmax_u32_3D_default.cairo index f33134529..f9f47d2fd 100644 --- a/tests/nodes/argmax_u32_3D_default.cairo +++ b/tests/nodes/argmax_u32_3D_default.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_3D_default/input_0.cairo b/tests/nodes/argmax_u32_3D_default/input_0.cairo index 117291e8f..83343807d 100644 --- a/tests/nodes/argmax_u32_3D_default/input_0.cairo +++ b/tests/nodes/argmax_u32_3D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(113); - data.append(207); - data.append(34); - data.append(249); - data.append(186); - data.append(56); - data.append(153); - data.append(92); + data.append(22); + data.append(254); + data.append(48); + data.append(151); + data.append(21); + data.append(13); + data.append(254); + data.append(100); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_3D_default/output_0.cairo b/tests/nodes/argmax_u32_3D_default/output_0.cairo index 06e4b054c..e3da7dd7d 100644 --- a/tests/nodes/argmax_u32_3D_default/output_0.cairo +++ b/tests/nodes/argmax_u32_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +9,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(0); data.append(1); data.append(0); diff --git a/tests/nodes/argmax_u32_3D_keepdims_false.cairo b/tests/nodes/argmax_u32_3D_keepdims_false.cairo index 028b85010..7ee7d2aad 100644 --- a/tests/nodes/argmax_u32_3D_keepdims_false.cairo +++ b/tests/nodes/argmax_u32_3D_keepdims_false.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_3D_keepdims_false/input_0.cairo b/tests/nodes/argmax_u32_3D_keepdims_false/input_0.cairo index 53bd183d8..4842ff00c 100644 --- a/tests/nodes/argmax_u32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmax_u32_3D_keepdims_false/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(37); - data.append(156); - data.append(115); - data.append(212); - data.append(45); - data.append(237); - data.append(24); - data.append(136); + data.append(183); + data.append(138); + data.append(72); + data.append(104); + data.append(239); + data.append(185); + data.append(16); + data.append(188); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_3D_keepdims_false/output_0.cairo b/tests/nodes/argmax_u32_3D_keepdims_false/output_0.cairo index e9d17d59b..15d30cb7a 100644 --- a/tests/nodes/argmax_u32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmax_u32_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +11,6 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_3D_last_index.cairo b/tests/nodes/argmax_u32_3D_last_index.cairo index 988dbae36..8098105e1 100644 --- a/tests/nodes/argmax_u32_3D_last_index.cairo +++ b/tests/nodes/argmax_u32_3D_last_index.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmax_u32_3D_last_index/input_0.cairo b/tests/nodes/argmax_u32_3D_last_index/input_0.cairo index 86a06d354..2a464efd3 100644 --- a/tests/nodes/argmax_u32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmax_u32_3D_last_index/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(39); - data.append(86); - data.append(127); - data.append(185); - data.append(36); - data.append(197); - data.append(160); - data.append(37); + data.append(9); + data.append(169); + data.append(140); + data.append(99); + data.append(130); + data.append(132); + data.append(79); + data.append(57); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmax_u32_3D_last_index/output_0.cairo b/tests/nodes/argmax_u32_3D_last_index/output_0.cairo index 30eec9d73..217f9ee86 100644 --- a/tests/nodes/argmax_u32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmax_u32_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_1D_default.cairo b/tests/nodes/argmin_fp16x16_1D_default.cairo index 59e920f88..37d42e1f0 100644 --- a/tests/nodes/argmin_fp16x16_1D_default.cairo +++ b/tests/nodes/argmin_fp16x16_1D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo b/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo index 88e23f8bd..3da560c38 100644 --- a/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_default/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo b/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo index b37eb7383..f59edfe99 100644 --- a/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_default/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo b/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo index e9f8f87b5..2506b9e77 100644 --- a/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp16x16_1D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_1D_keepdims_false/input_0.cairo b/tests/nodes/argmin_fp16x16_1D_keepdims_false/input_0.cairo index ec822985e..d5d3f8659 100644 --- a/tests/nodes/argmin_fp16x16_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_keepdims_false/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_1D_keepdims_false/output_0.cairo b/tests/nodes/argmin_fp16x16_1D_keepdims_false/output_0.cairo index 4a377d050..23846d97b 100644 --- a/tests/nodes/argmin_fp16x16_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_fp16x16_1D_last_index.cairo b/tests/nodes/argmin_fp16x16_1D_last_index.cairo index c0cd81d82..bdd83f17d 100644 --- a/tests/nodes/argmin_fp16x16_1D_last_index.cairo +++ b/tests/nodes/argmin_fp16x16_1D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_1D_last_index/input_0.cairo b/tests/nodes/argmin_fp16x16_1D_last_index/input_0.cairo index 17716af8c..814df2561 100644 --- a/tests/nodes/argmin_fp16x16_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_last_index/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_1D_last_index/output_0.cairo b/tests/nodes/argmin_fp16x16_1D_last_index/output_0.cairo index 31cebe9de..23846d97b 100644 --- a/tests/nodes/argmin_fp16x16_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_1D_last_index/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_2D_default.cairo b/tests/nodes/argmin_fp16x16_2D_default.cairo index efcc4f4ae..b04e5199b 100644 --- a/tests/nodes/argmin_fp16x16_2D_default.cairo +++ b/tests/nodes/argmin_fp16x16_2D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo b/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo index 142b1ab11..463b22d95 100644 --- a/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo b/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo index 03e4272da..a550af121 100644 --- a/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo b/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo index 2f7ca7bcd..3c0b707a0 100644 --- a/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp16x16_2D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_2D_keepdims_false/input_0.cairo b/tests/nodes/argmin_fp16x16_2D_keepdims_false/input_0.cairo index 7aef82048..dfad7575c 100644 --- a/tests/nodes/argmin_fp16x16_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_2D_keepdims_false/output_0.cairo b/tests/nodes/argmin_fp16x16_2D_keepdims_false/output_0.cairo index 321c81958..4e74a093f 100644 --- a/tests/nodes/argmin_fp16x16_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_fp16x16_2D_last_index.cairo b/tests/nodes/argmin_fp16x16_2D_last_index.cairo index dcca71d98..743ad87c6 100644 --- a/tests/nodes/argmin_fp16x16_2D_last_index.cairo +++ b/tests/nodes/argmin_fp16x16_2D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_2D_last_index/input_0.cairo b/tests/nodes/argmin_fp16x16_2D_last_index/input_0.cairo index 88085a113..ec7ad1ff5 100644 --- a/tests/nodes/argmin_fp16x16_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_2D_last_index/output_0.cairo b/tests/nodes/argmin_fp16x16_2D_last_index/output_0.cairo index f7286dbbb..221e8a246 100644 --- a/tests/nodes/argmin_fp16x16_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_3D_default.cairo b/tests/nodes/argmin_fp16x16_3D_default.cairo index 1a4a11bf4..57ec21b16 100644 --- a/tests/nodes/argmin_fp16x16_3D_default.cairo +++ b/tests/nodes/argmin_fp16x16_3D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo b/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo index e17bb41dc..766e76ac5 100644 --- a/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo b/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo index 4be3b6c2c..6027327cd 100644 --- a/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +10,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); - data.append(0); data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo b/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo index 84065859a..6ff659b86 100644 --- a/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp16x16_3D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_3D_keepdims_false/input_0.cairo b/tests/nodes/argmin_fp16x16_3D_keepdims_false/input_0.cairo index 537887b29..399e98e18 100644 --- a/tests/nodes/argmin_fp16x16_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_3D_keepdims_false/output_0.cairo b/tests/nodes/argmin_fp16x16_3D_keepdims_false/output_0.cairo index fd76eea05..1d637338a 100644 --- a/tests/nodes/argmin_fp16x16_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); data.append(1); data.append(1); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_3D_last_index.cairo b/tests/nodes/argmin_fp16x16_3D_last_index.cairo index 27bda209b..81334453b 100644 --- a/tests/nodes/argmin_fp16x16_3D_last_index.cairo +++ b/tests/nodes/argmin_fp16x16_3D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp16x16_3D_last_index/input_0.cairo b/tests/nodes/argmin_fp16x16_3D_last_index/input_0.cairo index 6b8e09078..53b2fbe47 100644 --- a/tests/nodes/argmin_fp16x16_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp16x16_3D_last_index/output_0.cairo b/tests/nodes/argmin_fp16x16_3D_last_index/output_0.cairo index 9eabbe2ba..9c34c6139 100644 --- a/tests/nodes/argmin_fp16x16_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp16x16_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); data.append(1); data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_1D_default.cairo b/tests/nodes/argmin_fp8x23_1D_default.cairo index e83185b89..2e69d8778 100644 --- a/tests/nodes/argmin_fp8x23_1D_default.cairo +++ b/tests/nodes/argmin_fp8x23_1D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo b/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo index 04078f69d..ce169722b 100644 --- a/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_default/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo b/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo index 4a377d050..e4dbc507c 100644 --- a/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_default/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo b/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo index 70228e8f7..d40d7633d 100644 --- a/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp8x23_1D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_1D_keepdims_false/input_0.cairo b/tests/nodes/argmin_fp8x23_1D_keepdims_false/input_0.cairo index d2ffe2461..02d88b9ff 100644 --- a/tests/nodes/argmin_fp8x23_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_keepdims_false/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_1D_keepdims_false/output_0.cairo b/tests/nodes/argmin_fp8x23_1D_keepdims_false/output_0.cairo index 31cebe9de..e4dbc507c 100644 --- a/tests/nodes/argmin_fp8x23_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_keepdims_false/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_1D_last_index.cairo b/tests/nodes/argmin_fp8x23_1D_last_index.cairo index d7519f28b..b684fb620 100644 --- a/tests/nodes/argmin_fp8x23_1D_last_index.cairo +++ b/tests/nodes/argmin_fp8x23_1D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_1D_last_index/input_0.cairo b/tests/nodes/argmin_fp8x23_1D_last_index/input_0.cairo index c5722b902..75adc7c86 100644 --- a/tests/nodes/argmin_fp8x23_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_last_index/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: true }); data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_1D_last_index/output_0.cairo b/tests/nodes/argmin_fp8x23_1D_last_index/output_0.cairo index 31cebe9de..e4dbc507c 100644 --- a/tests/nodes/argmin_fp8x23_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_1D_last_index/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_2D_default.cairo b/tests/nodes/argmin_fp8x23_2D_default.cairo index d63d30d79..f2a27b62e 100644 --- a/tests/nodes/argmin_fp8x23_2D_default.cairo +++ b/tests/nodes/argmin_fp8x23_2D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo b/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo index 56b592549..ac9a7a6c8 100644 --- a/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo b/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo index 03e4272da..a550af121 100644 --- a/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo b/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo index 275f798da..8f1d28b1a 100644 --- a/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp8x23_2D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_2D_keepdims_false/input_0.cairo b/tests/nodes/argmin_fp8x23_2D_keepdims_false/input_0.cairo index 9aed14da5..05ffeadc2 100644 --- a/tests/nodes/argmin_fp8x23_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_2D_keepdims_false/output_0.cairo b/tests/nodes/argmin_fp8x23_2D_keepdims_false/output_0.cairo index 6149789b1..2fe75c127 100644 --- a/tests/nodes/argmin_fp8x23_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_keepdims_false/output_0.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_2D_last_index.cairo b/tests/nodes/argmin_fp8x23_2D_last_index.cairo index 4b1f8976e..db743c93f 100644 --- a/tests/nodes/argmin_fp8x23_2D_last_index.cairo +++ b/tests/nodes/argmin_fp8x23_2D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_2D_last_index/input_0.cairo b/tests/nodes/argmin_fp8x23_2D_last_index/input_0.cairo index a0b4b87fe..bc8033ae1 100644 --- a/tests/nodes/argmin_fp8x23_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_2D_last_index/output_0.cairo b/tests/nodes/argmin_fp8x23_2D_last_index/output_0.cairo index f7286dbbb..a550af121 100644 --- a/tests/nodes/argmin_fp8x23_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_fp8x23_3D_default.cairo b/tests/nodes/argmin_fp8x23_3D_default.cairo index c166d9ce0..1689f8e86 100644 --- a/tests/nodes/argmin_fp8x23_3D_default.cairo +++ b/tests/nodes/argmin_fp8x23_3D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo b/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo index 08116e5e3..7cb540487 100644 --- a/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo b/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo index 9c12d0182..07cf1b47e 100644 --- a/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo b/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo index f8e67f760..87404b4f1 100644 --- a/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_fp8x23_3D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_3D_keepdims_false/input_0.cairo b/tests/nodes/argmin_fp8x23_3D_keepdims_false/input_0.cairo index 11a64aac1..d71c17e42 100644 --- a/tests/nodes/argmin_fp8x23_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_keepdims_false/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: true }); data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_3D_keepdims_false/output_0.cairo b/tests/nodes/argmin_fp8x23_3D_keepdims_false/output_0.cairo index e9d17d59b..bf93eb5f9 100644 --- a/tests/nodes/argmin_fp8x23_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_fp8x23_3D_last_index.cairo b/tests/nodes/argmin_fp8x23_3D_last_index.cairo index cdef429d0..5b2f7afb5 100644 --- a/tests/nodes/argmin_fp8x23_3D_last_index.cairo +++ b/tests/nodes/argmin_fp8x23_3D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_fp8x23_3D_last_index/input_0.cairo b/tests/nodes/argmin_fp8x23_3D_last_index/input_0.cairo index b11c95111..f4eac9965 100644 --- a/tests/nodes/argmin_fp8x23_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_last_index/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_fp8x23_3D_last_index/output_0.cairo b/tests/nodes/argmin_fp8x23_3D_last_index/output_0.cairo index 9c12d0182..56d0d331d 100644 --- a/tests/nodes/argmin_fp8x23_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_fp8x23_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(0); data.append(1); data.append(1); data.append(1); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_1D_default.cairo b/tests/nodes/argmin_i32_1D_default.cairo index 2be4827cc..7a840b949 100644 --- a/tests/nodes/argmin_i32_1D_default.cairo +++ b/tests/nodes/argmin_i32_1D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_1D_default/input_0.cairo b/tests/nodes/argmin_i32_1D_default/input_0.cairo index 1367b7729..a592c5018 100644 --- a/tests/nodes/argmin_i32_1D_default/input_0.cairo +++ b/tests/nodes/argmin_i32_1D_default/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 117, sign: true }); + data.append(-34); + data.append(-47); + data.append(-23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_1D_default/output_0.cairo b/tests/nodes/argmin_i32_1D_default/output_0.cairo index 4a377d050..f59edfe99 100644 --- a/tests/nodes/argmin_i32_1D_default/output_0.cairo +++ b/tests/nodes/argmin_i32_1D_default/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_1D_keepdims_false.cairo b/tests/nodes/argmin_i32_1D_keepdims_false.cairo index 21a24a06e..ca0e01569 100644 --- a/tests/nodes/argmin_i32_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_i32_1D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_1D_keepdims_false/input_0.cairo b/tests/nodes/argmin_i32_1D_keepdims_false/input_0.cairo index d04c67ef2..05408b99e 100644 --- a/tests/nodes/argmin_i32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i32_1D_keepdims_false/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 39, sign: false }); + data.append(73); + data.append(75); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_1D_keepdims_false/output_0.cairo b/tests/nodes/argmin_i32_1D_keepdims_false/output_0.cairo index 4a377d050..23846d97b 100644 --- a/tests/nodes/argmin_i32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i32_1D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_i32_1D_last_index.cairo b/tests/nodes/argmin_i32_1D_last_index.cairo index 599e7901d..ea253f273 100644 --- a/tests/nodes/argmin_i32_1D_last_index.cairo +++ b/tests/nodes/argmin_i32_1D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_1D_last_index/input_0.cairo b/tests/nodes/argmin_i32_1D_last_index/input_0.cairo index e3592a8a8..7812d589d 100644 --- a/tests/nodes/argmin_i32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i32_1D_last_index/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 249, sign: false }); - data.append(i32 { mag: 73, sign: false }); + data.append(165); + data.append(215); + data.append(188); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_1D_last_index/output_0.cairo b/tests/nodes/argmin_i32_1D_last_index/output_0.cairo index b37eb7383..e4dbc507c 100644 --- a/tests/nodes/argmin_i32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i32_1D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_i32_2D_default.cairo b/tests/nodes/argmin_i32_2D_default.cairo index cfcb2faad..ae0f09e82 100644 --- a/tests/nodes/argmin_i32_2D_default.cairo +++ b/tests/nodes/argmin_i32_2D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_2D_default/input_0.cairo b/tests/nodes/argmin_i32_2D_default/input_0.cairo index 26dfdcbad..b788c9f4b 100644 --- a/tests/nodes/argmin_i32_2D_default/input_0.cairo +++ b/tests/nodes/argmin_i32_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 52, sign: false }); + data.append(77); + data.append(3); + data.append(99); + data.append(-44); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_2D_default/output_0.cairo b/tests/nodes/argmin_i32_2D_default/output_0.cairo index 96c5ee26d..a550af121 100644 --- a/tests/nodes/argmin_i32_2D_default/output_0.cairo +++ b/tests/nodes/argmin_i32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +9,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_2D_keepdims_false.cairo b/tests/nodes/argmin_i32_2D_keepdims_false.cairo index 61b5ccf1a..b9a04735d 100644 --- a/tests/nodes/argmin_i32_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_i32_2D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_2D_keepdims_false/input_0.cairo b/tests/nodes/argmin_i32_2D_keepdims_false/input_0.cairo index 0c493bce0..ec6c79549 100644 --- a/tests/nodes/argmin_i32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i32_2D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 68, sign: false }); + data.append(97); + data.append(-75); + data.append(27); + data.append(36); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_2D_keepdims_false/output_0.cairo b/tests/nodes/argmin_i32_2D_keepdims_false/output_0.cairo index 60d86b990..edc68637b 100644 --- a/tests/nodes/argmin_i32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i32_2D_keepdims_false/output_0.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_2D_last_index.cairo b/tests/nodes/argmin_i32_2D_last_index.cairo index a2ceb82f7..61f72f1bd 100644 --- a/tests/nodes/argmin_i32_2D_last_index.cairo +++ b/tests/nodes/argmin_i32_2D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_2D_last_index/input_0.cairo b/tests/nodes/argmin_i32_2D_last_index/input_0.cairo index a0141371e..80f506d47 100644 --- a/tests/nodes/argmin_i32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i32_2D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 14, sign: true }); + data.append(-46); + data.append(39); + data.append(-26); + data.append(56); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_2D_last_index/output_0.cairo b/tests/nodes/argmin_i32_2D_last_index/output_0.cairo index 03e4272da..e072284af 100644 --- a/tests/nodes/argmin_i32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i32_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_3D_default.cairo b/tests/nodes/argmin_i32_3D_default.cairo index 39b703faa..7ec1d4664 100644 --- a/tests/nodes/argmin_i32_3D_default.cairo +++ b/tests/nodes/argmin_i32_3D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_3D_default/input_0.cairo b/tests/nodes/argmin_i32_3D_default/input_0.cairo index ad541c4c4..40a569540 100644 --- a/tests/nodes/argmin_i32_3D_default/input_0.cairo +++ b/tests/nodes/argmin_i32_3D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 108, sign: false }); + data.append(-71); + data.append(99); + data.append(106); + data.append(-4); + data.append(-110); + data.append(56); + data.append(-77); + data.append(-6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_3D_default/output_0.cairo b/tests/nodes/argmin_i32_3D_default/output_0.cairo index 9c12d0182..23b7ccc3c 100644 --- a/tests/nodes/argmin_i32_3D_default/output_0.cairo +++ b/tests/nodes/argmin_i32_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,6 +12,6 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_3D_keepdims_false.cairo b/tests/nodes/argmin_i32_3D_keepdims_false.cairo index 6f02e79aa..76c77922a 100644 --- a/tests/nodes/argmin_i32_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_i32_3D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_3D_keepdims_false/input_0.cairo b/tests/nodes/argmin_i32_3D_keepdims_false/input_0.cairo index 329b175ff..2771b9108 100644 --- a/tests/nodes/argmin_i32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i32_3D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 122, sign: false }); + data.append(-24); + data.append(-16); + data.append(-113); + data.append(-11); + data.append(-67); + data.append(53); + data.append(65); + data.append(29); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_3D_keepdims_false/output_0.cairo b/tests/nodes/argmin_i32_3D_keepdims_false/output_0.cairo index f857a56ac..a8a9aaa9d 100644 --- a/tests/nodes/argmin_i32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i32_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_3D_last_index.cairo b/tests/nodes/argmin_i32_3D_last_index.cairo index 65f683781..928a9636b 100644 --- a/tests/nodes/argmin_i32_3D_last_index.cairo +++ b/tests/nodes/argmin_i32_3D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i32_3D_last_index/input_0.cairo b/tests/nodes/argmin_i32_3D_last_index/input_0.cairo index bdfca81e4..633e2f0ef 100644 --- a/tests/nodes/argmin_i32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i32_3D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 33, sign: false }); + data.append(-120); + data.append(122); + data.append(-75); + data.append(123); + data.append(-48); + data.append(-96); + data.append(-113); + data.append(59); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i32_3D_last_index/output_0.cairo b/tests/nodes/argmin_i32_3D_last_index/output_0.cairo index cb26295db..56d0d331d 100644 --- a/tests/nodes/argmin_i32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i32_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,7 +11,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(1); - data.append(0); - data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_1D_default.cairo b/tests/nodes/argmin_i8_1D_default.cairo index 9cb081c83..8983c7f83 100644 --- a/tests/nodes/argmin_i8_1D_default.cairo +++ b/tests/nodes/argmin_i8_1D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_1D_default/input_0.cairo b/tests/nodes/argmin_i8_1D_default/input_0.cairo index efcdcd32e..044ab85a3 100644 --- a/tests/nodes/argmin_i8_1D_default/input_0.cairo +++ b/tests/nodes/argmin_i8_1D_default/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 94, sign: false }); + data.append(-122); + data.append(48); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_1D_default/output_0.cairo b/tests/nodes/argmin_i8_1D_default/output_0.cairo index b37eb7383..e4dbc507c 100644 --- a/tests/nodes/argmin_i8_1D_default/output_0.cairo +++ b/tests/nodes/argmin_i8_1D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_i8_1D_keepdims_false.cairo b/tests/nodes/argmin_i8_1D_keepdims_false.cairo index 8d73ea2fa..4a38d287d 100644 --- a/tests/nodes/argmin_i8_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_i8_1D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_1D_keepdims_false/input_0.cairo b/tests/nodes/argmin_i8_1D_keepdims_false/input_0.cairo index 1385f1436..47a630962 100644 --- a/tests/nodes/argmin_i8_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i8_1D_keepdims_false/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 72, sign: true }); + data.append(-102); + data.append(94); + data.append(122); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_1D_keepdims_false/output_0.cairo b/tests/nodes/argmin_i8_1D_keepdims_false/output_0.cairo index b37eb7383..e4dbc507c 100644 --- a/tests/nodes/argmin_i8_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i8_1D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/argmin_i8_1D_last_index.cairo b/tests/nodes/argmin_i8_1D_last_index.cairo index 876fa5387..f0b5c474e 100644 --- a/tests/nodes/argmin_i8_1D_last_index.cairo +++ b/tests/nodes/argmin_i8_1D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_1D_last_index/input_0.cairo b/tests/nodes/argmin_i8_1D_last_index/input_0.cairo index 54bc1e68c..f09a4ea03 100644 --- a/tests/nodes/argmin_i8_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i8_1D_last_index/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 17, sign: true }); + data.append(-126); + data.append(-114); + data.append(-119); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_1D_last_index/output_0.cairo b/tests/nodes/argmin_i8_1D_last_index/output_0.cairo index 31cebe9de..e4dbc507c 100644 --- a/tests/nodes/argmin_i8_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i8_1D_last_index/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_2D_default.cairo b/tests/nodes/argmin_i8_2D_default.cairo index 62366753e..66518431e 100644 --- a/tests/nodes/argmin_i8_2D_default.cairo +++ b/tests/nodes/argmin_i8_2D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_2D_default/input_0.cairo b/tests/nodes/argmin_i8_2D_default/input_0.cairo index 21c9f554f..670e907da 100644 --- a/tests/nodes/argmin_i8_2D_default/input_0.cairo +++ b/tests/nodes/argmin_i8_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 113, sign: true }); + data.append(-5); + data.append(96); + data.append(-59); + data.append(-110); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_2D_default/output_0.cairo b/tests/nodes/argmin_i8_2D_default/output_0.cairo index f7286dbbb..8cf001234 100644 --- a/tests/nodes/argmin_i8_2D_default/output_0.cairo +++ b/tests/nodes/argmin_i8_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_2D_keepdims_false.cairo b/tests/nodes/argmin_i8_2D_keepdims_false.cairo index f1ebbc8c1..3efcc1449 100644 --- a/tests/nodes/argmin_i8_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_i8_2D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_2D_keepdims_false/input_0.cairo b/tests/nodes/argmin_i8_2D_keepdims_false/input_0.cairo index 8bb14bb29..908c2bef3 100644 --- a/tests/nodes/argmin_i8_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i8_2D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 103, sign: false }); + data.append(-91); + data.append(-120); + data.append(62); + data.append(-4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_2D_keepdims_false/output_0.cairo b/tests/nodes/argmin_i8_2D_keepdims_false/output_0.cairo index 6149789b1..4870d2de9 100644 --- a/tests/nodes/argmin_i8_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i8_2D_keepdims_false/output_0.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_2D_last_index.cairo b/tests/nodes/argmin_i8_2D_last_index.cairo index 7d3a1468c..b31e0f9a1 100644 --- a/tests/nodes/argmin_i8_2D_last_index.cairo +++ b/tests/nodes/argmin_i8_2D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_2D_last_index/input_0.cairo b/tests/nodes/argmin_i8_2D_last_index/input_0.cairo index 724fa7b07..7522e180e 100644 --- a/tests/nodes/argmin_i8_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i8_2D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 24, sign: false }); + data.append(90); + data.append(-107); + data.append(11); + data.append(77); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_2D_last_index/output_0.cairo b/tests/nodes/argmin_i8_2D_last_index/output_0.cairo index 03e4272da..221e8a246 100644 --- a/tests/nodes/argmin_i8_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i8_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +9,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_3D_default.cairo b/tests/nodes/argmin_i8_3D_default.cairo index dad985179..3f1dc8c14 100644 --- a/tests/nodes/argmin_i8_3D_default.cairo +++ b/tests/nodes/argmin_i8_3D_default.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_3D_default/input_0.cairo b/tests/nodes/argmin_i8_3D_default/input_0.cairo index 36dfc1792..4a74ce10b 100644 --- a/tests/nodes/argmin_i8_3D_default/input_0.cairo +++ b/tests/nodes/argmin_i8_3D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 70, sign: true }); + data.append(104); + data.append(91); + data.append(-75); + data.append(51); + data.append(-57); + data.append(-22); + data.append(-13); + data.append(72); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_3D_default/output_0.cairo b/tests/nodes/argmin_i8_3D_default/output_0.cairo index 06e4b054c..9c34c6139 100644 --- a/tests/nodes/argmin_i8_3D_default/output_0.cairo +++ b/tests/nodes/argmin_i8_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +10,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); data.append(1); data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_3D_keepdims_false.cairo b/tests/nodes/argmin_i8_3D_keepdims_false.cairo index f3141dc74..8889fcecb 100644 --- a/tests/nodes/argmin_i8_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_i8_3D_keepdims_false.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_3D_keepdims_false/input_0.cairo b/tests/nodes/argmin_i8_3D_keepdims_false/input_0.cairo index e31df40f8..ddcd93d08 100644 --- a/tests/nodes/argmin_i8_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_i8_3D_keepdims_false/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 89, sign: false }); + data.append(-7); + data.append(-74); + data.append(93); + data.append(-43); + data.append(77); + data.append(-8); + data.append(39); + data.append(-121); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_3D_keepdims_false/output_0.cairo b/tests/nodes/argmin_i8_3D_keepdims_false/output_0.cairo index f857a56ac..6136c2987 100644 --- a/tests/nodes/argmin_i8_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_i8_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_3D_last_index.cairo b/tests/nodes/argmin_i8_3D_last_index.cairo index e763fc201..57c4191e1 100644 --- a/tests/nodes/argmin_i8_3D_last_index.cairo +++ b/tests/nodes/argmin_i8_3D_last_index.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_i8_3D_last_index/input_0.cairo b/tests/nodes/argmin_i8_3D_last_index/input_0.cairo index f8fa1bcdd..d06821fe0 100644 --- a/tests/nodes/argmin_i8_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_i8_3D_last_index/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 114, sign: true }); + data.append(-73); + data.append(-96); + data.append(-90); + data.append(9); + data.append(-99); + data.append(-18); + data.append(-49); + data.append(-30); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_i8_3D_last_index/output_0.cairo b/tests/nodes/argmin_i8_3D_last_index/output_0.cairo index b4564072a..f620ccc04 100644 --- a/tests/nodes/argmin_i8_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_i8_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); + data.append(0); data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/argmin_u32_1D_default.cairo b/tests/nodes/argmin_u32_1D_default.cairo index 4e2ade622..f8baae4dd 100644 --- a/tests/nodes/argmin_u32_1D_default.cairo +++ b/tests/nodes/argmin_u32_1D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_1D_default/input_0.cairo b/tests/nodes/argmin_u32_1D_default/input_0.cairo index 53069cc3a..ecfcd1427 100644 --- a/tests/nodes/argmin_u32_1D_default/input_0.cairo +++ b/tests/nodes/argmin_u32_1D_default/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(97); - data.append(18); + data.append(247); + data.append(56); + data.append(43); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_1D_default/output_0.cairo b/tests/nodes/argmin_u32_1D_default/output_0.cairo index b37eb7383..23846d97b 100644 --- a/tests/nodes/argmin_u32_1D_default/output_0.cairo +++ b/tests/nodes/argmin_u32_1D_default/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_1D_keepdims_false.cairo b/tests/nodes/argmin_u32_1D_keepdims_false.cairo index e777c4230..4bd9e7d50 100644 --- a/tests/nodes/argmin_u32_1D_keepdims_false.cairo +++ b/tests/nodes/argmin_u32_1D_keepdims_false.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_1D_keepdims_false/input_0.cairo b/tests/nodes/argmin_u32_1D_keepdims_false/input_0.cairo index 5faea560e..8e6f37209 100644 --- a/tests/nodes/argmin_u32_1D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_u32_1D_keepdims_false/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(36); - data.append(24); - data.append(185); + data.append(48); + data.append(249); + data.append(180); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_1D_keepdims_false/output_0.cairo b/tests/nodes/argmin_u32_1D_keepdims_false/output_0.cairo index 31cebe9de..e4dbc507c 100644 --- a/tests/nodes/argmin_u32_1D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_u32_1D_keepdims_false/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_1D_last_index.cairo b/tests/nodes/argmin_u32_1D_last_index.cairo index c0ba3afb7..363f2d3a6 100644 --- a/tests/nodes/argmin_u32_1D_last_index.cairo +++ b/tests/nodes/argmin_u32_1D_last_index.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_1D_last_index/input_0.cairo b/tests/nodes/argmin_u32_1D_last_index/input_0.cairo index 070d08c34..2c99cab4b 100644 --- a/tests/nodes/argmin_u32_1D_last_index/input_0.cairo +++ b/tests/nodes/argmin_u32_1D_last_index/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(202); - data.append(105); - data.append(177); + data.append(196); + data.append(188); + data.append(28); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_1D_last_index/output_0.cairo b/tests/nodes/argmin_u32_1D_last_index/output_0.cairo index 31cebe9de..23846d97b 100644 --- a/tests/nodes/argmin_u32_1D_last_index/output_0.cairo +++ b/tests/nodes/argmin_u32_1D_last_index/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_2D_default.cairo b/tests/nodes/argmin_u32_2D_default.cairo index ec0429612..a7810d94f 100644 --- a/tests/nodes/argmin_u32_2D_default.cairo +++ b/tests/nodes/argmin_u32_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_2D_default/input_0.cairo b/tests/nodes/argmin_u32_2D_default/input_0.cairo index ef8e66b3b..da0d02082 100644 --- a/tests/nodes/argmin_u32_2D_default/input_0.cairo +++ b/tests/nodes/argmin_u32_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(250); - data.append(71); - data.append(159); - data.append(119); + data.append(85); + data.append(201); + data.append(161); + data.append(249); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_2D_default/output_0.cairo b/tests/nodes/argmin_u32_2D_default/output_0.cairo index 5603a4cbe..e072284af 100644 --- a/tests/nodes/argmin_u32_2D_default/output_0.cairo +++ b/tests/nodes/argmin_u32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_2D_keepdims_false.cairo b/tests/nodes/argmin_u32_2D_keepdims_false.cairo index 78bdd9589..99418dec1 100644 --- a/tests/nodes/argmin_u32_2D_keepdims_false.cairo +++ b/tests/nodes/argmin_u32_2D_keepdims_false.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_2D_keepdims_false/input_0.cairo b/tests/nodes/argmin_u32_2D_keepdims_false/input_0.cairo index 172949227..3681bb44f 100644 --- a/tests/nodes/argmin_u32_2D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_u32_2D_keepdims_false/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(205); - data.append(39); - data.append(206); - data.append(94); + data.append(242); + data.append(21); + data.append(196); + data.append(65); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_2D_keepdims_false/output_0.cairo b/tests/nodes/argmin_u32_2D_keepdims_false/output_0.cairo index 60d86b990..edc68637b 100644 --- a/tests/nodes/argmin_u32_2D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_u32_2D_keepdims_false/output_0.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_2D_last_index.cairo b/tests/nodes/argmin_u32_2D_last_index.cairo index 08c004431..011992425 100644 --- a/tests/nodes/argmin_u32_2D_last_index.cairo +++ b/tests/nodes/argmin_u32_2D_last_index.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_2D_last_index/input_0.cairo b/tests/nodes/argmin_u32_2D_last_index/input_0.cairo index a7189438f..a7eca1dc0 100644 --- a/tests/nodes/argmin_u32_2D_last_index/input_0.cairo +++ b/tests/nodes/argmin_u32_2D_last_index/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(182); - data.append(6); - data.append(161); - data.append(123); + data.append(95); + data.append(155); + data.append(175); + data.append(231); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_2D_last_index/output_0.cairo b/tests/nodes/argmin_u32_2D_last_index/output_0.cairo index 5603a4cbe..e072284af 100644 --- a/tests/nodes/argmin_u32_2D_last_index/output_0.cairo +++ b/tests/nodes/argmin_u32_2D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_3D_default.cairo b/tests/nodes/argmin_u32_3D_default.cairo index 31e527c1d..24099becc 100644 --- a/tests/nodes/argmin_u32_3D_default.cairo +++ b/tests/nodes/argmin_u32_3D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_3D_default/input_0.cairo b/tests/nodes/argmin_u32_3D_default/input_0.cairo index 319189cdf..f8e035ced 100644 --- a/tests/nodes/argmin_u32_3D_default/input_0.cairo +++ b/tests/nodes/argmin_u32_3D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(183); - data.append(101); - data.append(207); - data.append(197); - data.append(120); - data.append(204); - data.append(156); - data.append(234); + data.append(132); + data.append(217); + data.append(50); + data.append(22); + data.append(79); + data.append(215); + data.append(166); + data.append(125); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_3D_default/output_0.cairo b/tests/nodes/argmin_u32_3D_default/output_0.cairo index 06e4b054c..9c34c6139 100644 --- a/tests/nodes/argmin_u32_3D_default/output_0.cairo +++ b/tests/nodes/argmin_u32_3D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +10,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); data.append(1); data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_3D_keepdims_false.cairo b/tests/nodes/argmin_u32_3D_keepdims_false.cairo index 7b55d82c7..7c8a8f026 100644 --- a/tests/nodes/argmin_u32_3D_keepdims_false.cairo +++ b/tests/nodes/argmin_u32_3D_keepdims_false.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_3D_keepdims_false/input_0.cairo b/tests/nodes/argmin_u32_3D_keepdims_false/input_0.cairo index 6d1a9b1d2..f3379958a 100644 --- a/tests/nodes/argmin_u32_3D_keepdims_false/input_0.cairo +++ b/tests/nodes/argmin_u32_3D_keepdims_false/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(15); - data.append(205); - data.append(192); - data.append(220); - data.append(182); - data.append(184); - data.append(11); - data.append(97); + data.append(133); + data.append(237); + data.append(19); + data.append(140); + data.append(162); + data.append(214); + data.append(247); + data.append(234); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_3D_keepdims_false/output_0.cairo b/tests/nodes/argmin_u32_3D_keepdims_false/output_0.cairo index 6bcb5ce4a..825125d8a 100644 --- a/tests/nodes/argmin_u32_3D_keepdims_false/output_0.cairo +++ b/tests/nodes/argmin_u32_3D_keepdims_false/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(1); - data.append(1); - data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_3D_last_index.cairo b/tests/nodes/argmin_u32_3D_last_index.cairo index bcbb4705c..45c6fa3d2 100644 --- a/tests/nodes/argmin_u32_3D_last_index.cairo +++ b/tests/nodes/argmin_u32_3D_last_index.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/argmin_u32_3D_last_index/input_0.cairo b/tests/nodes/argmin_u32_3D_last_index/input_0.cairo index 509df9e2b..462d1eccc 100644 --- a/tests/nodes/argmin_u32_3D_last_index/input_0.cairo +++ b/tests/nodes/argmin_u32_3D_last_index/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(153); - data.append(28); - data.append(204); - data.append(0); - data.append(69); - data.append(220); - data.append(126); - data.append(80); + data.append(21); + data.append(206); + data.append(245); + data.append(180); + data.append(229); + data.append(107); + data.append(167); + data.append(193); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/argmin_u32_3D_last_index/output_0.cairo b/tests/nodes/argmin_u32_3D_last_index/output_0.cairo index 06e4b054c..e35cd05a2 100644 --- a/tests/nodes/argmin_u32_3D_last_index/output_0.cairo +++ b/tests/nodes/argmin_u32_3D_last_index/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(1); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_1D_fp16x16.cairo b/tests/nodes/array_feature_extractor_1D_fp16x16.cairo index db302b594..ffc17c009 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_1D_fp16x16/input_0.cairo b/tests/nodes/array_feature_extractor_1D_fp16x16/input_0.cairo index 5176ca714..dba72ba7b 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16/input_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(4); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_1D_fp16x16/input_1.cairo b/tests/nodes/array_feature_extractor_1D_fp16x16/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16/input_1.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_1D_fp16x16/output_0.cairo b/tests/nodes/array_feature_extractor_1D_fp16x16/output_0.cairo index 8154904fb..12db2a0d2 100644 --- a/tests/nodes/array_feature_extractor_1D_fp16x16/output_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp16x16/output_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_1D_fp8x23.cairo b/tests/nodes/array_feature_extractor_1D_fp8x23.cairo index 944125fe1..2baf59146 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_1D_fp8x23/input_0.cairo b/tests/nodes/array_feature_extractor_1D_fp8x23/input_0.cairo index 2688cb03f..54e8bdda0 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23/input_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_1D_fp8x23/input_1.cairo b/tests/nodes/array_feature_extractor_1D_fp8x23/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23/input_1.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_1D_fp8x23/output_0.cairo b/tests/nodes/array_feature_extractor_1D_fp8x23/output_0.cairo index 2ae2c1847..fa390b415 100644 --- a/tests/nodes/array_feature_extractor_1D_fp8x23/output_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_fp8x23/output_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_1D_i32.cairo b/tests/nodes/array_feature_extractor_1D_i32.cairo index 0b6c34a81..8419ff039 100644 --- a/tests/nodes/array_feature_extractor_1D_i32.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_1D_i32/input_0.cairo b/tests/nodes/array_feature_extractor_1D_i32/input_0.cairo index 3b3b00e9e..40d5847bd 100644 --- a/tests/nodes/array_feature_extractor_1D_i32/input_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(-1); + data.append(2); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_1D_i32/input_1.cairo b/tests/nodes/array_feature_extractor_1D_i32/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_1D_i32/input_1.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_1D_i32/output_0.cairo b/tests/nodes/array_feature_extractor_1D_i32/output_0.cairo index ba3887c33..cc33f1a7f 100644 --- a/tests/nodes/array_feature_extractor_1D_i32/output_0.cairo +++ b/tests/nodes/array_feature_extractor_1D_i32/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_2D_fp16x16.cairo b/tests/nodes/array_feature_extractor_2D_fp16x16.cairo index 711b83dc9..6de172c7f 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_2D_fp16x16/input_0.cairo b/tests/nodes/array_feature_extractor_2D_fp16x16/input_0.cairo index fa328460c..38669af01 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16/input_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,16 +10,16 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_2D_fp16x16/input_1.cairo b/tests/nodes/array_feature_extractor_2D_fp16x16/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16/input_1.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_2D_fp16x16/output_0.cairo b/tests/nodes/array_feature_extractor_2D_fp16x16/output_0.cairo index 10de55cd5..dbe9d8aa3 100644 --- a/tests/nodes/array_feature_extractor_2D_fp16x16/output_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,11 +9,11 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_2D_fp8x23.cairo b/tests/nodes/array_feature_extractor_2D_fp8x23.cairo index 543a7df6d..154d39056 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_2D_fp8x23/input_0.cairo b/tests/nodes/array_feature_extractor_2D_fp8x23/input_0.cairo index 684a638eb..307108c46 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23/input_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_2D_fp8x23/input_1.cairo b/tests/nodes/array_feature_extractor_2D_fp8x23/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23/input_1.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_2D_fp8x23/output_0.cairo b/tests/nodes/array_feature_extractor_2D_fp8x23/output_0.cairo index d6d52b4ac..cf65feb75 100644 --- a/tests/nodes/array_feature_extractor_2D_fp8x23/output_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,11 +9,11 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_2D_i32.cairo b/tests/nodes/array_feature_extractor_2D_i32.cairo index 3c4cc9813..3b48bfa75 100644 --- a/tests/nodes/array_feature_extractor_2D_i32.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_2D_i32/input_0.cairo b/tests/nodes/array_feature_extractor_2D_i32/input_0.cairo index de9951a26..aeec2740f 100644 --- a/tests/nodes/array_feature_extractor_2D_i32/input_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,17 +8,17 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(1); + data.append(-3); + data.append(0); + data.append(0); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(0); + data.append(1); + data.append(1); + data.append(-2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_2D_i32/input_1.cairo b/tests/nodes/array_feature_extractor_2D_i32/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_2D_i32/input_1.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_2D_i32/output_0.cairo b/tests/nodes/array_feature_extractor_2D_i32/output_0.cairo index 1f5bd7562..efcd62576 100644 --- a/tests/nodes/array_feature_extractor_2D_i32/output_0.cairo +++ b/tests/nodes/array_feature_extractor_2D_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(-3); + data.append(0); + data.append(-1); + data.append(0); + data.append(1); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_3D_fp16x16.cairo b/tests/nodes/array_feature_extractor_3D_fp16x16.cairo index 502604f23..1560607ed 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_3D_fp16x16/input_0.cairo b/tests/nodes/array_feature_extractor_3D_fp16x16/input_0.cairo index 8e822d3d5..226295e34 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16/input_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,29 +10,29 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_3D_fp16x16/input_1.cairo b/tests/nodes/array_feature_extractor_3D_fp16x16/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16/input_1.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_3D_fp16x16/output_0.cairo b/tests/nodes/array_feature_extractor_3D_fp16x16/output_0.cairo index 88194d9d6..ab5f4e815 100644 --- a/tests/nodes/array_feature_extractor_3D_fp16x16/output_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,17 +10,17 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_3D_fp8x23.cairo b/tests/nodes/array_feature_extractor_3D_fp8x23.cairo index 6e93e5a5b..91f8043d0 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_3D_fp8x23/input_0.cairo b/tests/nodes/array_feature_extractor_3D_fp8x23/input_0.cairo index 63f032ab2..5fbfc8922 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23/input_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,28 +11,28 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_3D_fp8x23/input_1.cairo b/tests/nodes/array_feature_extractor_3D_fp8x23/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23/input_1.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_3D_fp8x23/output_0.cairo b/tests/nodes/array_feature_extractor_3D_fp8x23/output_0.cairo index 50af35bdb..9440cd38c 100644 --- a/tests/nodes/array_feature_extractor_3D_fp8x23/output_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,16 +10,16 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/array_feature_extractor_3D_i32.cairo b/tests/nodes/array_feature_extractor_3D_i32.cairo index 7b1cacc3c..2bfd914fd 100644 --- a/tests/nodes/array_feature_extractor_3D_i32.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/array_feature_extractor_3D_i32/input_0.cairo b/tests/nodes/array_feature_extractor_3D_i32/input_0.cairo index 818dd15cc..edf73d0cd 100644 --- a/tests/nodes/array_feature_extractor_3D_i32/input_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +9,29 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(0); + data.append(1); + data.append(-2); + data.append(-1); + data.append(-2); + data.append(1); + data.append(-3); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(1); + data.append(-3); + data.append(1); + data.append(-1); + data.append(1); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/array_feature_extractor_3D_i32/input_1.cairo b/tests/nodes/array_feature_extractor_3D_i32/input_1.cairo index 7b523e95b..c1ba8c9c0 100644 --- a/tests/nodes/array_feature_extractor_3D_i32/input_1.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/array_feature_extractor_3D_i32/output_0.cairo b/tests/nodes/array_feature_extractor_3D_i32/output_0.cairo index c7f1edd98..dcc5bf402 100644 --- a/tests/nodes/array_feature_extractor_3D_i32/output_0.cairo +++ b/tests/nodes/array_feature_extractor_3D_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-1); + data.append(0); + data.append(-2); + data.append(-2); + data.append(-3); + data.append(1); + data.append(1); + data.append(-2); + data.append(-1); + data.append(-3); + data.append(-1); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asin_fp16x16.cairo b/tests/nodes/asin_fp16x16.cairo index b8b33af57..e13b24901 100644 --- a/tests/nodes/asin_fp16x16.cairo +++ b/tests/nodes/asin_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/asin_fp16x16/input_0.cairo b/tests/nodes/asin_fp16x16/input_0.cairo index 7330c083f..48b0808cc 100644 --- a/tests/nodes/asin_fp16x16/input_0.cairo +++ b/tests/nodes/asin_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 24425, sign: false }); - data.append(FP16x16 { mag: 40100, sign: true }); - data.append(FP16x16 { mag: 37592, sign: true }); - data.append(FP16x16 { mag: 55159, sign: false }); + data.append(FP16x16 { mag: 7855, sign: false }); + data.append(FP16x16 { mag: 57259, sign: false }); + data.append(FP16x16 { mag: 44465, sign: true }); + data.append(FP16x16 { mag: 23854, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asin_fp16x16/output_0.cairo b/tests/nodes/asin_fp16x16/output_0.cairo index f8af13f0d..881959cc7 100644 --- a/tests/nodes/asin_fp16x16/output_0.cairo +++ b/tests/nodes/asin_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 25029, sign: false }); - data.append(FP16x16 { mag: 43152, sign: true }); - data.append(FP16x16 { mag: 40036, sign: true }); - data.append(FP16x16 { mag: 65559, sign: false }); + data.append(FP16x16 { mag: 7874, sign: false }); + data.append(FP16x16 { mag: 69649, sign: false }); + data.append(FP16x16 { mag: 48870, sign: true }); + data.append(FP16x16 { mag: 24414, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asin_fp8x23.cairo b/tests/nodes/asin_fp8x23.cairo index ce7cb2dc0..9e712ddc8 100644 --- a/tests/nodes/asin_fp8x23.cairo +++ b/tests/nodes/asin_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/asin_fp8x23/input_0.cairo b/tests/nodes/asin_fp8x23/input_0.cairo index 2512a232c..4e8416c5b 100644 --- a/tests/nodes/asin_fp8x23/input_0.cairo +++ b/tests/nodes/asin_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 5018963, sign: true }); - data.append(FP8x23 { mag: 1475178, sign: false }); - data.append(FP8x23 { mag: 4332453, sign: false }); - data.append(FP8x23 { mag: 3833460, sign: false }); + data.append(FP8x23 { mag: 4179211, sign: false }); + data.append(FP8x23 { mag: 3678986, sign: true }); + data.append(FP8x23 { mag: 755318, sign: true }); + data.append(FP8x23 { mag: 4357027, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asin_fp8x23/output_0.cairo b/tests/nodes/asin_fp8x23/output_0.cairo index a1a346f74..efda753aa 100644 --- a/tests/nodes/asin_fp8x23/output_0.cairo +++ b/tests/nodes/asin_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 5380341, sign: true }); - data.append(FP8x23 { mag: 1482889, sign: false }); - data.append(FP8x23 { mag: 4552681, sign: false }); - data.append(FP8x23 { mag: 3981246, sign: false }); + data.append(FP8x23 { mag: 4374848, sign: false }); + data.append(FP8x23 { mag: 3808479, sign: true }); + data.append(FP8x23 { mag: 756342, sign: true }); + data.append(FP8x23 { mag: 4581408, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asinh_fp16x16.cairo b/tests/nodes/asinh_fp16x16.cairo index 63eb091f0..db99a8261 100644 --- a/tests/nodes/asinh_fp16x16.cairo +++ b/tests/nodes/asinh_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/asinh_fp16x16/input_0.cairo b/tests/nodes/asinh_fp16x16/input_0.cairo index 7bea078a6..c5d0a225a 100644 --- a/tests/nodes/asinh_fp16x16/input_0.cairo +++ b/tests/nodes/asinh_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 184210, sign: false }); - data.append(FP16x16 { mag: 129479, sign: false }); - data.append(FP16x16 { mag: 277479, sign: false }); - data.append(FP16x16 { mag: 131054, sign: false }); + data.append(FP16x16 { mag: 169913, sign: false }); + data.append(FP16x16 { mag: 256877, sign: false }); + data.append(FP16x16 { mag: 257385, sign: false }); + data.append(FP16x16 { mag: 187249, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asinh_fp16x16/output_0.cairo b/tests/nodes/asinh_fp16x16/output_0.cairo index a2bae49b9..6c1499569 100644 --- a/tests/nodes/asinh_fp16x16/output_0.cairo +++ b/tests/nodes/asinh_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 115137, sign: false }); - data.append(FP16x16 { mag: 93894, sign: false }); - data.append(FP16x16 { mag: 140899, sign: false }); - data.append(FP16x16 { mag: 94602, sign: false }); + data.append(FP16x16 { mag: 110173, sign: false }); + data.append(FP16x16 { mag: 135989, sign: false }); + data.append(FP16x16 { mag: 136114, sign: false }); + data.append(FP16x16 { mag: 116149, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asinh_fp8x23.cairo b/tests/nodes/asinh_fp8x23.cairo index 108704e66..905c4ba79 100644 --- a/tests/nodes/asinh_fp8x23.cairo +++ b/tests/nodes/asinh_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/asinh_fp8x23/input_0.cairo b/tests/nodes/asinh_fp8x23/input_0.cairo index 825c58984..b80fbe83a 100644 --- a/tests/nodes/asinh_fp8x23/input_0.cairo +++ b/tests/nodes/asinh_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 27455781, sign: false }); - data.append(FP8x23 { mag: 18897191, sign: false }); - data.append(FP8x23 { mag: 21438360, sign: false }); - data.append(FP8x23 { mag: 14100507, sign: false }); + data.append(FP8x23 { mag: 20018460, sign: false }); + data.append(FP8x23 { mag: 27476659, sign: false }); + data.append(FP8x23 { mag: 29261793, sign: false }); + data.append(FP8x23 { mag: 27170230, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/asinh_fp8x23/output_0.cairo b/tests/nodes/asinh_fp8x23/output_0.cairo index 1cbc61caf..5b161c0c1 100644 --- a/tests/nodes/asinh_fp8x23/output_0.cairo +++ b/tests/nodes/asinh_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 15950180, sign: false }); - data.append(FP8x23 { mag: 13012932, sign: false }); - data.append(FP8x23 { mag: 13989712, sign: false }); - data.append(FP8x23 { mag: 10830545, sign: false }); + data.append(FP8x23 { mag: 13456914, sign: false }); + data.append(FP8x23 { mag: 15956279, sign: false }); + data.append(FP8x23 { mag: 16462601, sign: false }); + data.append(FP8x23 { mag: 15866344, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/atan_fp16x16.cairo b/tests/nodes/atan_fp16x16.cairo index 4de5933ba..abc0796ce 100644 --- a/tests/nodes/atan_fp16x16.cairo +++ b/tests/nodes/atan_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/atan_fp16x16/input_0.cairo b/tests/nodes/atan_fp16x16/input_0.cairo index 751a51699..bb1b231f0 100644 --- a/tests/nodes/atan_fp16x16/input_0.cairo +++ b/tests/nodes/atan_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6783373, sign: false }); - data.append(FP16x16 { mag: 8040908, sign: false }); - data.append(FP16x16 { mag: 4875319, sign: false }); - data.append(FP16x16 { mag: 7007700, sign: false }); + data.append(FP16x16 { mag: 4877388, sign: false }); + data.append(FP16x16 { mag: 314010, sign: true }); + data.append(FP16x16 { mag: 78417, sign: true }); + data.append(FP16x16 { mag: 504882, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/atan_fp16x16/output_0.cairo b/tests/nodes/atan_fp16x16/output_0.cairo index 78c0c49b2..c5bce1609 100644 --- a/tests/nodes/atan_fp16x16/output_0.cairo +++ b/tests/nodes/atan_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 102310, sign: false }); - data.append(FP16x16 { mag: 102409, sign: false }); - data.append(FP16x16 { mag: 102062, sign: false }); - data.append(FP16x16 { mag: 102330, sign: false }); + data.append(FP16x16 { mag: 102063, sign: false }); + data.append(FP16x16 { mag: 89459, sign: true }); + data.append(FP16x16 { mag: 57320, sign: true }); + data.append(FP16x16 { mag: 94484, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/atan_fp8x23.cairo b/tests/nodes/atan_fp8x23.cairo index 9491593b4..ae9e68185 100644 --- a/tests/nodes/atan_fp8x23.cairo +++ b/tests/nodes/atan_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/atan_fp8x23/input_0.cairo b/tests/nodes/atan_fp8x23/input_0.cairo index d090c59bd..80164fa0f 100644 --- a/tests/nodes/atan_fp8x23/input_0.cairo +++ b/tests/nodes/atan_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 18618993, sign: false }); - data.append(FP8x23 { mag: 5949940, sign: false }); - data.append(FP8x23 { mag: 999751667, sign: false }); - data.append(FP8x23 { mag: 150920617, sign: false }); + data.append(FP8x23 { mag: 82419129, sign: false }); + data.append(FP8x23 { mag: 513495334, sign: false }); + data.append(FP8x23 { mag: 84734076, sign: false }); + data.append(FP8x23 { mag: 594378282, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/atan_fp8x23/output_0.cairo b/tests/nodes/atan_fp8x23/output_0.cairo index 07260fa8b..30d5b6858 100644 --- a/tests/nodes/atan_fp8x23/output_0.cairo +++ b/tests/nodes/atan_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9625869, sign: false }); - data.append(FP8x23 { mag: 5175204, sign: false }); - data.append(FP8x23 { mag: 13106410, sign: false }); - data.append(FP8x23 { mag: 12711010, sign: false }); + data.append(FP8x23 { mag: 12325933, sign: false }); + data.append(FP8x23 { mag: 13039768, sign: false }); + data.append(FP8x23 { mag: 12349026, sign: false }); + data.append(FP8x23 { mag: 13058411, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/ceil_fp16x16.cairo b/tests/nodes/ceil_fp16x16.cairo index cd5953a20..208b1cd05 100644 --- a/tests/nodes/ceil_fp16x16.cairo +++ b/tests/nodes/ceil_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/ceil_fp16x16/input_0.cairo b/tests/nodes/ceil_fp16x16/input_0.cairo index 41bc87e4d..a4dab3aec 100644 --- a/tests/nodes/ceil_fp16x16/input_0.cairo +++ b/tests/nodes/ceil_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 57980, sign: false }); - data.append(FP16x16 { mag: 13481, sign: false }); - data.append(FP16x16 { mag: 37024, sign: false }); - data.append(FP16x16 { mag: 38899, sign: false }); + data.append(FP16x16 { mag: 32172, sign: false }); + data.append(FP16x16 { mag: 3356, sign: false }); + data.append(FP16x16 { mag: 42435, sign: true }); + data.append(FP16x16 { mag: 31055, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/ceil_fp16x16/output_0.cairo b/tests/nodes/ceil_fp16x16/output_0.cairo index 55ba8fba5..58a05d5d0 100644 --- a/tests/nodes/ceil_fp16x16/output_0.cairo +++ b/tests/nodes/ceil_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,7 +11,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/ceil_fp8x23.cairo b/tests/nodes/ceil_fp8x23.cairo index 937c4ee61..61fa5a119 100644 --- a/tests/nodes/ceil_fp8x23.cairo +++ b/tests/nodes/ceil_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/ceil_fp8x23/input_0.cairo b/tests/nodes/ceil_fp8x23/input_0.cairo index 61423c21d..f054f7a25 100644 --- a/tests/nodes/ceil_fp8x23/input_0.cairo +++ b/tests/nodes/ceil_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 395238, sign: true }); - data.append(FP8x23 { mag: 8327668, sign: false }); - data.append(FP8x23 { mag: 3848433, sign: true }); - data.append(FP8x23 { mag: 3761123, sign: false }); + data.append(FP8x23 { mag: 3513846, sign: false }); + data.append(FP8x23 { mag: 5898636, sign: true }); + data.append(FP8x23 { mag: 1928949, sign: true }); + data.append(FP8x23 { mag: 3104735, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/ceil_fp8x23/output_0.cairo b/tests/nodes/ceil_fp8x23/output_0.cairo index ee64b714f..a25dbf345 100644 --- a/tests/nodes/ceil_fp8x23/output_0.cairo +++ b/tests/nodes/ceil_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_fp16x16_2d.cairo b/tests/nodes/clip_fp16x16_2d.cairo index 341c008d3..d779d2790 100644 --- a/tests/nodes/clip_fp16x16_2d.cairo +++ b/tests/nodes/clip_fp16x16_2d.cairo @@ -2,13 +2,12 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -16,11 +15,7 @@ fn test_clip_fp16x16_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip( - Option::Some(FP16x16 { mag: 655360, sign: true }), - Option::Some(FP16x16 { mag: 1310720, sign: false }) - ); + let y = input_0.clip(Option::Some(FP16x16 { mag: 655360, sign: true }), Option::Some(FP16x16 { mag: 1310720, sign: false })); assert_eq(y, z); } diff --git a/tests/nodes/clip_fp16x16_2d/input_0.cairo b/tests/nodes/clip_fp16x16_2d/input_0.cairo index b5d41aff4..170146596 100644 --- a/tests/nodes/clip_fp16x16_2d/input_0.cairo +++ b/tests/nodes/clip_fp16x16_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_fp16x16_2d/output_0.cairo b/tests/nodes/clip_fp16x16_2d/output_0.cairo index 14266839f..dc6fd3e3c 100644 --- a/tests/nodes/clip_fp16x16_2d/output_0.cairo +++ b/tests/nodes/clip_fp16x16_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,11 +11,11 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_fp16x16_3d.cairo b/tests/nodes/clip_fp16x16_3d.cairo index c9150bfdf..d82de09dc 100644 --- a/tests/nodes/clip_fp16x16_3d.cairo +++ b/tests/nodes/clip_fp16x16_3d.cairo @@ -2,13 +2,12 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -16,11 +15,7 @@ fn test_clip_fp16x16_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip( - Option::Some(FP16x16 { mag: 655360, sign: true }), - Option::Some(FP16x16 { mag: 1310720, sign: false }) - ); + let y = input_0.clip(Option::Some(FP16x16 { mag: 655360, sign: true }), Option::Some(FP16x16 { mag: 1310720, sign: false })); assert_eq(y, z); } diff --git a/tests/nodes/clip_fp16x16_3d/input_0.cairo b/tests/nodes/clip_fp16x16_3d/input_0.cairo index fbdff764a..4f87c869f 100644 --- a/tests/nodes/clip_fp16x16_3d/input_0.cairo +++ b/tests/nodes/clip_fp16x16_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: false }); data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: false }); data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 8323072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: true }); data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: true }); data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: false }); data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: false }); data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: true }); data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: false }); data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: false }); data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: true }); data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: true }); data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: true }); data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: true }); data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_fp16x16_3d/output_0.cairo b/tests/nodes/clip_fp16x16_3d/output_0.cairo index 1ef170695..0e2ed2150 100644 --- a/tests/nodes/clip_fp16x16_3d/output_0.cairo +++ b/tests/nodes/clip_fp16x16_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,47 +10,65 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); @@ -63,108 +80,142 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); @@ -173,242 +224,213 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); @@ -416,241 +438,231 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 458752, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); @@ -658,358 +670,345 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_fp8x23_2d.cairo b/tests/nodes/clip_fp8x23_2d.cairo index 4999f1c4a..64f1792a1 100644 --- a/tests/nodes/clip_fp8x23_2d.cairo +++ b/tests/nodes/clip_fp8x23_2d.cairo @@ -2,13 +2,12 @@ mod input_0; mod output_0; +use orion::numbers::{FixedTrait, FP8x23}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] @@ -16,11 +15,7 @@ fn test_clip_fp8x23_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip( - Option::Some(FP8x23 { mag: 83886080, sign: true }), - Option::Some(FP8x23 { mag: 167772160, sign: false }) - ); + let y = input_0.clip(Option::Some(FP8x23 { mag: 83886080, sign: true }), Option::Some(FP8x23 { mag: 167772160, sign: false })); assert_eq(y, z); } diff --git a/tests/nodes/clip_fp8x23_2d/input_0.cairo b/tests/nodes/clip_fp8x23_2d/input_0.cairo index 6b1261a19..a3383945e 100644 --- a/tests/nodes/clip_fp8x23_2d/input_0.cairo +++ b/tests/nodes/clip_fp8x23_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_fp8x23_2d/output_0.cairo b/tests/nodes/clip_fp8x23_2d/output_0.cairo index bf242ae2a..d6ceb81b1 100644 --- a/tests/nodes/clip_fp8x23_2d/output_0.cairo +++ b/tests/nodes/clip_fp8x23_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,10 +11,10 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/clip_fp8x23_3d.cairo b/tests/nodes/clip_fp8x23_3d.cairo index db5d7d060..511b33859 100644 --- a/tests/nodes/clip_fp8x23_3d.cairo +++ b/tests/nodes/clip_fp8x23_3d.cairo @@ -2,13 +2,12 @@ mod input_0; mod output_0; +use orion::numbers::{FixedTrait, FP8x23}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] @@ -16,11 +15,7 @@ fn test_clip_fp8x23_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip( - Option::Some(FP8x23 { mag: 83886080, sign: true }), - Option::Some(FP8x23 { mag: 167772160, sign: false }) - ); + let y = input_0.clip(Option::Some(FP8x23 { mag: 83886080, sign: true }), Option::Some(FP8x23 { mag: 167772160, sign: false })); assert_eq(y, z); } diff --git a/tests/nodes/clip_fp8x23_3d/input_0.cairo b/tests/nodes/clip_fp8x23_3d/input_0.cairo index f2959d1db..611b4bbd7 100644 --- a/tests/nodes/clip_fp8x23_3d/input_0.cairo +++ b/tests/nodes/clip_fp8x23_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: true }); data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: false }); data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: true }); data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: true }); data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: true }); data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: true }); data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: false }); data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: true }); data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); data.append(FP8x23 { mag: 1048576000, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: true }); data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: false }); data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: true }); data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: true }); data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: false }); data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: false }); data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_fp8x23_3d/output_0.cairo b/tests/nodes/clip_fp8x23_3d/output_0.cairo index f31d6c2cd..8d95ceef6 100644 --- a/tests/nodes/clip_fp8x23_3d/output_0.cairo +++ b/tests/nodes/clip_fp8x23_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,90 +10,119 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); @@ -103,99 +131,115 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); @@ -211,293 +255,277 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); @@ -505,30 +533,39 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); @@ -537,8 +574,6 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); @@ -546,37 +581,39 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); @@ -584,387 +621,361 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); @@ -972,11 +983,9 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); @@ -984,32 +993,22 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i32_2d.cairo b/tests/nodes/clip_i32_2d.cairo index b944b1b88..32eb1ab56 100644 --- a/tests/nodes/clip_i32_2d.cairo +++ b/tests/nodes/clip_i32_2d.cairo @@ -2,12 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -15,10 +14,7 @@ fn test_clip_i32_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip( - Option::Some(i32 { mag: 10, sign: true }), Option::Some(i32 { mag: 20, sign: false }) - ); + let y = input_0.clip(Option::Some(-10_i32), Option::Some(20_i32)); assert_eq(y, z); } diff --git a/tests/nodes/clip_i32_2d/input_0.cairo b/tests/nodes/clip_i32_2d/input_0.cairo index 16acc7261..a8e09aefd 100644 --- a/tests/nodes/clip_i32_2d/input_0.cairo +++ b/tests/nodes/clip_i32_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 50, sign: false }); + data.append(-72); + data.append(41); + data.append(8); + data.append(-66); + data.append(62); + data.append(-57); + data.append(1); + data.append(-34); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i32_2d/output_0.cairo b/tests/nodes/clip_i32_2d/output_0.cairo index 2d6840ba8..c95f9b65d 100644 --- a/tests/nodes/clip_i32_2d/output_0.cairo +++ b/tests/nodes/clip_i32_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); + data.append(-10); + data.append(20); + data.append(8); + data.append(-10); + data.append(20); + data.append(-10); + data.append(1); + data.append(-10); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i32_3d.cairo b/tests/nodes/clip_i32_3d.cairo index 258c3d3a3..fd68fa8d2 100644 --- a/tests/nodes/clip_i32_3d.cairo +++ b/tests/nodes/clip_i32_3d.cairo @@ -2,12 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -15,10 +14,7 @@ fn test_clip_i32_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip( - Option::Some(i32 { mag: 10, sign: true }), Option::Some(i32 { mag: 20, sign: false }) - ); + let y = input_0.clip(Option::Some(-10_i32), Option::Some(20_i32)); assert_eq(y, z); } diff --git a/tests/nodes/clip_i32_3d/input_0.cairo b/tests/nodes/clip_i32_3d/input_0.cairo index 4e6b78331..59f63bc19 100644 --- a/tests/nodes/clip_i32_3d/input_0.cairo +++ b/tests/nodes/clip_i32_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 81, sign: true }); + data.append(52); + data.append(-112); + data.append(-115); + data.append(-114); + data.append(103); + data.append(111); + data.append(-96); + data.append(34); + data.append(79); + data.append(-25); + data.append(-24); + data.append(70); + data.append(69); + data.append(-89); + data.append(71); + data.append(-18); + data.append(-116); + data.append(-73); + data.append(-44); + data.append(-14); + data.append(-65); + data.append(-97); + data.append(125); + data.append(-124); + data.append(112); + data.append(91); + data.append(-90); + data.append(107); + data.append(-74); + data.append(82); + data.append(17); + data.append(-83); + data.append(-115); + data.append(116); + data.append(79); + data.append(-5); + data.append(-93); + data.append(-74); + data.append(33); + data.append(-61); + data.append(-111); + data.append(-101); + data.append(-54); + data.append(-71); + data.append(-20); + data.append(70); + data.append(28); + data.append(49); + data.append(-64); + data.append(26); + data.append(64); + data.append(-66); + data.append(98); + data.append(-11); + data.append(23); + data.append(96); + data.append(74); + data.append(4); + data.append(-72); + data.append(-71); + data.append(-104); + data.append(7); + data.append(-59); + data.append(10); + data.append(-62); + data.append(-5); + data.append(30); + data.append(-47); + data.append(-85); + data.append(35); + data.append(-123); + data.append(-93); + data.append(-50); + data.append(2); + data.append(22); + data.append(-115); + data.append(-70); + data.append(-82); + data.append(-21); + data.append(119); + data.append(73); + data.append(75); + data.append(83); + data.append(-127); + data.append(82); + data.append(60); + data.append(-2); + data.append(-2); + data.append(50); + data.append(123); + data.append(-69); + data.append(58); + data.append(112); + data.append(33); + data.append(101); + data.append(16); + data.append(4); + data.append(123); + data.append(71); + data.append(40); + data.append(-29); + data.append(64); + data.append(-124); + data.append(-50); + data.append(-116); + data.append(0); + data.append(125); + data.append(-70); + data.append(-49); + data.append(47); + data.append(-18); + data.append(-58); + data.append(-71); + data.append(-45); + data.append(54); + data.append(28); + data.append(54); + data.append(-49); + data.append(74); + data.append(82); + data.append(-43); + data.append(107); + data.append(-46); + data.append(-41); + data.append(-19); + data.append(106); + data.append(40); + data.append(-70); + data.append(-32); + data.append(-111); + data.append(97); + data.append(79); + data.append(-95); + data.append(-12); + data.append(87); + data.append(86); + data.append(78); + data.append(11); + data.append(43); + data.append(-14); + data.append(-85); + data.append(0); + data.append(119); + data.append(60); + data.append(-101); + data.append(-81); + data.append(5); + data.append(106); + data.append(114); + data.append(-25); + data.append(-43); + data.append(37); + data.append(-10); + data.append(-122); + data.append(29); + data.append(82); + data.append(-25); + data.append(-18); + data.append(11); + data.append(-88); + data.append(71); + data.append(-83); + data.append(121); + data.append(-39); + data.append(11); + data.append(-40); + data.append(-18); + data.append(-35); + data.append(-108); + data.append(26); + data.append(-19); + data.append(-58); + data.append(-105); + data.append(29); + data.append(-11); + data.append(1); + data.append(-17); + data.append(-1); + data.append(-12); + data.append(-29); + data.append(-104); + data.append(-51); + data.append(-78); + data.append(16); + data.append(-43); + data.append(66); + data.append(62); + data.append(68); + data.append(-31); + data.append(-81); + data.append(-26); + data.append(-101); + data.append(126); + data.append(94); + data.append(87); + data.append(-30); + data.append(-41); + data.append(117); + data.append(75); + data.append(75); + data.append(-69); + data.append(50); + data.append(-42); + data.append(-104); + data.append(-36); + data.append(121); + data.append(8); + data.append(33); + data.append(84); + data.append(-108); + data.append(-55); + data.append(12); + data.append(-48); + data.append(62); + data.append(-122); + data.append(50); + data.append(121); + data.append(-67); + data.append(53); + data.append(-20); + data.append(99); + data.append(103); + data.append(-41); + data.append(-6); + data.append(110); + data.append(38); + data.append(-40); + data.append(52); + data.append(-23); + data.append(-26); + data.append(31); + data.append(-108); + data.append(29); + data.append(38); + data.append(111); + data.append(12); + data.append(30); + data.append(81); + data.append(-15); + data.append(118); + data.append(-10); + data.append(39); + data.append(63); + data.append(37); + data.append(22); + data.append(77); + data.append(119); + data.append(-49); + data.append(-106); + data.append(-108); + data.append(77); + data.append(-127); + data.append(-96); + data.append(-43); + data.append(-96); + data.append(75); + data.append(-54); + data.append(-66); + data.append(42); + data.append(17); + data.append(-106); + data.append(12); + data.append(88); + data.append(122); + data.append(-94); + data.append(60); + data.append(-67); + data.append(74); + data.append(-7); + data.append(78); + data.append(113); + data.append(-91); + data.append(14); + data.append(-38); + data.append(54); + data.append(77); + data.append(-39); + data.append(-86); + data.append(-25); + data.append(37); + data.append(7); + data.append(-44); + data.append(76); + data.append(43); + data.append(74); + data.append(32); + data.append(-52); + data.append(105); + data.append(-112); + data.append(-13); + data.append(-81); + data.append(-4); + data.append(92); + data.append(-39); + data.append(59); + data.append(-117); + data.append(3); + data.append(54); + data.append(-14); + data.append(-16); + data.append(39); + data.append(-44); + data.append(-24); + data.append(-29); + data.append(22); + data.append(-114); + data.append(-15); + data.append(-5); + data.append(-45); + data.append(49); + data.append(115); + data.append(-71); + data.append(74); + data.append(-20); + data.append(66); + data.append(22); + data.append(-93); + data.append(-124); + data.append(23); + data.append(-26); + data.append(-42); + data.append(54); + data.append(94); + data.append(-22); + data.append(100); + data.append(21); + data.append(-34); + data.append(31); + data.append(93); + data.append(6); + data.append(23); + data.append(57); + data.append(93); + data.append(122); + data.append(-32); + data.append(21); + data.append(50); + data.append(58); + data.append(-110); + data.append(-61); + data.append(86); + data.append(-77); + data.append(32); + data.append(6); + data.append(-33); + data.append(84); + data.append(44); + data.append(126); + data.append(-103); + data.append(-46); + data.append(5); + data.append(-81); + data.append(-23); + data.append(11); + data.append(-120); + data.append(-91); + data.append(-39); + data.append(-37); + data.append(-71); + data.append(-25); + data.append(-75); + data.append(117); + data.append(62); + data.append(-47); + data.append(-39); + data.append(3); + data.append(50); + data.append(13); + data.append(-6); + data.append(-91); + data.append(-28); + data.append(35); + data.append(96); + data.append(102); + data.append(90); + data.append(96); + data.append(-22); + data.append(98); + data.append(-8); + data.append(65); + data.append(115); + data.append(-75); + data.append(-101); + data.append(-31); + data.append(-93); + data.append(24); + data.append(117); + data.append(-81); + data.append(59); + data.append(32); + data.append(-93); + data.append(73); + data.append(2); + data.append(-49); + data.append(-102); + data.append(-121); + data.append(-75); + data.append(-61); + data.append(34); + data.append(96); + data.append(28); + data.append(28); + data.append(95); + data.append(-73); + data.append(53); + data.append(72); + data.append(-119); + data.append(77); + data.append(108); + data.append(0); + data.append(10); + data.append(94); + data.append(1); + data.append(-27); + data.append(19); + data.append(-56); + data.append(-109); + data.append(34); + data.append(106); + data.append(58); + data.append(-61); + data.append(81); + data.append(117); + data.append(14); + data.append(-18); + data.append(0); + data.append(41); + data.append(-103); + data.append(111); + data.append(118); + data.append(-106); + data.append(-114); + data.append(100); + data.append(35); + data.append(115); + data.append(-29); + data.append(-98); + data.append(72); + data.append(45); + data.append(18); + data.append(64); + data.append(-3); + data.append(-94); + data.append(21); + data.append(-75); + data.append(6); + data.append(111); + data.append(-61); + data.append(-28); + data.append(6); + data.append(-104); + data.append(113); + data.append(-55); + data.append(-37); + data.append(123); + data.append(-63); + data.append(-32); + data.append(65); + data.append(-23); + data.append(-117); + data.append(89); + data.append(90); + data.append(-97); + data.append(-36); + data.append(123); + data.append(30); + data.append(104); + data.append(-25); + data.append(5); + data.append(54); + data.append(-53); + data.append(3); + data.append(-69); + data.append(40); + data.append(101); + data.append(106); + data.append(4); + data.append(8); + data.append(19); + data.append(45); + data.append(96); + data.append(49); + data.append(-28); + data.append(67); + data.append(-113); + data.append(-106); + data.append(12); + data.append(6); + data.append(28); + data.append(87); + data.append(-57); + data.append(28); + data.append(75); + data.append(-118); + data.append(110); + data.append(-75); + data.append(-32); + data.append(49); + data.append(-5); + data.append(-115); + data.append(-68); + data.append(-29); + data.append(-122); + data.append(-96); + data.append(-34); + data.append(-98); + data.append(9); + data.append(-101); + data.append(7); + data.append(117); + data.append(-2); + data.append(-53); + data.append(-119); + data.append(-106); + data.append(117); + data.append(27); + data.append(73); + data.append(94); + data.append(126); + data.append(-105); + data.append(105); + data.append(61); + data.append(32); + data.append(-46); + data.append(-87); + data.append(8); + data.append(-112); + data.append(-60); + data.append(75); + data.append(94); + data.append(6); + data.append(64); + data.append(36); + data.append(-5); + data.append(-26); + data.append(60); + data.append(-85); + data.append(29); + data.append(-100); + data.append(-97); + data.append(-27); + data.append(56); + data.append(54); + data.append(60); + data.append(8); + data.append(-55); + data.append(-103); + data.append(-99); + data.append(104); + data.append(-53); + data.append(111); + data.append(-65); + data.append(48); + data.append(-28); + data.append(-73); + data.append(-59); + data.append(-56); + data.append(-34); + data.append(-108); + data.append(-85); + data.append(-95); + data.append(-97); + data.append(64); + data.append(-49); + data.append(-114); + data.append(-64); + data.append(7); + data.append(70); + data.append(97); + data.append(15); + data.append(-110); + data.append(-63); + data.append(95); + data.append(-110); + data.append(-53); + data.append(-118); + data.append(48); + data.append(121); + data.append(-113); + data.append(-116); + data.append(58); + data.append(-83); + data.append(-87); + data.append(-55); + data.append(-99); + data.append(-113); + data.append(121); + data.append(13); + data.append(-117); + data.append(13); + data.append(-94); + data.append(91); + data.append(5); + data.append(67); + data.append(55); + data.append(121); + data.append(121); + data.append(120); + data.append(44); + data.append(-50); + data.append(-101); + data.append(5); + data.append(-9); + data.append(45); + data.append(71); + data.append(-39); + data.append(90); + data.append(-59); + data.append(104); + data.append(-61); + data.append(37); + data.append(102); + data.append(113); + data.append(76); + data.append(-27); + data.append(27); + data.append(56); + data.append(1); + data.append(95); + data.append(122); + data.append(-102); + data.append(-21); + data.append(-35); + data.append(-97); + data.append(-119); + data.append(5); + data.append(25); + data.append(-122); + data.append(125); + data.append(8); + data.append(42); + data.append(-62); + data.append(59); + data.append(96); + data.append(-89); + data.append(122); + data.append(125); + data.append(-71); + data.append(-43); + data.append(-112); + data.append(-76); + data.append(72); + data.append(-26); + data.append(-9); + data.append(98); + data.append(-93); + data.append(-107); + data.append(-113); + data.append(-29); + data.append(-120); + data.append(49); + data.append(94); + data.append(-102); + data.append(124); + data.append(-77); + data.append(95); + data.append(-71); + data.append(38); + data.append(-109); + data.append(101); + data.append(-107); + data.append(22); + data.append(88); + data.append(118); + data.append(-28); + data.append(-84); + data.append(-124); + data.append(-8); + data.append(72); + data.append(12); + data.append(113); + data.append(94); + data.append(19); + data.append(107); + data.append(14); + data.append(-86); + data.append(-88); + data.append(75); + data.append(-25); + data.append(1); + data.append(55); + data.append(99); + data.append(-69); + data.append(115); + data.append(52); + data.append(106); + data.append(110); + data.append(-59); + data.append(64); + data.append(-10); + data.append(-119); + data.append(-78); + data.append(53); + data.append(116); + data.append(7); + data.append(100); + data.append(0); + data.append(-70); + data.append(-64); + data.append(88); + data.append(-76); + data.append(-91); + data.append(-35); + data.append(-6); + data.append(6); + data.append(-103); + data.append(-51); + data.append(115); + data.append(-98); + data.append(122); + data.append(-38); + data.append(20); + data.append(-34); + data.append(62); + data.append(6); + data.append(-99); + data.append(0); + data.append(-117); + data.append(-3); + data.append(-114); + data.append(-96); + data.append(-52); + data.append(-7); + data.append(62); + data.append(93); + data.append(-87); + data.append(12); + data.append(-99); + data.append(49); + data.append(0); + data.append(-98); + data.append(-46); + data.append(-11); + data.append(-5); + data.append(-120); + data.append(-37); + data.append(-29); + data.append(-77); + data.append(-83); + data.append(-90); + data.append(-86); + data.append(-61); + data.append(-91); + data.append(-45); + data.append(-91); + data.append(-79); + data.append(117); + data.append(76); + data.append(-39); + data.append(31); + data.append(-55); + data.append(13); + data.append(-12); + data.append(18); + data.append(85); + data.append(-7); + data.append(-40); + data.append(-80); + data.append(-25); + data.append(-63); + data.append(24); + data.append(-17); + data.append(-25); + data.append(77); + data.append(-115); + data.append(108); + data.append(2); + data.append(-115); + data.append(98); + data.append(-31); + data.append(-55); + data.append(-83); + data.append(-67); + data.append(76); + data.append(76); + data.append(17); + data.append(-31); + data.append(110); + data.append(21); + data.append(-86); + data.append(-8); + data.append(47); + data.append(-21); + data.append(-28); + data.append(-58); + data.append(83); + data.append(74); + data.append(-44); + data.append(17); + data.append(-19); + data.append(-37); + data.append(-1); + data.append(-36); + data.append(16); + data.append(-3); + data.append(82); + data.append(8); + data.append(41); + data.append(105); + data.append(-116); + data.append(-118); + data.append(97); + data.append(31); + data.append(-47); + data.append(-81); + data.append(-83); + data.append(-121); + data.append(-111); + data.append(-115); + data.append(-80); + data.append(-37); + data.append(-23); + data.append(120); + data.append(-35); + data.append(-122); + data.append(79); + data.append(-84); + data.append(53); + data.append(-37); + data.append(42); + data.append(-49); + data.append(-38); + data.append(15); + data.append(-29); + data.append(98); + data.append(-33); + data.append(-50); + data.append(99); + data.append(-21); + data.append(67); + data.append(73); + data.append(43); + data.append(103); + data.append(73); + data.append(-2); + data.append(-89); + data.append(89); + data.append(-65); + data.append(-102); + data.append(-88); + data.append(-22); + data.append(67); + data.append(-64); + data.append(-77); + data.append(-49); + data.append(95); + data.append(-35); + data.append(15); + data.append(40); + data.append(18); + data.append(99); + data.append(-24); + data.append(-93); + data.append(82); + data.append(-5); + data.append(70); + data.append(27); + data.append(0); + data.append(-86); + data.append(110); + data.append(65); + data.append(-47); + data.append(-124); + data.append(90); + data.append(31); + data.append(-23); + data.append(39); + data.append(116); + data.append(-116); + data.append(-5); + data.append(116); + data.append(-87); + data.append(96); + data.append(63); + data.append(96); + data.append(-74); + data.append(-39); + data.append(119); + data.append(-74); + data.append(100); + data.append(-34); + data.append(78); + data.append(-78); + data.append(94); + data.append(-45); + data.append(-49); + data.append(-84); + data.append(-124); + data.append(-5); + data.append(43); + data.append(-74); + data.append(-57); + data.append(53); + data.append(-40); + data.append(82); + data.append(79); + data.append(53); + data.append(59); + data.append(-77); + data.append(-87); + data.append(-118); + data.append(-109); + data.append(-108); + data.append(94); + data.append(17); + data.append(-83); + data.append(86); + data.append(3); + data.append(9); + data.append(-101); + data.append(6); + data.append(-47); + data.append(-46); + data.append(-34); + data.append(-41); + data.append(-76); + data.append(-13); + data.append(27); + data.append(-85); + data.append(-58); + data.append(33); + data.append(49); + data.append(9); + data.append(8); + data.append(-82); + data.append(-17); + data.append(49); + data.append(22); + data.append(38); + data.append(-97); + data.append(34); + data.append(-72); + data.append(-107); + data.append(-126); + data.append(86); + data.append(-40); + data.append(114); + data.append(93); + data.append(-77); + data.append(-9); + data.append(72); + data.append(72); + data.append(77); + data.append(20); + data.append(-85); + data.append(-47); + data.append(96); + data.append(22); + data.append(-55); + data.append(48); + data.append(119); + data.append(17); + data.append(-18); + data.append(89); + data.append(-28); + data.append(86); + data.append(5); + data.append(-121); + data.append(48); + data.append(28); + data.append(60); + data.append(-115); + data.append(-47); + data.append(68); + data.append(-81); + data.append(6); + data.append(-123); + data.append(-43); + data.append(-81); + data.append(-91); + data.append(-17); + data.append(-117); + data.append(-8); + data.append(56); + data.append(121); + data.append(-78); + data.append(76); + data.append(121); + data.append(-92); + data.append(-90); + data.append(5); + data.append(36); + data.append(78); + data.append(120); + data.append(106); + data.append(-8); + data.append(79); + data.append(119); + data.append(12); + data.append(-73); + data.append(52); + data.append(71); + data.append(111); + data.append(78); + data.append(4); + data.append(-115); + data.append(117); + data.append(34); + data.append(109); + data.append(37); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i32_3d/output_0.cairo b/tests/nodes/clip_i32_3d/output_0.cairo index 01a364645..756a8e47a 100644 --- a/tests/nodes/clip_i32_3d/output_0.cairo +++ b/tests/nodes/clip_i32_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 10, sign: true }); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(17); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-5); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(4); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(7); + data.append(-10); + data.append(10); + data.append(-10); + data.append(-5); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(2); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-2); + data.append(-2); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(16); + data.append(4); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(0); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(11); + data.append(20); + data.append(-10); + data.append(-10); + data.append(0); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(5); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(11); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(11); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(1); + data.append(-10); + data.append(-1); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(16); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(8); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(12); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-6); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(12); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(17); + data.append(-10); + data.append(12); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-7); + data.append(20); + data.append(20); + data.append(-10); + data.append(14); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(7); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-4); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(3); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-5); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(6); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(6); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(5); + data.append(-10); + data.append(-10); + data.append(11); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(3); + data.append(20); + data.append(13); + data.append(-6); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-8); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(2); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(0); + data.append(10); + data.append(20); + data.append(1); + data.append(-10); + data.append(19); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(14); + data.append(-10); + data.append(0); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(18); + data.append(20); + data.append(-3); + data.append(-10); + data.append(20); + data.append(-10); + data.append(6); + data.append(20); + data.append(-10); + data.append(-10); + data.append(6); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(5); + data.append(20); + data.append(-10); + data.append(3); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(4); + data.append(8); + data.append(19); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(12); + data.append(6); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-5); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(9); + data.append(-10); + data.append(7); + data.append(20); + data.append(-2); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(8); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(6); + data.append(20); + data.append(20); + data.append(-5); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(8); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(7); + data.append(20); + data.append(20); + data.append(15); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(13); + data.append(-10); + data.append(13); + data.append(-10); + data.append(20); + data.append(5); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(5); + data.append(-9); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(1); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(5); + data.append(20); + data.append(-10); + data.append(20); + data.append(8); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-9); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-8); + data.append(20); + data.append(12); + data.append(20); + data.append(20); + data.append(19); + data.append(20); + data.append(14); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(1); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(7); + data.append(20); + data.append(0); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-6); + data.append(6); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(6); + data.append(-10); + data.append(0); + data.append(-10); + data.append(-3); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-7); + data.append(20); + data.append(20); + data.append(-10); + data.append(12); + data.append(-10); + data.append(20); + data.append(0); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-5); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(13); + data.append(-10); + data.append(18); + data.append(20); + data.append(-7); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(2); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(17); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-8); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(17); + data.append(-10); + data.append(-10); + data.append(-1); + data.append(-10); + data.append(16); + data.append(-3); + data.append(20); + data.append(8); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(15); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-2); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(15); + data.append(20); + data.append(18); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-5); + data.append(20); + data.append(20); + data.append(0); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-5); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-5); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(17); + data.append(-10); + data.append(20); + data.append(3); + data.append(9); + data.append(-10); + data.append(6); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(9); + data.append(8); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-9); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(17); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(5); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(6); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-8); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(5); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-8); + data.append(20); + data.append(20); + data.append(12); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(4); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i8_2d.cairo b/tests/nodes/clip_i8_2d.cairo index 84ac1f458..5c5775dc9 100644 --- a/tests/nodes/clip_i8_2d.cairo +++ b/tests/nodes/clip_i8_2d.cairo @@ -2,12 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::signed_integer::i8::{i8, IntegerTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -15,8 +14,7 @@ fn test_clip_i8_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip(Option::Some(i8 { mag: 10, sign: true }), Option::Some(i8 { mag: 20, sign: false })); + let y = input_0.clip(Option::Some(-10_i8), Option::Some(20_i8)); assert_eq(y, z); } diff --git a/tests/nodes/clip_i8_2d/input_0.cairo b/tests/nodes/clip_i8_2d/input_0.cairo index acd32dd3e..2c5fde5f6 100644 --- a/tests/nodes/clip_i8_2d/input_0.cairo +++ b/tests/nodes/clip_i8_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 47, sign: false }); + data.append(-29); + data.append(82); + data.append(121); + data.append(-89); + data.append(-87); + data.append(69); + data.append(71); + data.append(-25); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i8_2d/output_0.cairo b/tests/nodes/clip_i8_2d/output_0.cairo index 82e96092f..14f89de2d 100644 --- a/tests/nodes/clip_i8_2d/output_0.cairo +++ b/tests/nodes/clip_i8_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i8_3d.cairo b/tests/nodes/clip_i8_3d.cairo index f03d818c4..2d88d4062 100644 --- a/tests/nodes/clip_i8_3d.cairo +++ b/tests/nodes/clip_i8_3d.cairo @@ -2,12 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; -use orion::numbers::signed_integer::i8::{i8, IntegerTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -15,8 +14,7 @@ fn test_clip_i8_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .clip(Option::Some(i8 { mag: 10, sign: true }), Option::Some(i8 { mag: 20, sign: false })); + let y = input_0.clip(Option::Some(-10_i8), Option::Some(20_i8)); assert_eq(y, z); } diff --git a/tests/nodes/clip_i8_3d/input_0.cairo b/tests/nodes/clip_i8_3d/input_0.cairo index 8adbdb021..fa1c4d515 100644 --- a/tests/nodes/clip_i8_3d/input_0.cairo +++ b/tests/nodes/clip_i8_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 25, sign: true }); + data.append(50); + data.append(83); + data.append(22); + data.append(-104); + data.append(-81); + data.append(20); + data.append(-84); + data.append(-73); + data.append(84); + data.append(36); + data.append(-57); + data.append(-35); + data.append(71); + data.append(84); + data.append(30); + data.append(54); + data.append(6); + data.append(102); + data.append(55); + data.append(-61); + data.append(51); + data.append(105); + data.append(68); + data.append(-56); + data.append(41); + data.append(-37); + data.append(49); + data.append(-63); + data.append(-115); + data.append(119); + data.append(124); + data.append(-84); + data.append(-52); + data.append(68); + data.append(-21); + data.append(-20); + data.append(-122); + data.append(-125); + data.append(-83); + data.append(-31); + data.append(-10); + data.append(85); + data.append(-8); + data.append(104); + data.append(-12); + data.append(-55); + data.append(-101); + data.append(-116); + data.append(-76); + data.append(-28); + data.append(-25); + data.append(96); + data.append(-59); + data.append(-54); + data.append(2); + data.append(-78); + data.append(-43); + data.append(74); + data.append(57); + data.append(-94); + data.append(-45); + data.append(59); + data.append(46); + data.append(-25); + data.append(-72); + data.append(81); + data.append(32); + data.append(-94); + data.append(-76); + data.append(-112); + data.append(-39); + data.append(78); + data.append(18); + data.append(7); + data.append(86); + data.append(-23); + data.append(121); + data.append(-66); + data.append(-124); + data.append(-79); + data.append(-22); + data.append(-95); + data.append(61); + data.append(-10); + data.append(-96); + data.append(21); + data.append(-4); + data.append(40); + data.append(54); + data.append(-54); + data.append(-63); + data.append(109); + data.append(-97); + data.append(-61); + data.append(-53); + data.append(-104); + data.append(-38); + data.append(-86); + data.append(-82); + data.append(-8); + data.append(-20); + data.append(38); + data.append(114); + data.append(100); + data.append(76); + data.append(15); + data.append(17); + data.append(-93); + data.append(-107); + data.append(22); + data.append(-122); + data.append(79); + data.append(6); + data.append(-85); + data.append(28); + data.append(103); + data.append(42); + data.append(-88); + data.append(46); + data.append(24); + data.append(8); + data.append(-71); + data.append(72); + data.append(46); + data.append(-30); + data.append(-89); + data.append(-20); + data.append(-100); + data.append(20); + data.append(126); + data.append(-71); + data.append(-118); + data.append(7); + data.append(78); + data.append(89); + data.append(-105); + data.append(-98); + data.append(-67); + data.append(-125); + data.append(-71); + data.append(14); + data.append(49); + data.append(54); + data.append(77); + data.append(85); + data.append(26); + data.append(59); + data.append(-126); + data.append(-120); + data.append(9); + data.append(111); + data.append(-49); + data.append(100); + data.append(-18); + data.append(93); + data.append(91); + data.append(-126); + data.append(26); + data.append(92); + data.append(-52); + data.append(-100); + data.append(88); + data.append(-111); + data.append(94); + data.append(-24); + data.append(10); + data.append(-36); + data.append(70); + data.append(121); + data.append(78); + data.append(-5); + data.append(-22); + data.append(-46); + data.append(45); + data.append(10); + data.append(-86); + data.append(-114); + data.append(38); + data.append(12); + data.append(109); + data.append(76); + data.append(57); + data.append(-91); + data.append(-118); + data.append(115); + data.append(-80); + data.append(86); + data.append(11); + data.append(-99); + data.append(71); + data.append(86); + data.append(-98); + data.append(64); + data.append(-39); + data.append(71); + data.append(101); + data.append(-29); + data.append(-12); + data.append(-119); + data.append(-16); + data.append(67); + data.append(38); + data.append(93); + data.append(-105); + data.append(-72); + data.append(14); + data.append(95); + data.append(57); + data.append(30); + data.append(-117); + data.append(2); + data.append(-120); + data.append(-14); + data.append(-70); + data.append(41); + data.append(-56); + data.append(-102); + data.append(117); + data.append(72); + data.append(-59); + data.append(55); + data.append(61); + data.append(-86); + data.append(-26); + data.append(-16); + data.append(122); + data.append(-9); + data.append(-68); + data.append(102); + data.append(-87); + data.append(13); + data.append(-84); + data.append(-51); + data.append(12); + data.append(110); + data.append(-35); + data.append(-70); + data.append(6); + data.append(124); + data.append(-83); + data.append(-123); + data.append(86); + data.append(-16); + data.append(-14); + data.append(90); + data.append(-79); + data.append(62); + data.append(89); + data.append(0); + data.append(90); + data.append(4); + data.append(124); + data.append(124); + data.append(63); + data.append(-83); + data.append(-50); + data.append(-27); + data.append(-31); + data.append(105); + data.append(77); + data.append(55); + data.append(56); + data.append(-56); + data.append(-110); + data.append(24); + data.append(96); + data.append(-89); + data.append(-96); + data.append(120); + data.append(7); + data.append(1); + data.append(11); + data.append(-9); + data.append(51); + data.append(-12); + data.append(3); + data.append(8); + data.append(78); + data.append(-89); + data.append(82); + data.append(-42); + data.append(20); + data.append(-77); + data.append(96); + data.append(117); + data.append(-53); + data.append(-10); + data.append(-118); + data.append(-40); + data.append(111); + data.append(58); + data.append(65); + data.append(109); + data.append(-30); + data.append(12); + data.append(-83); + data.append(-11); + data.append(-7); + data.append(-89); + data.append(-59); + data.append(54); + data.append(-32); + data.append(81); + data.append(-24); + data.append(-85); + data.append(40); + data.append(-8); + data.append(-80); + data.append(-37); + data.append(120); + data.append(92); + data.append(43); + data.append(-32); + data.append(45); + data.append(-105); + data.append(-2); + data.append(38); + data.append(14); + data.append(-41); + data.append(-75); + data.append(-37); + data.append(110); + data.append(-55); + data.append(61); + data.append(49); + data.append(-3); + data.append(16); + data.append(47); + data.append(-47); + data.append(62); + data.append(-114); + data.append(-99); + data.append(113); + data.append(-115); + data.append(46); + data.append(-20); + data.append(13); + data.append(11); + data.append(-53); + data.append(-42); + data.append(-102); + data.append(92); + data.append(37); + data.append(18); + data.append(-35); + data.append(-97); + data.append(26); + data.append(-126); + data.append(19); + data.append(59); + data.append(-46); + data.append(101); + data.append(101); + data.append(11); + data.append(92); + data.append(-43); + data.append(-97); + data.append(-97); + data.append(46); + data.append(32); + data.append(-108); + data.append(126); + data.append(7); + data.append(63); + data.append(80); + data.append(63); + data.append(-48); + data.append(-27); + data.append(-127); + data.append(-44); + data.append(82); + data.append(114); + data.append(-93); + data.append(-125); + data.append(13); + data.append(-105); + data.append(97); + data.append(-41); + data.append(24); + data.append(54); + data.append(-56); + data.append(-70); + data.append(22); + data.append(38); + data.append(104); + data.append(-121); + data.append(-116); + data.append(63); + data.append(93); + data.append(53); + data.append(-6); + data.append(-46); + data.append(-17); + data.append(-37); + data.append(16); + data.append(113); + data.append(-117); + data.append(40); + data.append(125); + data.append(-89); + data.append(1); + data.append(-64); + data.append(67); + data.append(97); + data.append(-79); + data.append(-54); + data.append(-14); + data.append(58); + data.append(-102); + data.append(-25); + data.append(73); + data.append(117); + data.append(-68); + data.append(-81); + data.append(55); + data.append(90); + data.append(-11); + data.append(30); + data.append(107); + data.append(-33); + data.append(-85); + data.append(61); + data.append(113); + data.append(48); + data.append(-69); + data.append(-29); + data.append(26); + data.append(-63); + data.append(-72); + data.append(-106); + data.append(-100); + data.append(36); + data.append(-35); + data.append(61); + data.append(108); + data.append(-67); + data.append(96); + data.append(122); + data.append(58); + data.append(26); + data.append(111); + data.append(47); + data.append(-98); + data.append(-63); + data.append(0); + data.append(-28); + data.append(-121); + data.append(6); + data.append(64); + data.append(61); + data.append(-17); + data.append(85); + data.append(-58); + data.append(29); + data.append(-111); + data.append(24); + data.append(7); + data.append(-76); + data.append(8); + data.append(62); + data.append(79); + data.append(124); + data.append(6); + data.append(-126); + data.append(74); + data.append(6); + data.append(-81); + data.append(11); + data.append(-7); + data.append(86); + data.append(1); + data.append(-32); + data.append(105); + data.append(114); + data.append(8); + data.append(-29); + data.append(83); + data.append(-94); + data.append(44); + data.append(-30); + data.append(-63); + data.append(45); + data.append(-104); + data.append(-83); + data.append(56); + data.append(-24); + data.append(68); + data.append(-17); + data.append(24); + data.append(-32); + data.append(-118); + data.append(3); + data.append(-56); + data.append(4); + data.append(65); + data.append(120); + data.append(65); + data.append(-109); + data.append(-117); + data.append(-10); + data.append(99); + data.append(103); + data.append(91); + data.append(-19); + data.append(43); + data.append(53); + data.append(40); + data.append(35); + data.append(-70); + data.append(-21); + data.append(-97); + data.append(-93); + data.append(89); + data.append(-117); + data.append(-110); + data.append(58); + data.append(-67); + data.append(-12); + data.append(18); + data.append(12); + data.append(-12); + data.append(12); + data.append(-46); + data.append(92); + data.append(-97); + data.append(-83); + data.append(34); + data.append(-57); + data.append(31); + data.append(-45); + data.append(60); + data.append(123); + data.append(81); + data.append(83); + data.append(-37); + data.append(-82); + data.append(61); + data.append(-2); + data.append(6); + data.append(-98); + data.append(83); + data.append(-60); + data.append(38); + data.append(52); + data.append(46); + data.append(-7); + data.append(10); + data.append(-77); + data.append(30); + data.append(41); + data.append(123); + data.append(-82); + data.append(43); + data.append(-60); + data.append(-78); + data.append(-107); + data.append(31); + data.append(-77); + data.append(-127); + data.append(-107); + data.append(2); + data.append(93); + data.append(117); + data.append(18); + data.append(-87); + data.append(-59); + data.append(-85); + data.append(-87); + data.append(-59); + data.append(87); + data.append(49); + data.append(60); + data.append(114); + data.append(84); + data.append(84); + data.append(18); + data.append(122); + data.append(29); + data.append(59); + data.append(97); + data.append(-49); + data.append(62); + data.append(109); + data.append(46); + data.append(30); + data.append(123); + data.append(-7); + data.append(-8); + data.append(123); + data.append(7); + data.append(111); + data.append(35); + data.append(72); + data.append(47); + data.append(73); + data.append(-21); + data.append(-123); + data.append(62); + data.append(-113); + data.append(74); + data.append(-67); + data.append(-58); + data.append(-82); + data.append(-85); + data.append(14); + data.append(66); + data.append(85); + data.append(55); + data.append(95); + data.append(-93); + data.append(91); + data.append(-29); + data.append(-88); + data.append(-117); + data.append(-41); + data.append(13); + data.append(124); + data.append(-17); + data.append(-59); + data.append(-24); + data.append(26); + data.append(-24); + data.append(-30); + data.append(1); + data.append(-60); + data.append(116); + data.append(123); + data.append(-12); + data.append(117); + data.append(85); + data.append(38); + data.append(99); + data.append(74); + data.append(15); + data.append(-22); + data.append(102); + data.append(9); + data.append(62); + data.append(-10); + data.append(86); + data.append(-76); + data.append(-94); + data.append(-4); + data.append(27); + data.append(35); + data.append(5); + data.append(39); + data.append(-15); + data.append(-12); + data.append(52); + data.append(-9); + data.append(35); + data.append(77); + data.append(61); + data.append(101); + data.append(53); + data.append(124); + data.append(111); + data.append(63); + data.append(112); + data.append(-118); + data.append(-25); + data.append(85); + data.append(-22); + data.append(102); + data.append(5); + data.append(45); + data.append(-25); + data.append(56); + data.append(-84); + data.append(24); + data.append(114); + data.append(17); + data.append(32); + data.append(72); + data.append(-97); + data.append(-38); + data.append(69); + data.append(-107); + data.append(-3); + data.append(89); + data.append(-36); + data.append(6); + data.append(-67); + data.append(-120); + data.append(-6); + data.append(-46); + data.append(-28); + data.append(-80); + data.append(-34); + data.append(116); + data.append(-55); + data.append(106); + data.append(74); + data.append(50); + data.append(-87); + data.append(-97); + data.append(-16); + data.append(89); + data.append(81); + data.append(-84); + data.append(-111); + data.append(-17); + data.append(50); + data.append(64); + data.append(-68); + data.append(23); + data.append(-8); + data.append(79); + data.append(86); + data.append(-58); + data.append(-77); + data.append(-57); + data.append(125); + data.append(71); + data.append(-73); + data.append(-7); + data.append(-65); + data.append(126); + data.append(-38); + data.append(-46); + data.append(95); + data.append(54); + data.append(15); + data.append(-18); + data.append(22); + data.append(2); + data.append(-86); + data.append(1); + data.append(67); + data.append(49); + data.append(-35); + data.append(34); + data.append(-40); + data.append(49); + data.append(17); + data.append(-118); + data.append(-69); + data.append(47); + data.append(84); + data.append(123); + data.append(50); + data.append(2); + data.append(71); + data.append(-61); + data.append(32); + data.append(-45); + data.append(59); + data.append(73); + data.append(-12); + data.append(-98); + data.append(124); + data.append(104); + data.append(21); + data.append(-37); + data.append(46); + data.append(-91); + data.append(18); + data.append(20); + data.append(-66); + data.append(-67); + data.append(-15); + data.append(9); + data.append(-60); + data.append(-12); + data.append(10); + data.append(45); + data.append(77); + data.append(27); + data.append(92); + data.append(-125); + data.append(-4); + data.append(46); + data.append(10); + data.append(-85); + data.append(51); + data.append(-40); + data.append(-42); + data.append(112); + data.append(98); + data.append(98); + data.append(-107); + data.append(-34); + data.append(101); + data.append(39); + data.append(-101); + data.append(-36); + data.append(-12); + data.append(16); + data.append(24); + data.append(-32); + data.append(-35); + data.append(53); + data.append(50); + data.append(66); + data.append(-16); + data.append(64); + data.append(-36); + data.append(7); + data.append(-37); + data.append(-117); + data.append(109); + data.append(61); + data.append(-58); + data.append(-63); + data.append(37); + data.append(37); + data.append(-72); + data.append(20); + data.append(31); + data.append(74); + data.append(94); + data.append(-73); + data.append(-68); + data.append(57); + data.append(112); + data.append(100); + data.append(66); + data.append(110); + data.append(-122); + data.append(-64); + data.append(-26); + data.append(-43); + data.append(43); + data.append(-108); + data.append(-90); + data.append(20); + data.append(44); + data.append(-45); + data.append(-18); + data.append(10); + data.append(-86); + data.append(-51); + data.append(96); + data.append(-77); + data.append(-116); + data.append(-29); + data.append(4); + data.append(93); + data.append(82); + data.append(-50); + data.append(36); + data.append(-45); + data.append(-12); + data.append(77); + data.append(89); + data.append(-125); + data.append(12); + data.append(96); + data.append(-64); + data.append(23); + data.append(117); + data.append(119); + data.append(80); + data.append(124); + data.append(53); + data.append(-84); + data.append(-13); + data.append(126); + data.append(-37); + data.append(-10); + data.append(126); + data.append(45); + data.append(98); + data.append(120); + data.append(-86); + data.append(66); + data.append(-101); + data.append(-88); + data.append(-68); + data.append(86); + data.append(64); + data.append(-43); + data.append(-27); + data.append(-20); + data.append(32); + data.append(-35); + data.append(69); + data.append(76); + data.append(-70); + data.append(78); + data.append(-50); + data.append(-54); + data.append(25); + data.append(10); + data.append(47); + data.append(-68); + data.append(-120); + data.append(76); + data.append(31); + data.append(-91); + data.append(55); + data.append(63); + data.append(107); + data.append(-115); + data.append(53); + data.append(-3); + data.append(8); + data.append(62); + data.append(-122); + data.append(-59); + data.append(11); + data.append(-62); + data.append(36); + data.append(-70); + data.append(-27); + data.append(-81); + data.append(-86); + data.append(-96); + data.append(-60); + data.append(-108); + data.append(-40); + data.append(49); + data.append(0); + data.append(38); + data.append(-116); + data.append(46); + data.append(96); + data.append(-88); + data.append(67); + data.append(-24); + data.append(-4); + data.append(-126); + data.append(-114); + data.append(-96); + data.append(5); + data.append(-87); + data.append(-5); + data.append(3); + data.append(-13); + data.append(-71); + data.append(119); + data.append(29); + data.append(-29); + data.append(32); + data.append(62); + data.append(47); + data.append(7); + data.append(-123); + data.append(86); + data.append(-121); + data.append(-96); + data.append(-38); + data.append(-42); + data.append(-57); + data.append(34); + data.append(-11); + data.append(86); + data.append(119); + data.append(-27); + data.append(-92); + data.append(62); + data.append(120); + data.append(2); + data.append(34); + data.append(-31); + data.append(-59); + data.append(45); + data.append(-14); + data.append(-92); + data.append(-54); + data.append(121); + data.append(38); + data.append(-99); + data.append(-73); + data.append(-89); + data.append(111); + data.append(-103); + data.append(-37); + data.append(22); + data.append(113); + data.append(-9); + data.append(-70); + data.append(-102); + data.append(85); + data.append(-78); + data.append(-19); + data.append(126); + data.append(16); + data.append(-15); + data.append(-4); + data.append(112); + data.append(-115); + data.append(57); + data.append(54); + data.append(81); + data.append(38); + data.append(7); + data.append(-102); + data.append(111); + data.append(-40); + data.append(-101); + data.append(42); + data.append(88); + data.append(120); + data.append(44); + data.append(64); + data.append(99); + data.append(-24); + data.append(-6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_i8_3d/output_0.cairo b/tests/nodes/clip_i8_3d/output_0.cairo index c5fbd41f4..b45241f30 100644 --- a/tests/nodes/clip_i8_3d/output_0.cairo +++ b/tests/nodes/clip_i8_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 10, sign: true }); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(6); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-8); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(2); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(18); + data.append(7); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-4); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-8); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(15); + data.append(17); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(6); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(8); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(7); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(14); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(9); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-5); + data.append(-10); + data.append(-10); + data.append(20); + data.append(10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(12); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(11); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(14); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(2); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-9); + data.append(-10); + data.append(20); + data.append(-10); + data.append(13); + data.append(-10); + data.append(-10); + data.append(12); + data.append(20); + data.append(-10); + data.append(-10); + data.append(6); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(0); + data.append(20); + data.append(4); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(7); + data.append(1); + data.append(11); + data.append(-9); + data.append(20); + data.append(-10); + data.append(3); + data.append(8); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(12); + data.append(-10); + data.append(-10); + data.append(-7); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-8); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-2); + data.append(20); + data.append(14); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-3); + data.append(16); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(13); + data.append(11); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(18); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(19); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(11); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(7); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(13); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-6); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(16); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(1); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(0); + data.append(-10); + data.append(-10); + data.append(6); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(7); + data.append(-10); + data.append(8); + data.append(20); + data.append(20); + data.append(20); + data.append(6); + data.append(-10); + data.append(20); + data.append(6); + data.append(-10); + data.append(11); + data.append(-7); + data.append(20); + data.append(1); + data.append(-10); + data.append(20); + data.append(20); + data.append(8); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(3); + data.append(-10); + data.append(4); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(18); + data.append(12); + data.append(-10); + data.append(12); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-2); + data.append(6); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-7); + data.append(10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(2); + data.append(20); + data.append(20); + data.append(18); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(18); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-7); + data.append(-8); + data.append(20); + data.append(7); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(14); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(13); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(1); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(15); + data.append(-10); + data.append(20); + data.append(9); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-4); + data.append(20); + data.append(20); + data.append(5); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-9); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(5); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(17); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-3); + data.append(20); + data.append(-10); + data.append(6); + data.append(-10); + data.append(-10); + data.append(-6); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-8); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-7); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(15); + data.append(-10); + data.append(20); + data.append(2); + data.append(-10); + data.append(1); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(17); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(2); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(18); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(9); + data.append(-10); + data.append(-10); + data.append(10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-4); + data.append(20); + data.append(10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(16); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(7); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(4); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(12); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-3); + data.append(8); + data.append(20); + data.append(-10); + data.append(-10); + data.append(11); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(0); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-4); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(5); + data.append(-10); + data.append(-5); + data.append(3); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(7); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(2); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-10); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(-9); + data.append(-10); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(16); + data.append(-10); + data.append(-4); + data.append(20); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(7); + data.append(-10); + data.append(20); + data.append(-10); + data.append(-10); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(-10); + data.append(-6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_u32_2d.cairo b/tests/nodes/clip_u32_2d.cairo index 006f6d914..1358896ea 100644 --- a/tests/nodes/clip_u32_2d.cairo +++ b/tests/nodes/clip_u32_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -14,7 +14,7 @@ fn test_clip_u32_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0.clip(Option::Some(10), Option::Some(20)); + let y = input_0.clip(Option::Some(10_u32), Option::Some(20_u32)); assert_eq(y, z); } diff --git a/tests/nodes/clip_u32_2d/input_0.cairo b/tests/nodes/clip_u32_2d/input_0.cairo index d0527cfd3..0cbfcc616 100644 --- a/tests/nodes/clip_u32_2d/input_0.cairo +++ b/tests/nodes/clip_u32_2d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(139); - data.append(156); - data.append(247); - data.append(79); - data.append(199); - data.append(238); - data.append(54); - data.append(139); + data.append(102); + data.append(105); + data.append(111); + data.append(39); + data.append(165); + data.append(3); + data.append(165); + data.append(196); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_u32_2d/output_0.cairo b/tests/nodes/clip_u32_2d/output_0.cairo index 844f79380..50df1465e 100644 --- a/tests/nodes/clip_u32_2d/output_0.cairo +++ b/tests/nodes/clip_u32_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,7 +13,7 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(20); + data.append(10); data.append(20); data.append(20); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/clip_u32_3d.cairo b/tests/nodes/clip_u32_3d.cairo index a61838de3..0f6400d7c 100644 --- a/tests/nodes/clip_u32_3d.cairo +++ b/tests/nodes/clip_u32_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] @@ -14,7 +14,7 @@ fn test_clip_u32_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0.clip(Option::Some(10), Option::Some(20)); + let y = input_0.clip(Option::Some(10_u32), Option::Some(20_u32)); assert_eq(y, z); } diff --git a/tests/nodes/clip_u32_3d/input_0.cairo b/tests/nodes/clip_u32_3d/input_0.cairo index 67f15cdb6..35229f272 100644 --- a/tests/nodes/clip_u32_3d/input_0.cairo +++ b/tests/nodes/clip_u32_3d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(99); + data.append(135); + data.append(235); + data.append(21); data.append(46); + data.append(138); + data.append(25); + data.append(138); + data.append(155); + data.append(127); + data.append(193); + data.append(119); + data.append(237); + data.append(226); + data.append(82); + data.append(74); + data.append(93); + data.append(65); + data.append(23); + data.append(121); + data.append(147); + data.append(31); + data.append(204); + data.append(127); + data.append(170); + data.append(32); + data.append(133); + data.append(254); + data.append(98); + data.append(162); + data.append(3); + data.append(239); + data.append(104); + data.append(44); + data.append(254); + data.append(60); + data.append(163); + data.append(50); + data.append(213); + data.append(208); + data.append(181); + data.append(62); + data.append(236); + data.append(154); + data.append(99); + data.append(61); + data.append(204); + data.append(36); + data.append(49); + data.append(160); + data.append(136); + data.append(67); data.append(149); + data.append(56); + data.append(13); + data.append(141); + data.append(133); + data.append(77); + data.append(97); + data.append(204); + data.append(254); data.append(119); - data.append(222); - data.append(27); - data.append(109); - data.append(180); + data.append(216); + data.append(221); + data.append(80); + data.append(80); + data.append(52); + data.append(172); + data.append(135); + data.append(206); data.append(1); - data.append(176); - data.append(233); - data.append(202); - data.append(232); - data.append(179); - data.append(183); - data.append(195); - data.append(81); - data.append(38); - data.append(30); + data.append(213); + data.append(156); + data.append(151); data.append(153); - data.append(201); - data.append(91); - data.append(221); - data.append(203); - data.append(122); - data.append(228); - data.append(246); - data.append(123); - data.append(55); - data.append(38); data.append(9); - data.append(206); - data.append(38); - data.append(191); - data.append(10); - data.append(188); - data.append(38); - data.append(179); - data.append(244); - data.append(75); - data.append(240); - data.append(88); - data.append(200); - data.append(121); - data.append(88); - data.append(155); - data.append(239); - data.append(221); - data.append(3); - data.append(214); - data.append(143); + data.append(114); + data.append(12); + data.append(41); + data.append(60); + data.append(157); + data.append(2); + data.append(80); + data.append(60); + data.append(45); + data.append(41); + data.append(15); + data.append(24); + data.append(53); + data.append(182); + data.append(67); + data.append(7); + data.append(55); + data.append(15); + data.append(237); + data.append(1); data.append(23); - data.append(164); data.append(174); - data.append(112); - data.append(219); - data.append(70); - data.append(254); - data.append(230); - data.append(98); + data.append(55); + data.append(172); + data.append(8); + data.append(50); + data.append(209); + data.append(130); + data.append(185); + data.append(123); + data.append(173); + data.append(65); + data.append(148); + data.append(85); + data.append(111); data.append(122); - data.append(13); - data.append(66); - data.append(15); - data.append(253); - data.append(225); - data.append(217); - data.append(6); - data.append(67); - data.append(144); + data.append(28); data.append(40); - data.append(193); - data.append(106); - data.append(222); - data.append(29); - data.append(100); - data.append(68); - data.append(49); + data.append(115); + data.append(180); + data.append(43); + data.append(189); + data.append(62); + data.append(192); + data.append(48); + data.append(150); + data.append(74); + data.append(178); + data.append(88); + data.append(92); + data.append(97); data.append(157); - data.append(163); - data.append(228); - data.append(193); - data.append(182); - data.append(233); - data.append(28); - data.append(227); - data.append(151); - data.append(226); - data.append(208); - data.append(148); + data.append(91); + data.append(90); + data.append(102); + data.append(143); + data.append(32); + data.append(130); + data.append(155); + data.append(198); + data.append(215); + data.append(74); + data.append(86); + data.append(136); + data.append(96); + data.append(23); + data.append(234); + data.append(215); + data.append(42); + data.append(88); + data.append(104); + data.append(66); + data.append(45); data.append(117); - data.append(220); - data.append(186); - data.append(20); + data.append(201); + data.append(61); + data.append(73); + data.append(28); + data.append(79); + data.append(196); data.append(171); - data.append(36); - data.append(143); - data.append(64); - data.append(224); + data.append(44); + data.append(50); + data.append(191); + data.append(229); + data.append(108); + data.append(173); + data.append(162); + data.append(106); + data.append(193); + data.append(4); + data.append(41); + data.append(200); + data.append(57); + data.append(33); + data.append(42); + data.append(68); data.append(152); - data.append(53); + data.append(147); data.append(140); - data.append(215); - data.append(152); - data.append(38); - data.append(19); - data.append(12); - data.append(127); - data.append(137); - data.append(7); - data.append(119); - data.append(249); - data.append(87); data.append(108); - data.append(234); - data.append(230); - data.append(161); - data.append(131); - data.append(98); - data.append(210); - data.append(8); - data.append(97); - data.append(251); + data.append(20); + data.append(52); + data.append(175); + data.append(99); + data.append(204); + data.append(81); + data.append(3); + data.append(15); + data.append(159); + data.append(81); + data.append(61); + data.append(31); + data.append(105); + data.append(111); + data.append(87); data.append(6); - data.append(161); - data.append(182); - data.append(226); - data.append(251); - data.append(45); - data.append(219); + data.append(138); + data.append(28); + data.append(107); + data.append(204); + data.append(147); + data.append(136); + data.append(207); + data.append(162); + data.append(169); + data.append(233); + data.append(213); + data.append(90); + data.append(162); + data.append(3); + data.append(112); + data.append(97); + data.append(139); + data.append(28); + data.append(212); + data.append(32); + data.append(18); data.append(217); - data.append(99); - data.append(47); - data.append(137); + data.append(221); + data.append(207); + data.append(24); + data.append(187); + data.append(243); + data.append(229); + data.append(55); + data.append(97); + data.append(158); + data.append(241); + data.append(78); + data.append(151); data.append(186); - data.append(150); - data.append(80); - data.append(206); - data.append(64); - data.append(60); - data.append(147); - data.append(137); - data.append(209); - data.append(77); + data.append(211); + data.append(133); + data.append(30); data.append(67); - data.append(192); - data.append(185); - data.append(31); - data.append(191); - data.append(155); - data.append(188); - data.append(227); - data.append(38); - data.append(227); - data.append(184); + data.append(73); + data.append(74); + data.append(7); data.append(164); - data.append(15); - data.append(179); - data.append(242); - data.append(38); - data.append(182); - data.append(132); - data.append(239); - data.append(180); - data.append(161); - data.append(26); - data.append(148); - data.append(143); - data.append(137); - data.append(132); - data.append(223); - data.append(63); - data.append(10); - data.append(155); - data.append(174); - data.append(13); - data.append(21); - data.append(244); + data.append(73); + data.append(65); + data.append(41); + data.append(74); + data.append(6); + data.append(39); + data.append(203); + data.append(250); + data.append(224); + data.append(66); + data.append(58); + data.append(151); + data.append(162); + data.append(154); + data.append(214); + data.append(247); data.append(57); - data.append(234); - data.append(174); - data.append(249); - data.append(146); - data.append(7); - data.append(0); - data.append(67); - data.append(84); - data.append(210); + data.append(60); + data.append(72); data.append(152); - data.append(80); - data.append(25); - data.append(0); - data.append(168); + data.append(37); + data.append(110); + data.append(196); + data.append(128); + data.append(7); + data.append(46); + data.append(177); + data.append(212); data.append(61); - data.append(136); - data.append(227); data.append(120); - data.append(25); - data.append(69); - data.append(149); - data.append(225); - data.append(163); + data.append(141); + data.append(201); + data.append(74); + data.append(29); + data.append(113); data.append(139); - data.append(120); - data.append(243); - data.append(223); - data.append(147); - data.append(120); - data.append(145); - data.append(73); - data.append(148); - data.append(149); - data.append(237); - data.append(106); - data.append(127); - data.append(216); - data.append(124); - data.append(44); + data.append(20); + data.append(201); + data.append(240); + data.append(194); data.append(36); - data.append(137); - data.append(160); - data.append(221); - data.append(229); - data.append(215); + data.append(241); + data.append(170); + data.append(152); + data.append(237); + data.append(2); + data.append(66); + data.append(33); + data.append(26); + data.append(10); + data.append(237); + data.append(85); + data.append(68); + data.append(63); + data.append(167); + data.append(194); data.append(213); + data.append(162); + data.append(102); + data.append(158); + data.append(37); + data.append(115); + data.append(212); + data.append(83); + data.append(82); + data.append(51); + data.append(65); + data.append(140); data.append(5); - data.append(235); - data.append(23); - data.append(111); - data.append(111); - data.append(1); - data.append(85); data.append(225); - data.append(112); - data.append(100); - data.append(36); - data.append(114); - data.append(39); - data.append(72); - data.append(84); - data.append(11); - data.append(80); - data.append(117); - data.append(35); + data.append(70); + data.append(66); + data.append(62); + data.append(47); + data.append(210); + data.append(61); + data.append(145); + data.append(22); + data.append(124); + data.append(154); + data.append(138); + data.append(173); data.append(29); - data.append(33); - data.append(15); + data.append(41); + data.append(208); + data.append(191); + data.append(133); + data.append(68); + data.append(13); + data.append(144); + data.append(139); + data.append(69); + data.append(214); + data.append(157); + data.append(139); + data.append(123); + data.append(86); + data.append(199); + data.append(45); + data.append(7); + data.append(138); data.append(184); - data.append(113); - data.append(172); - data.append(147); - data.append(80); - data.append(230); - data.append(195); - data.append(103); - data.append(54); - data.append(236); - data.append(236); + data.append(89); + data.append(73); data.append(107); - data.append(129); - data.append(84); - data.append(19); - data.append(2); - data.append(76); - data.append(235); - data.append(211); + data.append(109); + data.append(187); data.append(79); - data.append(78); - data.append(83); - data.append(84); - data.append(202); - data.append(115); - data.append(212); - data.append(186); - data.append(132); - data.append(238); + data.append(41); + data.append(247); + data.append(106); + data.append(181); + data.append(59); + data.append(63); + data.append(35); + data.append(185); + data.append(127); + data.append(221); + data.append(62); + data.append(191); + data.append(4); + data.append(103); + data.append(219); + data.append(217); + data.append(12); + data.append(4); + data.append(227); + data.append(201); + data.append(219); + data.append(60); + data.append(210); + data.append(190); + data.append(193); + data.append(23); + data.append(85); data.append(223); - data.append(33); - data.append(101); - data.append(189); - data.append(31); - data.append(46); - data.append(32); - data.append(94); - data.append(24); - data.append(158); - data.append(144); - data.append(208); - data.append(121); - data.append(74); - data.append(135); - data.append(244); - data.append(176); - data.append(199); - data.append(116); - data.append(177); + data.append(254); + data.append(224); + data.append(40); + data.append(2); + data.append(173); + data.append(85); + data.append(39); + data.append(13); + data.append(172); + data.append(224); + data.append(66); + data.append(253); + data.append(198); data.append(51); - data.append(164); - data.append(93); + data.append(153); + data.append(57); data.append(138); - data.append(60); - data.append(15); - data.append(46); - data.append(252); + data.append(217); + data.append(126); + data.append(149); + data.append(47); + data.append(142); + data.append(230); + data.append(6); data.append(102); - data.append(3); - data.append(184); - data.append(221); - data.append(1); + data.append(68); + data.append(180); + data.append(123); + data.append(241); + data.append(176); + data.append(110); + data.append(8); + data.append(248); + data.append(155); + data.append(136); + data.append(47); + data.append(217); + data.append(25); + data.append(134); + data.append(2); + data.append(254); + data.append(162); + data.append(234); + data.append(111); + data.append(164); + data.append(248); + data.append(106); + data.append(227); + data.append(207); data.append(242); - data.append(224); - data.append(21); - data.append(143); - data.append(53); + data.append(39); + data.append(47); data.append(130); - data.append(93); - data.append(186); - data.append(31); - data.append(105); - data.append(164); - data.append(59); - data.append(104); - data.append(198); - data.append(66); - data.append(175); + data.append(117); + data.append(61); + data.append(24); + data.append(233); data.append(207); - data.append(189); - data.append(30); - data.append(8); - data.append(114); - data.append(96); - data.append(166); - data.append(247); - data.append(228); - data.append(235); - data.append(19); - data.append(169); - data.append(191); - data.append(76); - data.append(167); - data.append(156); - data.append(175); - data.append(3); - data.append(120); - data.append(171); - data.append(161); - data.append(100); - data.append(236); - data.append(171); - data.append(101); - data.append(215); - data.append(18); - data.append(74); - data.append(144); - data.append(50); - data.append(21); - data.append(227); - data.append(42); - data.append(100); - data.append(90); - data.append(216); - data.append(67); - data.append(90); - data.append(220); - data.append(170); - data.append(145); - data.append(36); - data.append(213); - data.append(150); - data.append(38); - data.append(171); - data.append(172); + data.append(12); + data.append(73); + data.append(98); + data.append(184); + data.append(253); + data.append(79); + data.append(243); + data.append(23); data.append(62); - data.append(254); - data.append(67); + data.append(92); + data.append(213); + data.append(161); + data.append(89); + data.append(124); + data.append(245); data.append(159); - data.append(132); - data.append(83); - data.append(30); - data.append(206); - data.append(140); - data.append(0); + data.append(233); data.append(59); + data.append(124); + data.append(194); + data.append(239); + data.append(115); + data.append(175); + data.append(40); + data.append(120); + data.append(103); + data.append(33); + data.append(240); + data.append(219); + data.append(36); + data.append(60); + data.append(142); + data.append(133); data.append(19); - data.append(223); - data.append(137); - data.append(108); - data.append(252); + data.append(73); + data.append(29); + data.append(74); + data.append(14); + data.append(50); + data.append(107); + data.append(229); + data.append(177); + data.append(31); data.append(105); - data.append(124); - data.append(185); + data.append(233); + data.append(38); + data.append(213); + data.append(156); + data.append(188); + data.append(173); + data.append(88); + data.append(226); + data.append(234); + data.append(31); data.append(44); - data.append(5); - data.append(152); - data.append(217); - data.append(142); - data.append(58); - data.append(182); - data.append(246); - data.append(204); - data.append(192); - data.append(195); - data.append(63); - data.append(111); - data.append(130); - data.append(241); - data.append(245); - data.append(83); - data.append(77); - data.append(161); - data.append(122); - data.append(4); - data.append(89); - data.append(130); - data.append(188); - data.append(97); - data.append(205); - data.append(165); data.append(16); - data.append(198); - data.append(71); - data.append(114); - data.append(166); - data.append(251); - data.append(148); - data.append(39); - data.append(190); - data.append(26); - data.append(95); - data.append(228); - data.append(9); - data.append(133); - data.append(253); - data.append(116); - data.append(113); - data.append(2); - data.append(232); - data.append(46); - data.append(177); - data.append(18); - data.append(144); + data.append(240); + data.append(191); + data.append(173); + data.append(208); data.append(9); - data.append(158); - data.append(140); - data.append(63); - data.append(194); - data.append(50); + data.append(61); data.append(217); - data.append(151); - data.append(90); - data.append(171); - data.append(231); - data.append(150); - data.append(66); - data.append(46); - data.append(172); - data.append(137); - data.append(63); - data.append(21); - data.append(232); - data.append(135); - data.append(127); - data.append(144); - data.append(10); - data.append(53); - data.append(248); - data.append(120); - data.append(248); - data.append(126); - data.append(185); - data.append(254); - data.append(73); - data.append(149); - data.append(38); - data.append(132); - data.append(249); - data.append(182); + data.append(111); + data.append(230); + data.append(91); + data.append(57); + data.append(51); + data.append(102); + data.append(52); data.append(174); - data.append(251); - data.append(181); - data.append(178); + data.append(19); + data.append(149); + data.append(226); data.append(84); - data.append(212); + data.append(159); + data.append(76); + data.append(34); + data.append(93); + data.append(34); + data.append(228); + data.append(227); + data.append(126); + data.append(111); + data.append(112); + data.append(136); data.append(51); - data.append(24); - data.append(210); - data.append(223); - data.append(130); - data.append(142); - data.append(11); - data.append(55); - data.append(163); + data.append(254); + data.append(241); + data.append(36); + data.append(18); + data.append(126); + data.append(90); + data.append(250); + data.append(15); data.append(185); - data.append(202); - data.append(37); - data.append(151); - data.append(100); - data.append(24); - data.append(28); - data.append(252); + data.append(184); + data.append(47); + data.append(153); + data.append(101); + data.append(81); + data.append(209); + data.append(82); + data.append(225); + data.append(156); + data.append(85); + data.append(128); data.append(102); - data.append(13); - data.append(11); - data.append(226); - data.append(112); - data.append(242); - data.append(202); - data.append(203); - data.append(235); - data.append(43); - data.append(23); - data.append(1); + data.append(65); data.append(30); - data.append(245); - data.append(136); - data.append(198); - data.append(74); - data.append(226); - data.append(143); - data.append(1); data.append(25); - data.append(42); - data.append(145); - data.append(169); - data.append(114); - data.append(71); - data.append(137); - data.append(225); - data.append(18); + data.append(10); + data.append(233); + data.append(209); + data.append(206); data.append(123); - data.append(228); - data.append(87); - data.append(23); - data.append(205); - data.append(121); - data.append(222); - data.append(42); - data.append(122); - data.append(124); - data.append(103); - data.append(202); - data.append(97); - data.append(85); - data.append(214); - data.append(149); - data.append(171); - data.append(222); + data.append(158); data.append(204); - data.append(202); - data.append(117); - data.append(134); - data.append(126); - data.append(50); - data.append(84); - data.append(143); - data.append(110); - data.append(223); - data.append(77); - data.append(243); - data.append(173); - data.append(115); - data.append(79); - data.append(74); - data.append(119); - data.append(26); - data.append(192); + data.append(82); + data.append(246); + data.append(190); + data.append(177); + data.append(102); + data.append(238); + data.append(191); data.append(249); - data.append(237); - data.append(161); - data.append(7); - data.append(163); - data.append(7); - data.append(232); + data.append(194); + data.append(157); + data.append(107); + data.append(191); + data.append(27); + data.append(188); + data.append(56); data.append(159); - data.append(247); + data.append(243); + data.append(241); + data.append(122); + data.append(28); + data.append(183); data.append(154); - data.append(169); - data.append(93); - data.append(212); - data.append(57); - data.append(52); - data.append(121); - data.append(124); - data.append(120); - data.append(210); - data.append(77); - data.append(145); - data.append(159); - data.append(104); + data.append(53); + data.append(74); + data.append(138); + data.append(134); data.append(37); - data.append(83); - data.append(210); - data.append(73); - data.append(40); - data.append(156); - data.append(2); - data.append(40); - data.append(31); - data.append(77); - data.append(163); - data.append(222); - data.append(92); - data.append(78); - data.append(223); - data.append(208); - data.append(198); - data.append(167); - data.append(88); - data.append(24); - data.append(59); - data.append(206); - data.append(247); - data.append(157); - data.append(207); - data.append(100); - data.append(181); - data.append(101); - data.append(80); + data.append(212); + data.append(27); + data.append(173); + data.append(109); + data.append(32); + data.append(61); + data.append(56); data.append(107); - data.append(54); - data.append(110); - data.append(242); - data.append(183); - data.append(194); - data.append(118); - data.append(41); - data.append(36); - data.append(192); - data.append(224); - data.append(97); - data.append(182); - data.append(239); - data.append(90); - data.append(159); - data.append(115); - data.append(198); - data.append(22); - data.append(181); - data.append(192); - data.append(46); - data.append(246); - data.append(122); - data.append(64); - data.append(12); - data.append(231); - data.append(229); - data.append(35); - data.append(105); - data.append(80); - data.append(213); - data.append(251); - data.append(223); - data.append(140); + data.append(26); + data.append(240); + data.append(167); + data.append(66); + data.append(143); + data.append(92); data.append(160); - data.append(231); - data.append(232); - data.append(11); + data.append(150); + data.append(90); data.append(244); - data.append(82); - data.append(224); - data.append(105); - data.append(119); - data.append(196); + data.append(72); data.append(190); - data.append(167); - data.append(189); - data.append(120); - data.append(30); - data.append(213); - data.append(151); - data.append(43); - data.append(242); - data.append(18); - data.append(50); - data.append(183); + data.append(96); + data.append(240); + data.append(253); + data.append(62); + data.append(48); + data.append(22); + data.append(46); + data.append(164); data.append(172); - data.append(186); - data.append(70); - data.append(119); - data.append(148); - data.append(82); - data.append(102); - data.append(199); - data.append(155); - data.append(82); + data.append(84); + data.append(6); + data.append(233); + data.append(196); + data.append(63); + data.append(162); + data.append(138); + data.append(160); + data.append(216); + data.append(191); + data.append(122); + data.append(27); + data.append(90); + data.append(37); + data.append(246); + data.append(252); data.append(95); - data.append(35); - data.append(50); - data.append(53); - data.append(10); - data.append(234); - data.append(5); - data.append(153); - data.append(13); - data.append(4); - data.append(184); - data.append(67); - data.append(104); - data.append(82); - data.append(136); - data.append(103); + data.append(241); + data.append(183); + data.append(183); + data.append(163); + data.append(197); + data.append(232); + data.append(208); + data.append(191); data.append(226); - data.append(27); - data.append(10); - data.append(27); - data.append(77); - data.append(73); - data.append(139); - data.append(139); - data.append(22); - data.append(175); - data.append(4); - data.append(7); - data.append(185); - data.append(218); - data.append(35); - data.append(181); - data.append(3); - data.append(168); - data.append(68); - data.append(239); - data.append(77); - data.append(206); - data.append(113); - data.append(120); - data.append(2); - data.append(0); - data.append(244); - data.append(55); + data.append(178); + data.append(93); + data.append(249); + data.append(93); + data.append(116); + data.append(129); + data.append(134); + data.append(101); + data.append(100); + data.append(156); + data.append(26); + data.append(187); + data.append(247); + data.append(50); + data.append(43); data.append(227); - data.append(210); - data.append(42); - data.append(16); - data.append(127); - data.append(1); - data.append(87); + data.append(188); data.append(237); + data.append(23); + data.append(192); + data.append(224); + data.append(253); data.append(164); - data.append(25); - data.append(173); - data.append(231); - data.append(174); - data.append(219); - data.append(2); - data.append(16); - data.append(33); - data.append(53); - data.append(129); - data.append(102); - data.append(234); - data.append(104); - data.append(83); - data.append(139); + data.append(224); data.append(75); - data.append(41); data.append(172); - data.append(134); - data.append(175); - data.append(185); - data.append(17); - data.append(134); + data.append(96); + data.append(248); + data.append(112); + data.append(0); + data.append(20); + data.append(84); + data.append(52); + data.append(124); + data.append(217); + data.append(231); + data.append(65); + data.append(209); + data.append(85); + data.append(180); + data.append(51); + data.append(248); + data.append(246); + data.append(31); + data.append(194); + data.append(89); + data.append(155); + data.append(151); + data.append(154); + data.append(180); + data.append(29); + data.append(115); data.append(35); - data.append(69); - data.append(27); - data.append(99); - data.append(77); - data.append(46); - data.append(211); - data.append(14); - data.append(8); - data.append(4); - data.append(244); - data.append(199); - data.append(219); - data.append(226); - data.append(17); - data.append(175); - data.append(144); - data.append(206); + data.append(207); + data.append(100); + data.append(113); + data.append(237); + data.append(216); + data.append(186); + data.append(155); + data.append(183); data.append(130); - data.append(24); + data.append(113); + data.append(63); + data.append(254); + data.append(246); + data.append(254); + data.append(67); + data.append(192); + data.append(110); + data.append(35); + data.append(91); + data.append(76); + data.append(171); data.append(157); - data.append(20); + data.append(109); + data.append(177); + data.append(240); data.append(69); - data.append(27); - data.append(253); - data.append(10); - data.append(174); + data.append(165); + data.append(97); + data.append(25); data.append(160); - data.append(186); - data.append(92); - data.append(30); - data.append(192); - data.append(215); + data.append(5); + data.append(205); + data.append(217); + data.append(141); + data.append(185); + data.append(235); + data.append(174); + data.append(106); + data.append(166); data.append(237); - data.append(182); - data.append(245); - data.append(50); - data.append(91); - data.append(172); - data.append(123); - data.append(36); - data.append(218); + data.append(47); data.append(221); - data.append(48); - data.append(205); + data.append(68); + data.append(101); + data.append(161); + data.append(37); + data.append(30); + data.append(23); + data.append(23); + data.append(122); + data.append(7); + data.append(53); + data.append(66); + data.append(28); + data.append(254); + data.append(155); + data.append(215); + data.append(199); data.append(43); - data.append(151); + data.append(211); data.append(65); - data.append(98); - data.append(115); - data.append(0); - data.append(238); - data.append(244); - data.append(230); - data.append(158); - data.append(185); - data.append(152); - data.append(173); - data.append(72); - data.append(58); + data.append(243); + data.append(210); + data.append(156); + data.append(202); + data.append(199); + data.append(239); + data.append(33); + data.append(117); + data.append(151); + data.append(78); + data.append(63); + data.append(234); + data.append(105); + data.append(108); + data.append(97); + data.append(121); + data.append(30); + data.append(20); + data.append(76); + data.append(235); + data.append(215); + data.append(116); + data.append(106); + data.append(127); + data.append(63); + data.append(97); + data.append(84); + data.append(151); + data.append(140); + data.append(169); + data.append(16); + data.append(227); + data.append(104); + data.append(148); + data.append(149); + data.append(175); + data.append(71); + data.append(89); + data.append(224); + data.append(239); + data.append(97); + data.append(71); data.append(204); - data.append(146); + data.append(3); + data.append(10); data.append(18); - data.append(236); + data.append(62); + data.append(126); data.append(17); + data.append(7); + data.append(216); + data.append(191); + data.append(179); data.append(193); - data.append(126); - data.append(142); - data.append(62); - data.append(220); + data.append(103); + data.append(106); + data.append(98); + data.append(2); + data.append(201); + data.append(94); + data.append(151); + data.append(42); + data.append(156); + data.append(4); + data.append(110); + data.append(90); + data.append(109); + data.append(200); + data.append(162); + data.append(155); + data.append(217); + data.append(39); + data.append(199); + data.append(235); + data.append(212); + data.append(204); + data.append(166); + data.append(210); + data.append(143); + data.append(91); + data.append(124); + data.append(191); + data.append(51); + data.append(110); + data.append(13); + data.append(136); + data.append(4); + data.append(121); + data.append(163); + data.append(193); + data.append(194); + data.append(168); + data.append(124); + data.append(236); + data.append(133); + data.append(16); + data.append(61); + data.append(163); + data.append(26); + data.append(82); + data.append(198); + data.append(103); data.append(254); - data.append(167); - data.append(241); - data.append(97); - data.append(34); - data.append(207); + data.append(194); + data.append(136); + data.append(193); + data.append(191); + data.append(58); + data.append(155); + data.append(132); + data.append(58); + data.append(184); + data.append(66); + data.append(153); + data.append(224); + data.append(1); + data.append(77); + data.append(217); + data.append(113); + data.append(25); + data.append(93); + data.append(243); + data.append(244); + data.append(238); data.append(57); - data.append(42); - data.append(120); + data.append(116); + data.append(254); + data.append(34); + data.append(197); + data.append(109); + data.append(243); + data.append(198); + data.append(93); + data.append(244); + data.append(51); + data.append(214); + data.append(101); + data.append(88); + data.append(51); + data.append(222); data.append(79); - data.append(19); - data.append(204); - data.append(237); - data.append(124); - data.append(37); - data.append(137); - data.append(184); + data.append(149); + data.append(32); + data.append(46); + data.append(62); + data.append(122); + data.append(145); + data.append(5); + data.append(98); + data.append(91); data.append(36); - data.append(167); - data.append(174); - data.append(29); + data.append(172); + data.append(213); + data.append(94); data.append(102); - data.append(13); - data.append(246); - data.append(5); + data.append(117); + data.append(81); + data.append(26); data.append(17); - data.append(179); + data.append(123); + data.append(93); + data.append(184); + data.append(65); + data.append(13); + data.append(25); + data.append(31); + data.append(95); + data.append(66); + data.append(9); + data.append(221); + data.append(195); + data.append(30); data.append(1); - data.append(240); - data.append(46); - data.append(96); - data.append(181); - data.append(141); - data.append(107); - data.append(58); - data.append(50); - data.append(226); - data.append(122); - data.append(145); - data.append(169); - data.append(178); - data.append(35); - data.append(192); - data.append(229); - data.append(244); - data.append(90); - data.append(2); - data.append(22); - data.append(20); + data.append(235); + data.append(247); + data.append(147); + data.append(253); + data.append(32); + data.append(38); + data.append(86); + data.append(30); + data.append(85); + data.append(170); + data.append(32); + data.append(156); + data.append(182); data.append(153); + data.append(114); + data.append(237); + data.append(174); + data.append(157); + data.append(151); + data.append(207); + data.append(147); + data.append(73); + data.append(248); + data.append(52); + data.append(165); + data.append(46); + data.append(49); + data.append(127); data.append(183); - data.append(182); - data.append(19); - data.append(80); - data.append(220); - data.append(173); - data.append(143); - data.append(215); - data.append(34); - data.append(34); - data.append(104); - data.append(178); - data.append(111); - data.append(133); - data.append(222); - data.append(116); - data.append(137); - data.append(81); - data.append(108); - data.append(212); - data.append(45); - data.append(100); - data.append(161); - data.append(100); - data.append(14); + data.append(64); + data.append(11); + data.append(151); + data.append(234); + data.append(239); + data.append(239); + data.append(141); data.append(170); - data.append(50); - data.append(146); - data.append(220); data.append(112); - data.append(243); - data.append(235); - data.append(48); - data.append(98); - data.append(219); - data.append(134); - data.append(143); - data.append(74); - data.append(17); - data.append(108); - data.append(101); - data.append(178); - data.append(129); - data.append(236); - data.append(33); - data.append(178); - data.append(71); - data.append(157); - data.append(115); - data.append(177); - data.append(246); - data.append(96); - data.append(108); - data.append(61); - data.append(97); - data.append(218); - data.append(216); - data.append(12); - data.append(10); - data.append(187); - data.append(193); - data.append(193); - data.append(101); - data.append(0); - data.append(152); - data.append(128); - data.append(40); - data.append(95); - data.append(27); - data.append(123); - data.append(202); - data.append(157); - data.append(19); - data.append(210); - data.append(210); - data.append(4); - data.append(229); - data.append(235); - data.append(3); - data.append(29); - data.append(164); - data.append(24); + data.append(137); + data.append(78); + data.append(13); + data.append(144); + data.append(125); + data.append(76); data.append(91); - data.append(22); - data.append(148); - data.append(5); + data.append(171); + data.append(78); + data.append(41); + data.append(159); + data.append(162); + data.append(101); + data.append(149); data.append(173); - data.append(249); - data.append(223); - data.append(20); - data.append(80); - data.append(249); - data.append(219); - data.append(196); - data.append(25); + data.append(149); + data.append(137); + data.append(195); + data.append(79); data.append(121); - data.append(133); + data.append(14); + data.append(151); + data.append(22); + data.append(209); + data.append(159); + data.append(62); + data.append(68); + data.append(151); + data.append(211); + data.append(82); data.append(60); - data.append(124); - data.append(136); - data.append(125); - data.append(140); - data.append(245); - data.append(52); - data.append(124); - data.append(19); + data.append(129); + data.append(6); + data.append(94); + data.append(71); + data.append(115); data.append(58); - data.append(216); - data.append(84); - data.append(180); - data.append(52); - data.append(7); data.append(204); - data.append(108); - data.append(1); - data.append(25); - data.append(74); - data.append(146); - data.append(49); + data.append(139); + data.append(23); + data.append(193); + data.append(229); + data.append(188); + data.append(147); + data.append(201); + data.append(231); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/clip_u32_3d/output_0.cairo b/tests/nodes/clip_u32_3d/output_0.cairo index f30db9767..cb2bc85ec 100644 --- a/tests/nodes/clip_u32_3d/output_0.cairo +++ b/tests/nodes/clip_u32_3d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -17,7 +17,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -43,7 +42,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -57,7 +55,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -65,46 +62,53 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(13); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(13); data.append(20); - data.append(15); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); + data.append(12); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(15); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); + data.append(15); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -114,11 +118,8 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(19); - data.append(12); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -129,10 +130,8 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -165,7 +164,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(15); data.append(20); data.append(20); data.append(20); @@ -176,15 +174,16 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); + data.append(20); + data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); - data.append(13); data.append(20); data.append(20); data.append(20); @@ -193,7 +192,8 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(10); - data.append(10); + data.append(15); + data.append(20); data.append(20); data.append(20); data.append(20); @@ -214,12 +214,16 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(18); + data.append(20); + data.append(20); data.append(20); data.append(20); data.append(20); @@ -234,7 +238,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -245,17 +248,16 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(11); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(15); data.append(20); data.append(20); data.append(20); @@ -266,12 +268,11 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(19); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -288,9 +289,11 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -309,15 +312,14 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); + data.append(20); data.append(20); - data.append(15); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -330,6 +332,10 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(13); + data.append(20); + data.append(20); + data.append(20); data.append(20); data.append(20); data.append(20); @@ -344,14 +350,12 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(19); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -360,9 +364,13 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(18); + data.append(10); + data.append(20); data.append(20); data.append(20); + data.append(12); + data.append(10); + data.append(20); data.append(20); data.append(20); data.append(20); @@ -375,9 +383,11 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); + data.append(13); data.append(20); data.append(20); data.append(20); @@ -390,11 +400,11 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); - data.append(19); data.append(20); data.append(20); + data.append(10); + data.append(20); data.append(20); data.append(20); data.append(20); @@ -409,6 +419,7 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -420,15 +431,14 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(16); data.append(20); + data.append(12); data.append(20); data.append(20); data.append(20); @@ -439,18 +449,14 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); - data.append(18); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -465,14 +471,15 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(19); data.append(20); data.append(20); data.append(20); + data.append(14); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -486,10 +493,12 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(16); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -498,9 +507,9 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(11); data.append(20); data.append(20); + data.append(19); data.append(20); data.append(20); data.append(20); @@ -510,8 +519,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(13); - data.append(11); data.append(20); data.append(20); data.append(20); @@ -520,15 +527,16 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); + data.append(20); + data.append(18); data.append(20); data.append(20); data.append(20); + data.append(15); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -537,11 +545,14 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(18); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); + data.append(20); + data.append(20); + data.append(20); data.append(20); data.append(20); data.append(20); @@ -578,9 +589,7 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -652,7 +661,13 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(12); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -665,7 +680,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(11); data.append(20); data.append(20); data.append(20); @@ -681,7 +695,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(18); data.append(20); data.append(20); data.append(20); @@ -698,12 +711,8 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); - data.append(10); data.append(20); - data.append(13); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -720,13 +729,10 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -734,16 +740,14 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); + data.append(20); data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(16); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -752,8 +756,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); - data.append(16); data.append(20); data.append(20); data.append(20); @@ -768,7 +770,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(17); data.append(20); data.append(20); data.append(20); @@ -777,14 +778,11 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(14); - data.append(10); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(17); + data.append(16); data.append(20); data.append(20); data.append(20); @@ -795,11 +793,15 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); + data.append(10); + data.append(10); + data.append(18); data.append(20); data.append(20); + data.append(17); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -807,11 +809,13 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -820,7 +824,6 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -832,10 +835,10 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(18); data.append(20); - data.append(17); + data.append(13); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -844,13 +847,13 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(16); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(19); data.append(20); data.append(20); data.append(20); @@ -862,10 +865,7 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(13); data.append(20); - data.append(10); - data.append(17); data.append(20); data.append(10); data.append(20); @@ -886,13 +886,11 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(19); data.append(20); data.append(20); data.append(20); @@ -901,6 +899,7 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); @@ -911,24 +910,27 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(17); data.append(20); data.append(20); data.append(20); - data.append(14); + data.append(20); + data.append(13); data.append(20); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); + data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(17); data.append(20); data.append(20); data.append(20); @@ -947,35 +949,30 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(12); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); + data.append(11); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(19); data.append(20); data.append(20); - data.append(10); data.append(20); + data.append(13); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); @@ -986,6 +983,7 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); + data.append(14); data.append(20); data.append(20); data.append(20); @@ -995,16 +993,18 @@ fn output_0() -> Tensor { data.append(20); data.append(20); data.append(20); - data.append(19); + data.append(20); + data.append(20); + data.append(10); + data.append(20); + data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); - data.append(10); data.append(20); data.append(20); data.append(20); diff --git a/tests/nodes/compress_fp16x16_3d_axis1.cairo b/tests/nodes/compress_fp16x16_3d_axis1.cairo index f110fd66d..2463dfa93 100644 --- a/tests/nodes/compress_fp16x16_3d_axis1.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis1.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp16x16_3d_axis1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp16x16_3d_axis1/input_0.cairo b/tests/nodes/compress_fp16x16_3d_axis1/input_0.cairo index 46162489f..c25709253 100644 --- a/tests/nodes/compress_fp16x16_3d_axis1/input_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_axis1/input_1.cairo b/tests/nodes/compress_fp16x16_3d_axis1/input_1.cairo index b97e1003b..5a1a7a54d 100644 --- a/tests/nodes/compress_fp16x16_3d_axis1/input_1.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp16x16_3d_axis1/output_0.cairo b/tests/nodes/compress_fp16x16_3d_axis1/output_0.cairo index 1ff0323a5..877efc6f4 100644 --- a/tests/nodes/compress_fp16x16_3d_axis1/output_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_axis2.cairo b/tests/nodes/compress_fp16x16_3d_axis2.cairo index 1115fb557..a425e0988 100644 --- a/tests/nodes/compress_fp16x16_3d_axis2.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis2.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp16x16_3d_axis2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp16x16_3d_axis2/input_0.cairo b/tests/nodes/compress_fp16x16_3d_axis2/input_0.cairo index 2ddf33488..ff29efe81 100644 --- a/tests/nodes/compress_fp16x16_3d_axis2/input_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_axis2/input_1.cairo b/tests/nodes/compress_fp16x16_3d_axis2/input_1.cairo index f1549f634..f0725aa11 100644 --- a/tests/nodes/compress_fp16x16_3d_axis2/input_1.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp16x16_3d_axis2/output_0.cairo b/tests/nodes/compress_fp16x16_3d_axis2/output_0.cairo index 4a9d7b81f..a301d8530 100644 --- a/tests/nodes/compress_fp16x16_3d_axis2/output_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_axis3.cairo b/tests/nodes/compress_fp16x16_3d_axis3.cairo index 76ef5f641..3ad15cc97 100644 --- a/tests/nodes/compress_fp16x16_3d_axis3.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis3.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp16x16_3d_axis3() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(3)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(3)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp16x16_3d_axis3/input_0.cairo b/tests/nodes/compress_fp16x16_3d_axis3/input_0.cairo index a189b31f1..fcb33a176 100644 --- a/tests/nodes/compress_fp16x16_3d_axis3/input_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis3/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_axis3/input_1.cairo b/tests/nodes/compress_fp16x16_3d_axis3/input_1.cairo index 8d36b9136..505c7f84c 100644 --- a/tests/nodes/compress_fp16x16_3d_axis3/input_1.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis3/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp16x16_3d_axis3/output_0.cairo b/tests/nodes/compress_fp16x16_3d_axis3/output_0.cairo index edfec2268..fd9fad4af 100644 --- a/tests/nodes/compress_fp16x16_3d_axis3/output_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_axis3/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_default.cairo b/tests/nodes/compress_fp16x16_3d_default.cairo index aff1849e2..4bff29c09 100644 --- a/tests/nodes/compress_fp16x16_3d_default.cairo +++ b/tests/nodes/compress_fp16x16_3d_default.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp16x16_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp16x16_3d_default/input_0.cairo b/tests/nodes/compress_fp16x16_3d_default/input_0.cairo index 22bb148eb..5d8deafac 100644 --- a/tests/nodes/compress_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_default/input_1.cairo b/tests/nodes/compress_fp16x16_3d_default/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/compress_fp16x16_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp16x16_3d_default/output_0.cairo b/tests/nodes/compress_fp16x16_3d_default/output_0.cairo index 32e64e952..052724b67 100644 --- a/tests/nodes/compress_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_noaxis.cairo b/tests/nodes/compress_fp16x16_3d_noaxis.cairo index 3c9645b1d..e637f47c8 100644 --- a/tests/nodes/compress_fp16x16_3d_noaxis.cairo +++ b/tests/nodes/compress_fp16x16_3d_noaxis.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp16x16_3d_noaxis() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::None(())); + let y_0 = input_0.compress(condition:input_1, axis:Option::None(())); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp16x16_3d_noaxis/input_0.cairo b/tests/nodes/compress_fp16x16_3d_noaxis/input_0.cairo index 22bb148eb..5d8deafac 100644 --- a/tests/nodes/compress_fp16x16_3d_noaxis/input_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_noaxis/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp16x16_3d_noaxis/input_1.cairo b/tests/nodes/compress_fp16x16_3d_noaxis/input_1.cairo index 2f28d9179..0aa49ba25 100644 --- a/tests/nodes/compress_fp16x16_3d_noaxis/input_1.cairo +++ b/tests/nodes/compress_fp16x16_3d_noaxis/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp16x16_3d_noaxis/output_0.cairo b/tests/nodes/compress_fp16x16_3d_noaxis/output_0.cairo index e443f84b4..2b7086cd5 100644 --- a/tests/nodes/compress_fp16x16_3d_noaxis/output_0.cairo +++ b/tests/nodes/compress_fp16x16_3d_noaxis/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_fp8x23_3d_axis1.cairo b/tests/nodes/compress_fp8x23_3d_axis1.cairo index f7edfd13a..24829c58f 100644 --- a/tests/nodes/compress_fp8x23_3d_axis1.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis1.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::FP8x23TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp8x23_3d_axis1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp8x23_3d_axis1/input_0.cairo b/tests/nodes/compress_fp8x23_3d_axis1/input_0.cairo index 158782e65..faabab14c 100644 --- a/tests/nodes/compress_fp8x23_3d_axis1/input_0.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp8x23_3d_axis1/input_1.cairo b/tests/nodes/compress_fp8x23_3d_axis1/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_fp8x23_3d_axis1/input_1.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp8x23_3d_axis1/output_0.cairo b/tests/nodes/compress_fp8x23_3d_axis1/output_0.cairo index 83aae904e..5113b33a9 100644 --- a/tests/nodes/compress_fp8x23_3d_axis1/output_0.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_fp8x23_3d_axis2.cairo b/tests/nodes/compress_fp8x23_3d_axis2.cairo index 369ffb8bf..c4cf9a814 100644 --- a/tests/nodes/compress_fp8x23_3d_axis2.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis2.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::FP8x23TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp8x23_3d_axis2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp8x23_3d_axis2/input_0.cairo b/tests/nodes/compress_fp8x23_3d_axis2/input_0.cairo index 158782e65..faabab14c 100644 --- a/tests/nodes/compress_fp8x23_3d_axis2/input_0.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp8x23_3d_axis2/input_1.cairo b/tests/nodes/compress_fp8x23_3d_axis2/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_fp8x23_3d_axis2/input_1.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp8x23_3d_axis2/output_0.cairo b/tests/nodes/compress_fp8x23_3d_axis2/output_0.cairo index 340000317..365e08acb 100644 --- a/tests/nodes/compress_fp8x23_3d_axis2/output_0.cairo +++ b/tests/nodes/compress_fp8x23_3d_axis2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_fp8x23_3d_default.cairo b/tests/nodes/compress_fp8x23_3d_default.cairo index eab9aa1ac..6f590b622 100644 --- a/tests/nodes/compress_fp8x23_3d_default.cairo +++ b/tests/nodes/compress_fp8x23_3d_default.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::FP8x23TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_fp8x23_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_fp8x23_3d_default/input_0.cairo b/tests/nodes/compress_fp8x23_3d_default/input_0.cairo index 158782e65..faabab14c 100644 --- a/tests/nodes/compress_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/compress_fp8x23_3d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/compress_fp8x23_3d_default/input_1.cairo b/tests/nodes/compress_fp8x23_3d_default/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/compress_fp8x23_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_fp8x23_3d_default/output_0.cairo b/tests/nodes/compress_fp8x23_3d_default/output_0.cairo index baf4ef69f..bc978e6cd 100644 --- a/tests/nodes/compress_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/compress_fp8x23_3d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/compress_i32_3d_axis1.cairo b/tests/nodes/compress_i32_3d_axis1.cairo index 571e5beb5..e3d6a8072 100644 --- a/tests/nodes/compress_i32_3d_axis1.cairo +++ b/tests/nodes/compress_i32_3d_axis1.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_i32_3d_axis1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_i32_3d_axis1/input_0.cairo b/tests/nodes/compress_i32_3d_axis1/input_0.cairo index 9b4392c28..5562ac725 100644 --- a/tests/nodes/compress_i32_3d_axis1/input_0.cairo +++ b/tests/nodes/compress_i32_3d_axis1/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i32_3d_axis1/input_1.cairo b/tests/nodes/compress_i32_3d_axis1/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_i32_3d_axis1/input_1.cairo +++ b/tests/nodes/compress_i32_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_i32_3d_axis1/output_0.cairo b/tests/nodes/compress_i32_3d_axis1/output_0.cairo index 4e04ef235..f1313df69 100644 --- a/tests/nodes/compress_i32_3d_axis1/output_0.cairo +++ b/tests/nodes/compress_i32_3d_axis1/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i32_3d_axis2.cairo b/tests/nodes/compress_i32_3d_axis2.cairo index be674ffba..3ae5828c8 100644 --- a/tests/nodes/compress_i32_3d_axis2.cairo +++ b/tests/nodes/compress_i32_3d_axis2.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_i32_3d_axis2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_i32_3d_axis2/input_0.cairo b/tests/nodes/compress_i32_3d_axis2/input_0.cairo index 9b4392c28..5562ac725 100644 --- a/tests/nodes/compress_i32_3d_axis2/input_0.cairo +++ b/tests/nodes/compress_i32_3d_axis2/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i32_3d_axis2/input_1.cairo b/tests/nodes/compress_i32_3d_axis2/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_i32_3d_axis2/input_1.cairo +++ b/tests/nodes/compress_i32_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_i32_3d_axis2/output_0.cairo b/tests/nodes/compress_i32_3d_axis2/output_0.cairo index 697fe6ee3..f1643a8d6 100644 --- a/tests/nodes/compress_i32_3d_axis2/output_0.cairo +++ b/tests/nodes/compress_i32_3d_axis2/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +10,23 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(1); + data.append(2); + data.append(4); + data.append(5); + data.append(7); + data.append(8); + data.append(10); + data.append(11); + data.append(13); + data.append(14); + data.append(16); + data.append(17); + data.append(19); + data.append(20); + data.append(22); + data.append(23); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i32_3d_default.cairo b/tests/nodes/compress_i32_3d_default.cairo index 4bd05fce1..dde8e15cf 100644 --- a/tests/nodes/compress_i32_3d_default.cairo +++ b/tests/nodes/compress_i32_3d_default.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_i32_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_i32_3d_default/input_0.cairo b/tests/nodes/compress_i32_3d_default/input_0.cairo index 9b4392c28..5562ac725 100644 --- a/tests/nodes/compress_i32_3d_default/input_0.cairo +++ b/tests/nodes/compress_i32_3d_default/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i32_3d_default/input_1.cairo b/tests/nodes/compress_i32_3d_default/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_i32_3d_default/input_1.cairo +++ b/tests/nodes/compress_i32_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_i32_3d_default/output_0.cairo b/tests/nodes/compress_i32_3d_default/output_0.cairo index 97e177389..f479cdfe8 100644 --- a/tests/nodes/compress_i32_3d_default/output_0.cairo +++ b/tests/nodes/compress_i32_3d_default/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i8_3d_axis1.cairo b/tests/nodes/compress_i8_3d_axis1.cairo index fae6c2356..8fd8bb267 100644 --- a/tests/nodes/compress_i8_3d_axis1.cairo +++ b/tests/nodes/compress_i8_3d_axis1.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_i8_3d_axis1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_i8_3d_axis1/input_0.cairo b/tests/nodes/compress_i8_3d_axis1/input_0.cairo index c095ab988..3e59c35b2 100644 --- a/tests/nodes/compress_i8_3d_axis1/input_0.cairo +++ b/tests/nodes/compress_i8_3d_axis1/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i8_3d_axis1/input_1.cairo b/tests/nodes/compress_i8_3d_axis1/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_i8_3d_axis1/input_1.cairo +++ b/tests/nodes/compress_i8_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_i8_3d_axis1/output_0.cairo b/tests/nodes/compress_i8_3d_axis1/output_0.cairo index 0a6e60910..20f020d67 100644 --- a/tests/nodes/compress_i8_3d_axis1/output_0.cairo +++ b/tests/nodes/compress_i8_3d_axis1/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i8_3d_axis2.cairo b/tests/nodes/compress_i8_3d_axis2.cairo index f8e90c133..220210744 100644 --- a/tests/nodes/compress_i8_3d_axis2.cairo +++ b/tests/nodes/compress_i8_3d_axis2.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_i8_3d_axis2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_i8_3d_axis2/input_0.cairo b/tests/nodes/compress_i8_3d_axis2/input_0.cairo index c095ab988..3e59c35b2 100644 --- a/tests/nodes/compress_i8_3d_axis2/input_0.cairo +++ b/tests/nodes/compress_i8_3d_axis2/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i8_3d_axis2/input_1.cairo b/tests/nodes/compress_i8_3d_axis2/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_i8_3d_axis2/input_1.cairo +++ b/tests/nodes/compress_i8_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_i8_3d_axis2/output_0.cairo b/tests/nodes/compress_i8_3d_axis2/output_0.cairo index f2d25b67d..b708a34a8 100644 --- a/tests/nodes/compress_i8_3d_axis2/output_0.cairo +++ b/tests/nodes/compress_i8_3d_axis2/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +10,23 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(1); + data.append(2); + data.append(4); + data.append(5); + data.append(7); + data.append(8); + data.append(10); + data.append(11); + data.append(13); + data.append(14); + data.append(16); + data.append(17); + data.append(19); + data.append(20); + data.append(22); + data.append(23); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i8_3d_default.cairo b/tests/nodes/compress_i8_3d_default.cairo index 1b4052d0e..b802e589c 100644 --- a/tests/nodes/compress_i8_3d_default.cairo +++ b/tests/nodes/compress_i8_3d_default.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_compress_i8_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_i8_3d_default/input_0.cairo b/tests/nodes/compress_i8_3d_default/input_0.cairo index c095ab988..3e59c35b2 100644 --- a/tests/nodes/compress_i8_3d_default/input_0.cairo +++ b/tests/nodes/compress_i8_3d_default/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_i8_3d_default/input_1.cairo b/tests/nodes/compress_i8_3d_default/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_i8_3d_default/input_1.cairo +++ b/tests/nodes/compress_i8_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_i8_3d_default/output_0.cairo b/tests/nodes/compress_i8_3d_default/output_0.cairo index 9472aea9f..2e92c40e3 100644 --- a/tests/nodes/compress_i8_3d_default/output_0.cairo +++ b/tests/nodes/compress_i8_3d_default/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/compress_u32_3d_axis1.cairo b/tests/nodes/compress_u32_3d_axis1.cairo index 7cfadc989..136f8b8ce 100644 --- a/tests/nodes/compress_u32_3d_axis1.cairo +++ b/tests/nodes/compress_u32_3d_axis1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_compress_u32_3d_axis1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(1)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_u32_3d_axis1/input_0.cairo b/tests/nodes/compress_u32_3d_axis1/input_0.cairo index 3b921bc94..d9508bf41 100644 --- a/tests/nodes/compress_u32_3d_axis1/input_0.cairo +++ b/tests/nodes/compress_u32_3d_axis1/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis1/input_1.cairo b/tests/nodes/compress_u32_3d_axis1/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_u32_3d_axis1/input_1.cairo +++ b/tests/nodes/compress_u32_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis1/output_0.cairo b/tests/nodes/compress_u32_3d_axis1/output_0.cairo index 41b41498a..d5f1fe3db 100644 --- a/tests/nodes/compress_u32_3d_axis1/output_0.cairo +++ b/tests/nodes/compress_u32_3d_axis1/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis2.cairo b/tests/nodes/compress_u32_3d_axis2.cairo index 9c70291c5..347e36676 100644 --- a/tests/nodes/compress_u32_3d_axis2.cairo +++ b/tests/nodes/compress_u32_3d_axis2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_compress_u32_3d_axis2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_u32_3d_axis2/input_0.cairo b/tests/nodes/compress_u32_3d_axis2/input_0.cairo index bb021b506..448087992 100644 --- a/tests/nodes/compress_u32_3d_axis2/input_0.cairo +++ b/tests/nodes/compress_u32_3d_axis2/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis2/input_1.cairo b/tests/nodes/compress_u32_3d_axis2/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_u32_3d_axis2/input_1.cairo +++ b/tests/nodes/compress_u32_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis2/output_0.cairo b/tests/nodes/compress_u32_3d_axis2/output_0.cairo index 029f6af3a..2141b0142 100644 --- a/tests/nodes/compress_u32_3d_axis2/output_0.cairo +++ b/tests/nodes/compress_u32_3d_axis2/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis2_2.cairo b/tests/nodes/compress_u32_3d_axis2_2.cairo index 850c10296..abc515486 100644 --- a/tests/nodes/compress_u32_3d_axis2_2.cairo +++ b/tests/nodes/compress_u32_3d_axis2_2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_compress_u32_3d_axis2_2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(2)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_u32_3d_axis2_2/input_0.cairo b/tests/nodes/compress_u32_3d_axis2_2/input_0.cairo index f92e7b071..bc3c51427 100644 --- a/tests/nodes/compress_u32_3d_axis2_2/input_0.cairo +++ b/tests/nodes/compress_u32_3d_axis2_2/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis2_2/input_1.cairo b/tests/nodes/compress_u32_3d_axis2_2/input_1.cairo index 5b1c8b963..787242645 100644 --- a/tests/nodes/compress_u32_3d_axis2_2/input_1.cairo +++ b/tests/nodes/compress_u32_3d_axis2_2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis2_2/output_0.cairo b/tests/nodes/compress_u32_3d_axis2_2/output_0.cairo index e80139ba6..42c06039a 100644 --- a/tests/nodes/compress_u32_3d_axis2_2/output_0.cairo +++ b/tests/nodes/compress_u32_3d_axis2_2/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis3.cairo b/tests/nodes/compress_u32_3d_axis3.cairo index c53e3e1b1..10e1e507e 100644 --- a/tests/nodes/compress_u32_3d_axis3.cairo +++ b/tests/nodes/compress_u32_3d_axis3.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_compress_u32_3d_axis3() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(3)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(3)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_u32_3d_axis3/input_0.cairo b/tests/nodes/compress_u32_3d_axis3/input_0.cairo index 05ec2b44a..13b59e3f0 100644 --- a/tests/nodes/compress_u32_3d_axis3/input_0.cairo +++ b/tests/nodes/compress_u32_3d_axis3/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis3/input_1.cairo b/tests/nodes/compress_u32_3d_axis3/input_1.cairo index ae751534e..7a260a06a 100644 --- a/tests/nodes/compress_u32_3d_axis3/input_1.cairo +++ b/tests/nodes/compress_u32_3d_axis3/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_axis3/output_0.cairo b/tests/nodes/compress_u32_3d_axis3/output_0.cairo index 069e45a81..119220a2d 100644 --- a/tests/nodes/compress_u32_3d_axis3/output_0.cairo +++ b/tests/nodes/compress_u32_3d_axis3/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_default.cairo b/tests/nodes/compress_u32_3d_default.cairo index a7d987eb6..ce12adac8 100644 --- a/tests/nodes/compress_u32_3d_default.cairo +++ b/tests/nodes/compress_u32_3d_default.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_compress_u32_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.compress(condition: input_1, axis: Option::Some(0)); + let y_0 = input_0.compress(condition:input_1, axis:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/compress_u32_3d_default/input_0.cairo b/tests/nodes/compress_u32_3d_default/input_0.cairo index f2805e81e..ff5dd3ef6 100644 --- a/tests/nodes/compress_u32_3d_default/input_0.cairo +++ b/tests/nodes/compress_u32_3d_default/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_default/input_1.cairo b/tests/nodes/compress_u32_3d_default/input_1.cairo index 43059b669..e8cfc89d9 100644 --- a/tests/nodes/compress_u32_3d_default/input_1.cairo +++ b/tests/nodes/compress_u32_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/compress_u32_3d_default/output_0.cairo b/tests/nodes/compress_u32_3d_default/output_0.cairo index 875197f4f..ee663d780 100644 --- a/tests/nodes/compress_u32_3d_default/output_0.cairo +++ b/tests/nodes/compress_u32_3d_default/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_1d.cairo b/tests/nodes/concat_fp16x16_1d.cairo index e066db6ed..37bc2f036 100644 --- a/tests/nodes/concat_fp16x16_1d.cairo +++ b/tests/nodes/concat_fp16x16_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp16x16_1d/input_0.cairo b/tests/nodes/concat_fp16x16_1d/input_0.cairo index af090f1ab..33e05815f 100644 --- a/tests/nodes/concat_fp16x16_1d/input_0.cairo +++ b/tests/nodes/concat_fp16x16_1d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_1d/input_1.cairo b/tests/nodes/concat_fp16x16_1d/input_1.cairo index 044796656..77d64e799 100644 --- a/tests/nodes/concat_fp16x16_1d/input_1.cairo +++ b/tests/nodes/concat_fp16x16_1d/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_1d/output_0.cairo b/tests/nodes/concat_fp16x16_1d/output_0.cairo index f788a537c..dacd1b774 100644 --- a/tests/nodes/concat_fp16x16_1d/output_0.cairo +++ b/tests/nodes/concat_fp16x16_1d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_2d.cairo b/tests/nodes/concat_fp16x16_2d.cairo index 681cc7d66..7829aca53 100644 --- a/tests/nodes/concat_fp16x16_2d.cairo +++ b/tests/nodes/concat_fp16x16_2d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp16x16_2d/input_0.cairo b/tests/nodes/concat_fp16x16_2d/input_0.cairo index c35b76cbe..6a8b7cb09 100644 --- a/tests/nodes/concat_fp16x16_2d/input_0.cairo +++ b/tests/nodes/concat_fp16x16_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_2d/input_1.cairo b/tests/nodes/concat_fp16x16_2d/input_1.cairo index 3a1f015fe..6b6d67538 100644 --- a/tests/nodes/concat_fp16x16_2d/input_1.cairo +++ b/tests/nodes/concat_fp16x16_2d/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_2d/output_0.cairo b/tests/nodes/concat_fp16x16_2d/output_0.cairo index 8ddb8c05b..765ced010 100644 --- a/tests/nodes/concat_fp16x16_2d/output_0.cairo +++ b/tests/nodes/concat_fp16x16_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_axis_1.cairo b/tests/nodes/concat_fp16x16_3d_axis_1.cairo index a9825fd59..705c7e513 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp16x16_3d_axis_1/input_0.cairo b/tests/nodes/concat_fp16x16_3d_axis_1/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_axis_1/input_1.cairo b/tests/nodes/concat_fp16x16_3d_axis_1/input_1.cairo index 3fe3a2f81..9550d6674 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_axis_1/output_0.cairo b/tests/nodes/concat_fp16x16_3d_axis_1/output_0.cairo index bcc0768e4..df803a967 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_axis_2.cairo b/tests/nodes/concat_fp16x16_3d_axis_2.cairo index f04a78bb4..82d30546b 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp16x16_3d_axis_2/input_0.cairo b/tests/nodes/concat_fp16x16_3d_axis_2/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_axis_2/input_1.cairo b/tests/nodes/concat_fp16x16_3d_axis_2/input_1.cairo index 3fe3a2f81..9550d6674 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_axis_2/output_0.cairo b/tests/nodes/concat_fp16x16_3d_axis_2/output_0.cairo index 8aa2ba0d0..23f007ff6 100644 --- a/tests/nodes/concat_fp16x16_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_axis_2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_default.cairo b/tests/nodes/concat_fp16x16_3d_default.cairo index 088da120a..dc2b70174 100644 --- a/tests/nodes/concat_fp16x16_3d_default.cairo +++ b/tests/nodes/concat_fp16x16_3d_default.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp16x16_3d_default/input_0.cairo b/tests/nodes/concat_fp16x16_3d_default/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/concat_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_default/input_1.cairo b/tests/nodes/concat_fp16x16_3d_default/input_1.cairo index 3fe3a2f81..9550d6674 100644 --- a/tests/nodes/concat_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_default/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_default/output_0.cairo b/tests/nodes/concat_fp16x16_3d_default/output_0.cairo index 0acafd005..3ba28466c 100644 --- a/tests/nodes/concat_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1.cairo index 28c7e10bb..4a2d689c8 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_0.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_1.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_1.cairo index 3fe3a2f81..9550d6674 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_2.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_2.cairo index fe8525d15..7a4a79823 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_2.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/output_0.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/output_0.cairo index 402cbc7c9..123acbb7c 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2.cairo index 563536371..cb2c4c480 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_0.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_1.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_1.cairo index 3fe3a2f81..9550d6674 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_1.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_2.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_2.cairo index fe8525d15..7a4a79823 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_2.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/output_0.cairo b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/output_0.cairo index b6dd91e5a..4ea2c68ff 100644 --- a/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/output_0.cairo +++ b/tests/nodes/concat_fp16x16_3d_three_tensors_axis_2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_1d.cairo b/tests/nodes/concat_fp8x23_1d.cairo index 83060822c..eaaab735e 100644 --- a/tests/nodes/concat_fp8x23_1d.cairo +++ b/tests/nodes/concat_fp8x23_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp8x23_1d/input_0.cairo b/tests/nodes/concat_fp8x23_1d/input_0.cairo index c20bb8620..0b5fd5c6a 100644 --- a/tests/nodes/concat_fp8x23_1d/input_0.cairo +++ b/tests/nodes/concat_fp8x23_1d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_1d/input_1.cairo b/tests/nodes/concat_fp8x23_1d/input_1.cairo index 0d0f46b18..c48f69ea7 100644 --- a/tests/nodes/concat_fp8x23_1d/input_1.cairo +++ b/tests/nodes/concat_fp8x23_1d/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_1d/output_0.cairo b/tests/nodes/concat_fp8x23_1d/output_0.cairo index 49e0b13fa..89600fb2f 100644 --- a/tests/nodes/concat_fp8x23_1d/output_0.cairo +++ b/tests/nodes/concat_fp8x23_1d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_2d.cairo b/tests/nodes/concat_fp8x23_2d.cairo index d63e9c95e..4c0dc48ae 100644 --- a/tests/nodes/concat_fp8x23_2d.cairo +++ b/tests/nodes/concat_fp8x23_2d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp8x23_2d/input_0.cairo b/tests/nodes/concat_fp8x23_2d/input_0.cairo index 74098aa94..88c1db446 100644 --- a/tests/nodes/concat_fp8x23_2d/input_0.cairo +++ b/tests/nodes/concat_fp8x23_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_2d/input_1.cairo b/tests/nodes/concat_fp8x23_2d/input_1.cairo index b589fb147..047cc9e45 100644 --- a/tests/nodes/concat_fp8x23_2d/input_1.cairo +++ b/tests/nodes/concat_fp8x23_2d/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_2d/output_0.cairo b/tests/nodes/concat_fp8x23_2d/output_0.cairo index 3a5071e64..daf677f35 100644 --- a/tests/nodes/concat_fp8x23_2d/output_0.cairo +++ b/tests/nodes/concat_fp8x23_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_axis_1.cairo b/tests/nodes/concat_fp8x23_3d_axis_1.cairo index 5a630b51f..b530cc417 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp8x23_3d_axis_1/input_0.cairo b/tests/nodes/concat_fp8x23_3d_axis_1/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_axis_1/input_1.cairo b/tests/nodes/concat_fp8x23_3d_axis_1/input_1.cairo index bffca1dcb..3b0feaac4 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_axis_1/output_0.cairo b/tests/nodes/concat_fp8x23_3d_axis_1/output_0.cairo index 86b740bbb..74111c9cf 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_axis_2.cairo b/tests/nodes/concat_fp8x23_3d_axis_2.cairo index 7c7364830..3fcb168a6 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp8x23_3d_axis_2/input_0.cairo b/tests/nodes/concat_fp8x23_3d_axis_2/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_axis_2/input_1.cairo b/tests/nodes/concat_fp8x23_3d_axis_2/input_1.cairo index bffca1dcb..3b0feaac4 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_axis_2/output_0.cairo b/tests/nodes/concat_fp8x23_3d_axis_2/output_0.cairo index 9437d8f65..89f622cb8 100644 --- a/tests/nodes/concat_fp8x23_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_axis_2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_default.cairo b/tests/nodes/concat_fp8x23_3d_default.cairo index cb5a98e18..38cd07736 100644 --- a/tests/nodes/concat_fp8x23_3d_default.cairo +++ b/tests/nodes/concat_fp8x23_3d_default.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp8x23_3d_default/input_0.cairo b/tests/nodes/concat_fp8x23_3d_default/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/concat_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_default/input_1.cairo b/tests/nodes/concat_fp8x23_3d_default/input_1.cairo index bffca1dcb..3b0feaac4 100644 --- a/tests/nodes/concat_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_default/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_default/output_0.cairo b/tests/nodes/concat_fp8x23_3d_default/output_0.cairo index 4f43c9813..52bf726bf 100644 --- a/tests/nodes/concat_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1.cairo index 59860a1d2..f528f9eda 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_0.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_1.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_1.cairo index bffca1dcb..3b0feaac4 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_2.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_2.cairo index 85dcc8e10..749c1f4ba 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_2.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/output_0.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/output_0.cairo index 18ed9a224..909284514 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2.cairo index e7fee675e..f19902c2b 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_0.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_1.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_1.cairo index bffca1dcb..3b0feaac4 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_1.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_2.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_2.cairo index 85dcc8e10..749c1f4ba 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_2.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/output_0.cairo b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/output_0.cairo index 559de5e98..8b0352a91 100644 --- a/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/output_0.cairo +++ b/tests/nodes/concat_fp8x23_3d_three_tensors_axis_2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_default.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_default.cairo index adaf44a2d..b5a7f2c7d 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_default.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::FP16x16Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp16x16_new_axis_default() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::None(()) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/input_0.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/input_0.cairo index 0d49026f6..f4766d441 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/input_0.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/input_0.cairo @@ -1,78 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/output_0.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/output_0.cairo index 786584ce8..f2d0e2521 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/output_0.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_default/output_0.cairo @@ -1,43 +1,58 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(15); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_one.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_one.cairo index 0bb989ed7..e10103dc0 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_one.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::FP16x16Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp16x16_new_axis_one() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(1) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/input_0.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/input_0.cairo index 9b139a4fd..c8f3aeb82 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/input_0.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/input_0.cairo @@ -1,53 +1,68 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/output_0.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/output_0.cairo index 0f2c2a772..61acdc30f 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/output_0.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_one/output_0.cairo @@ -1,19 +1,34 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(5); - shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero.cairo index a2856a1cc..d5b7bc0f7 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::FP16x16Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp16x16_new_axis_zero() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(0) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/input_0.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/input_0.cairo index afceeb375..c4c59b342 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/input_0.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/input_0.cairo @@ -1,68 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/output_0.cairo b/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/output_0.cairo index da0475401..866a43cb8 100644 --- a/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/output_0.cairo +++ b/tests/nodes/concat_from_sequence_fp16x16_new_axis_zero/output_0.cairo @@ -1,33 +1,28 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(10); + shape.append(1); + shape.append(15); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_default.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_default.cairo index e569736f6..b18bde626 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_default.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::sequence::FP8x23Sequence; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; -use orion::operators::sequence::FP8x23Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp8x23_new_axis_default() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::None(()) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/input_0.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/input_0.cairo index bfafea724..6b844ec15 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/input_0.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { @@ -12,9 +12,9 @@ fn input_0() -> Array> { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -24,9 +24,9 @@ fn input_0() -> Array> { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -35,10 +35,10 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -47,10 +47,10 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -59,10 +59,10 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/output_0.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/output_0.cairo index 23731f983..88c5e25fa 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/output_0.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -10,24 +10,24 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_one.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_one.cairo index 12ef40787..410a48554 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_one.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::sequence::FP8x23Sequence; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; -use orion::operators::sequence::FP8x23Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp8x23_new_axis_one() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(1) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/input_0.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/input_0.cairo index ac5f0d0d7..b96182f2c 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/input_0.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/input_0.cairo @@ -1,77 +1,77 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/output_0.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/output_0.cairo index 1551cb700..3a7583984 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/output_0.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_one/output_0.cairo @@ -1,44 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(5); shape.append(3); + shape.append(5); + shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero.cairo index a249cd309..0157535a6 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::sequence::FP8x23Sequence; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; -use orion::operators::sequence::FP8x23Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_fp8x23_new_axis_zero() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(0) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/input_0.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/input_0.cairo index 6ca8c3dbd..0dae8dced 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/input_0.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/input_0.cairo @@ -1,78 +1,53 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/output_0.cairo b/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/output_0.cairo index 1c9baca55..da62937ab 100644 --- a/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/output_0.cairo +++ b/tests/nodes/concat_from_sequence_fp8x23_new_axis_zero/output_0.cairo @@ -1,43 +1,18 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(15); + shape.append(1); + shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_default.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_default.cairo index e6fbf0409..634279116 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_default.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i32_new_axis_default() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::None(()) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_default/input_0.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_default/input_0.cairo index 5a81c06bb..2f5377784 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_default/input_0.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_default/input_0.cairo @@ -1,63 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(4); + data.append(-3); + data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); + data.append(4); + data.append(5); + data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: false }); + data.append(4); + data.append(-3); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(-3); + data.append(4); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(-6); + data.append(2); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_default/output_0.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_default/output_0.cairo index a25812198..633918918 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_default/output_0.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_default/output_0.cairo @@ -1,28 +1,28 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(5); + shape.append(1); + shape.append(15); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(4); + data.append(-3); + data.append(-2); + data.append(4); + data.append(5); + data.append(-2); + data.append(4); + data.append(-3); + data.append(1); + data.append(-3); + data.append(4); + data.append(-6); + data.append(-6); + data.append(2); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_one.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_one.cairo index 703d0b928..0e322a1ef 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_one.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i32_new_axis_one() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(1) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_one/input_0.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_one/input_0.cairo index c34f3f093..dab0ec750 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_one/input_0.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_one/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); @@ -11,9 +11,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(-2); + data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -22,9 +22,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); + data.append(2); + data.append(1); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -33,9 +33,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(-2); + data.append(1); + data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -44,9 +44,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(-4); + data.append(4); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -55,9 +55,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); + data.append(-1); + data.append(-6); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_one/output_0.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_one/output_0.cairo index d3995155e..b83e5b48f 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_one/output_0.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_one/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +10,20 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); + data.append(-2); + data.append(1); + data.append(3); + data.append(2); + data.append(1); + data.append(5); + data.append(-2); + data.append(1); + data.append(-3); + data.append(-4); + data.append(4); + data.append(-1); + data.append(-1); + data.append(-6); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_zero.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_zero.cairo index d1ffd1caf..1a9d54596 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_zero.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i32_new_axis_zero() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(0) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_zero/input_0.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_zero/input_0.cairo index abb6c3114..72030eb9a 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_zero/input_0.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_zero/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); @@ -11,8 +11,8 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); + data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -21,8 +21,8 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(-1); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -31,8 +31,8 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: true }); + data.append(-4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -41,8 +41,8 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(-6); + data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -51,8 +51,8 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_i32_new_axis_zero/output_0.cairo b/tests/nodes/concat_from_sequence_i32_new_axis_zero/output_0.cairo index bd56b9460..9374b807b 100644 --- a/tests/nodes/concat_from_sequence_i32_new_axis_zero/output_0.cairo +++ b/tests/nodes/concat_from_sequence_i32_new_axis_zero/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,15 +9,15 @@ fn output_0() -> Tensor { shape.append(10); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: false }); + data.append(1); + data.append(-3); + data.append(-1); + data.append(2); + data.append(-4); + data.append(-5); + data.append(-6); + data.append(-3); + data.append(0); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_default.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_default.cairo index e1bff9308..a434fbd7c 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_default.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I8Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i8_new_axis_default() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::None(()) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_default/input_0.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_default/input_0.cairo index 25dc4f765..e3aee9d75 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_default/input_0.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_default/input_0.cairo @@ -1,63 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: true }); + data.append(5); + data.append(-1); + data.append(3); + data.append(-1); + data.append(5); + data.append(5); + data.append(-1); + data.append(-1); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(-5); + data.append(3); + data.append(5); + data.append(-5); + data.append(-1); + data.append(3); + data.append(1); + data.append(1); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(3); + data.append(-4); + data.append(-2); + data.append(0); + data.append(-6); + data.append(2); + data.append(2); + data.append(0); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: true }); + data.append(-6); + data.append(0); + data.append(2); + data.append(5); + data.append(-1); + data.append(-2); + data.append(-6); + data.append(-4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: true }); + data.append(2); + data.append(-2); + data.append(-2); + data.append(3); + data.append(-1); + data.append(2); + data.append(5); + data.append(-2); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_default/output_0.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_default/output_0.cairo index 0b66fed69..31c1a1ec9 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_default/output_0.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_default/output_0.cairo @@ -1,28 +1,58 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(15); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: true }); + data.append(5); + data.append(-1); + data.append(3); + data.append(-5); + data.append(3); + data.append(5); + data.append(3); + data.append(-4); + data.append(-2); + data.append(-6); + data.append(0); + data.append(2); + data.append(2); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(5); + data.append(5); + data.append(-5); + data.append(-1); + data.append(3); + data.append(0); + data.append(-6); + data.append(2); + data.append(5); + data.append(-1); + data.append(-2); + data.append(3); + data.append(-1); + data.append(2); + data.append(-1); + data.append(-1); + data.append(-6); + data.append(1); + data.append(1); + data.append(0); + data.append(2); + data.append(0); + data.append(2); + data.append(-6); + data.append(-4); + data.append(-5); + data.append(5); + data.append(-2); + data.append(-5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_one.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_one.cairo index 003b5446d..ce556577d 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_one.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I8Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i8_new_axis_one() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(1) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_one/input_0.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_one/input_0.cairo index 3bc6fa6a0..ce8366d71 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_one/input_0.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_one/input_0.cairo @@ -1,53 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 6, sign: true }); + data.append(-2); + data.append(-4); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); + data.append(-5); + data.append(-5); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); + data.append(-2); + data.append(-5); + data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: true }); + data.append(-6); + data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); + data.append(3); + data.append(0); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_one/output_0.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_one/output_0.cairo index 37a6bb120..0c391bf14 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_one/output_0.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_one/output_0.cairo @@ -1,19 +1,29 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(5); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(-2); + data.append(-5); + data.append(-2); + data.append(-6); + data.append(3); + data.append(-4); + data.append(-5); + data.append(-5); + data.append(1); + data.append(0); + data.append(4); + data.append(5); + data.append(-3); + data.append(3); + data.append(-4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_zero.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_zero.cairo index 1299495df..3c73651d0 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_zero.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I8Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_i8_new_axis_zero() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(0) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_zero/input_0.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_zero/input_0.cairo index 80769e468..903a06fb3 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_zero/input_0.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_zero/input_0.cairo @@ -1,78 +1,78 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); + data.append(4); + data.append(0); + data.append(-6); + data.append(-1); + data.append(4); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-5); + data.append(-2); + data.append(4); + data.append(1); + data.append(-2); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(1); + data.append(2); + data.append(2); + data.append(-3); + data.append(5); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 4, sign: true }); + data.append(-2); + data.append(-5); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: false }); + data.append(2); + data.append(-2); + data.append(-3); + data.append(2); + data.append(3); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_i8_new_axis_zero/output_0.cairo b/tests/nodes/concat_from_sequence_i8_new_axis_zero/output_0.cairo index 876fe474b..5bd82ef28 100644 --- a/tests/nodes/concat_from_sequence_i8_new_axis_zero/output_0.cairo +++ b/tests/nodes/concat_from_sequence_i8_new_axis_zero/output_0.cairo @@ -1,43 +1,43 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(10); + shape.append(2); + shape.append(15); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: false }); + data.append(4); + data.append(0); + data.append(-6); + data.append(-5); + data.append(-2); + data.append(4); + data.append(1); + data.append(2); + data.append(2); + data.append(-2); + data.append(-5); + data.append(-2); + data.append(2); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(4); + data.append(-6); + data.append(1); + data.append(-2); + data.append(-5); + data.append(-3); + data.append(5); + data.append(2); + data.append(-2); + data.append(-1); + data.append(1); + data.append(2); + data.append(3); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_default.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_default.cairo index 474cda7db..aee253398 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_default.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_default.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::U32Sequence; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; -use orion::operators::sequence::U32Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_u32_new_axis_default() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::None(()) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::None(())); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_default/input_0.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_default/input_0.cairo index e8c4f22c5..4a5284feb 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_default/input_0.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_default/input_0.cairo @@ -1,16 +1,23 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); + data.append(4); + data.append(5); + data.append(0); + data.append(4); + data.append(5); + data.append(3); + data.append(0); data.append(2); data.append(1); @@ -18,44 +25,68 @@ fn input_0() -> Array> { let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(2); + data.append(1); + data.append(1); + data.append(5); data.append(4); - data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); data.append(0); + data.append(5); + data.append(3); + data.append(2); + data.append(2); data.append(0); data.append(3); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); + data.append(5); + data.append(0); + data.append(0); + data.append(0); data.append(2); - data.append(3); + data.append(5); + data.append(0); + data.append(4); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(3); + data.append(5); + data.append(3); data.append(1); - data.append(1); + data.append(5); + data.append(5); + data.append(0); + data.append(0); data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_default/output_0.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_default/output_0.cairo index 0409acc1d..9ef90c082 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_default/output_0.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_default/output_0.cairo @@ -1,27 +1,58 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(5); + shape.append(15); let mut data = ArrayTrait::new(); + data.append(4); + data.append(5); + data.append(0); + data.append(0); + data.append(1); data.append(2); + data.append(1); + data.append(0); + data.append(5); + data.append(5); data.append(0); data.append(0); + data.append(3); + data.append(5); + data.append(3); data.append(4); + data.append(5); + data.append(3); + data.append(3); + data.append(2); data.append(1); + data.append(3); data.append(2); - data.append(4); + data.append(2); + data.append(0); + data.append(2); + data.append(5); + data.append(1); + data.append(5); + data.append(5); data.append(0); data.append(2); data.append(1); data.append(1); + data.append(5); + data.append(4); data.append(0); data.append(3); - data.append(3); + data.append(4); + data.append(0); + data.append(4); + data.append(4); + data.append(0); + data.append(0); data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_one.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_one.cairo index 7d86fa0b3..b552c11ce 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_one.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_one.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::U32Sequence; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; -use orion::operators::sequence::U32Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_u32_new_axis_one() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(1) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_one/input_0.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_one/input_0.cairo index aa4d1d347..a2203ee2b 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_one/input_0.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_one/input_0.cairo @@ -1,61 +1,52 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(5); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(5); - data.append(2); - data.append(5); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(4); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); data.append(2); - data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(2); - data.append(1); data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_one/output_0.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_one/output_0.cairo index 424bb4cd4..b7ba981a6 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_one/output_0.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_one/output_0.cairo @@ -1,28 +1,19 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); shape.append(5); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(5); - data.append(5); - data.append(2); - data.append(5); - data.append(0); + data.append(3); data.append(1); - data.append(4); - data.append(0); data.append(2); - data.append(3); data.append(2); - data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_zero.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_zero.cairo index 9bfbeacb0..14fea8238 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_zero.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_zero.cairo @@ -2,24 +2,19 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::U32Sequence; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; -use orion::operators::sequence::U32Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_concat_from_sequence_u32_new_axis_zero() { let input_0 = input_0::input_0(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::concat_from_sequence( - input_0, IntegerTrait::::new(1, false), Option::Some(0) - ); + let y_0 = SequenceTrait::concat_from_sequence(input_0, 1_i32, Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_zero/input_0.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_zero/input_0.cairo index 36d51ee79..3af16c6d4 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_zero/input_0.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_zero/input_0.cairo @@ -1,77 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(5); + data.append(1); data.append(3); data.append(2); - data.append(3); - data.append(3); - data.append(2); + data.append(1); data.append(5); + data.append(3); + data.append(4); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(3); data.append(1); - data.append(0); + data.append(4); data.append(2); + data.append(4); + data.append(4); + data.append(3); data.append(5); - data.append(1); - data.append(1); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); data.append(0); - data.append(3); data.append(2); - data.append(5); + data.append(3); data.append(4); + data.append(3); + data.append(0); + data.append(4); + data.append(4); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(5); + data.append(2); data.append(4); + data.append(2); + data.append(2); + data.append(2); + data.append(3); data.append(0); + data.append(3); data.append(4); - data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(3); + data.append(0); + data.append(5); + data.append(2); + data.append(5); data.append(2); data.append(1); + data.append(0); + data.append(2); data.append(3); - data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/concat_from_sequence_u32_new_axis_zero/output_0.cairo b/tests/nodes/concat_from_sequence_u32_new_axis_zero/output_0.cairo index 2f96c7ce3..1cc734214 100644 --- a/tests/nodes/concat_from_sequence_u32_new_axis_zero/output_0.cairo +++ b/tests/nodes/concat_from_sequence_u32_new_axis_zero/output_0.cairo @@ -1,42 +1,58 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(10); + shape.append(15); let mut data = ArrayTrait::new(); + data.append(5); + data.append(1); + data.append(3); data.append(3); - data.append(2); data.append(1); + data.append(4); data.append(0); data.append(2); - data.append(0); + data.append(3); + data.append(2); + data.append(4); + data.append(2); data.append(0); data.append(5); - data.append(1); - data.append(3); - data.append(3); - data.append(3); data.append(2); + data.append(2); + data.append(1); data.append(5); - data.append(3); data.append(2); data.append(4); + data.append(4); + data.append(4); + data.append(3); data.append(0); data.append(2); - data.append(1); data.append(2); + data.append(3); data.append(5); + data.append(2); data.append(1); + data.append(3); + data.append(4); data.append(1); + data.append(3); data.append(5); data.append(4); data.append(4); + data.append(4); data.append(5); + data.append(0); + data.append(3); + data.append(4); + data.append(0); + data.append(2); data.append(3); - data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_1d.cairo b/tests/nodes/concat_i32_1d.cairo index f0b423d30..85e68463f 100644 --- a/tests/nodes/concat_i32_1d.cairo +++ b/tests/nodes/concat_i32_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i32_1d/input_0.cairo b/tests/nodes/concat_i32_1d/input_0.cairo index c2d41d222..0681aef66 100644 --- a/tests/nodes/concat_i32_1d/input_0.cairo +++ b/tests/nodes/concat_i32_1d/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_1d/input_1.cairo b/tests/nodes/concat_i32_1d/input_1.cairo index cd9ec087e..65b504172 100644 --- a/tests/nodes/concat_i32_1d/input_1.cairo +++ b/tests/nodes/concat_i32_1d/input_1.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_1d/output_0.cairo b/tests/nodes/concat_i32_1d/output_0.cairo index beee3cf1d..06e0a8958 100644 --- a/tests/nodes/concat_i32_1d/output_0.cairo +++ b/tests/nodes/concat_i32_1d/output_0.cairo @@ -1,18 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_2d.cairo b/tests/nodes/concat_i32_2d.cairo index 6c84098da..594e07ec2 100644 --- a/tests/nodes/concat_i32_2d.cairo +++ b/tests/nodes/concat_i32_2d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i32_2d/input_0.cairo b/tests/nodes/concat_i32_2d/input_0.cairo index 71e72d9d6..9fa2600f6 100644 --- a/tests/nodes/concat_i32_2d/input_0.cairo +++ b/tests/nodes/concat_i32_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_2d/input_1.cairo b/tests/nodes/concat_i32_2d/input_1.cairo index d2be43c39..53e005c39 100644 --- a/tests/nodes/concat_i32_2d/input_1.cairo +++ b/tests/nodes/concat_i32_2d/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(4); + data.append(5); + data.append(6); + data.append(7); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_2d/output_0.cairo b/tests/nodes/concat_i32_2d/output_0.cairo index b41411d85..5a6f27ca6 100644 --- a/tests/nodes/concat_i32_2d/output_0.cairo +++ b/tests/nodes/concat_i32_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_axis_1.cairo b/tests/nodes/concat_i32_3d_axis_1.cairo index c0bca1b30..0f521172f 100644 --- a/tests/nodes/concat_i32_3d_axis_1.cairo +++ b/tests/nodes/concat_i32_3d_axis_1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i32_3d_axis_1/input_0.cairo b/tests/nodes/concat_i32_3d_axis_1/input_0.cairo index 9b4392c28..249531a1c 100644 --- a/tests/nodes/concat_i32_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_axis_1/input_1.cairo b/tests/nodes/concat_i32_3d_axis_1/input_1.cairo index 08e9a3054..ebf45a0a2 100644 --- a/tests/nodes/concat_i32_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_i32_3d_axis_1/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_axis_1/output_0.cairo b/tests/nodes/concat_i32_3d_axis_1/output_0.cairo index d80ef2f04..5785289ec 100644 --- a/tests/nodes/concat_i32_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,59 +9,59 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_axis_2.cairo b/tests/nodes/concat_i32_3d_axis_2.cairo index 47f9e64d4..76c2839aa 100644 --- a/tests/nodes/concat_i32_3d_axis_2.cairo +++ b/tests/nodes/concat_i32_3d_axis_2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i32_3d_axis_2/input_0.cairo b/tests/nodes/concat_i32_3d_axis_2/input_0.cairo index 9b4392c28..249531a1c 100644 --- a/tests/nodes/concat_i32_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_2/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_axis_2/input_1.cairo b/tests/nodes/concat_i32_3d_axis_2/input_1.cairo index 08e9a3054..ebf45a0a2 100644 --- a/tests/nodes/concat_i32_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_i32_3d_axis_2/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_axis_2/output_0.cairo b/tests/nodes/concat_i32_3d_axis_2/output_0.cairo index a82a20ba3..eb14fd6a8 100644 --- a/tests/nodes/concat_i32_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_i32_3d_axis_2/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,59 +9,59 @@ fn output_0() -> Tensor { shape.append(6); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(27); + data.append(28); + data.append(29); + data.append(3); + data.append(4); + data.append(5); + data.append(30); + data.append(31); + data.append(32); + data.append(6); + data.append(7); + data.append(8); + data.append(33); + data.append(34); + data.append(35); + data.append(9); + data.append(10); + data.append(11); + data.append(36); + data.append(37); + data.append(38); + data.append(12); + data.append(13); + data.append(14); + data.append(39); + data.append(40); + data.append(41); + data.append(15); + data.append(16); + data.append(17); + data.append(42); + data.append(43); + data.append(44); + data.append(18); + data.append(19); + data.append(20); + data.append(45); + data.append(46); + data.append(47); + data.append(21); + data.append(22); + data.append(23); + data.append(48); + data.append(49); + data.append(50); + data.append(24); + data.append(25); + data.append(26); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_default.cairo b/tests/nodes/concat_i32_3d_default.cairo index 56badf0aa..9f1b0ccc3 100644 --- a/tests/nodes/concat_i32_3d_default.cairo +++ b/tests/nodes/concat_i32_3d_default.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i32_3d_default/input_0.cairo b/tests/nodes/concat_i32_3d_default/input_0.cairo index 9b4392c28..249531a1c 100644 --- a/tests/nodes/concat_i32_3d_default/input_0.cairo +++ b/tests/nodes/concat_i32_3d_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_default/input_1.cairo b/tests/nodes/concat_i32_3d_default/input_1.cairo index 08e9a3054..ebf45a0a2 100644 --- a/tests/nodes/concat_i32_3d_default/input_1.cairo +++ b/tests/nodes/concat_i32_3d_default/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_default/output_0.cairo b/tests/nodes/concat_i32_3d_default/output_0.cairo index b0e830d95..c1eb57ddc 100644 --- a/tests/nodes/concat_i32_3d_default/output_0.cairo +++ b/tests/nodes/concat_i32_3d_default/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,59 +9,59 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_1.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_1.cairo index c72e3912b..ecc3ca1fb 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_1.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_0.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_0.cairo index 9b4392c28..249531a1c 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_0.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_1.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_1.cairo index 08e9a3054..ebf45a0a2 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_1.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_2.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_2.cairo index c7a14d323..db860c74c 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_2.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_1/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 80, sign: false }); + data.append(54); + data.append(55); + data.append(56); + data.append(57); + data.append(58); + data.append(59); + data.append(60); + data.append(61); + data.append(62); + data.append(63); + data.append(64); + data.append(65); + data.append(66); + data.append(67); + data.append(68); + data.append(69); + data.append(70); + data.append(71); + data.append(72); + data.append(73); + data.append(74); + data.append(75); + data.append(76); + data.append(77); + data.append(78); + data.append(79); + data.append(80); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_1/output_0.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_1/output_0.cairo index 5a00f1dc7..ce0dd7541 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_1/output_0.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,86 +9,86 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 80, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(54); + data.append(55); + data.append(56); + data.append(57); + data.append(58); + data.append(59); + data.append(60); + data.append(61); + data.append(62); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(63); + data.append(64); + data.append(65); + data.append(66); + data.append(67); + data.append(68); + data.append(69); + data.append(70); + data.append(71); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); + data.append(72); + data.append(73); + data.append(74); + data.append(75); + data.append(76); + data.append(77); + data.append(78); + data.append(79); + data.append(80); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_2.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_2.cairo index 4bd2c2ecc..dec082153 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_2.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_0.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_0.cairo index 9b4392c28..249531a1c 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_0.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_1.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_1.cairo index 08e9a3054..ebf45a0a2 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_1.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_2.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_2.cairo index c7a14d323..db860c74c 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_2.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_2/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 80, sign: false }); + data.append(54); + data.append(55); + data.append(56); + data.append(57); + data.append(58); + data.append(59); + data.append(60); + data.append(61); + data.append(62); + data.append(63); + data.append(64); + data.append(65); + data.append(66); + data.append(67); + data.append(68); + data.append(69); + data.append(70); + data.append(71); + data.append(72); + data.append(73); + data.append(74); + data.append(75); + data.append(76); + data.append(77); + data.append(78); + data.append(79); + data.append(80); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i32_3d_three_tensors_axis_2/output_0.cairo b/tests/nodes/concat_i32_3d_three_tensors_axis_2/output_0.cairo index 6b21794c0..8c1693839 100644 --- a/tests/nodes/concat_i32_3d_three_tensors_axis_2/output_0.cairo +++ b/tests/nodes/concat_i32_3d_three_tensors_axis_2/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,86 +9,86 @@ fn output_0() -> Tensor { shape.append(9); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 80, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(27); + data.append(28); + data.append(29); + data.append(54); + data.append(55); + data.append(56); + data.append(3); + data.append(4); + data.append(5); + data.append(30); + data.append(31); + data.append(32); + data.append(57); + data.append(58); + data.append(59); + data.append(6); + data.append(7); + data.append(8); + data.append(33); + data.append(34); + data.append(35); + data.append(60); + data.append(61); + data.append(62); + data.append(9); + data.append(10); + data.append(11); + data.append(36); + data.append(37); + data.append(38); + data.append(63); + data.append(64); + data.append(65); + data.append(12); + data.append(13); + data.append(14); + data.append(39); + data.append(40); + data.append(41); + data.append(66); + data.append(67); + data.append(68); + data.append(15); + data.append(16); + data.append(17); + data.append(42); + data.append(43); + data.append(44); + data.append(69); + data.append(70); + data.append(71); + data.append(18); + data.append(19); + data.append(20); + data.append(45); + data.append(46); + data.append(47); + data.append(72); + data.append(73); + data.append(74); + data.append(21); + data.append(22); + data.append(23); + data.append(48); + data.append(49); + data.append(50); + data.append(75); + data.append(76); + data.append(77); + data.append(24); + data.append(25); + data.append(26); + data.append(51); + data.append(52); + data.append(53); + data.append(78); + data.append(79); + data.append(80); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/concat_i8_1d.cairo b/tests/nodes/concat_i8_1d.cairo index 0a2c13fab..d97cf2264 100644 --- a/tests/nodes/concat_i8_1d.cairo +++ b/tests/nodes/concat_i8_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i8_1d/input_0.cairo b/tests/nodes/concat_i8_1d/input_0.cairo index 400c4e51f..61b70cda3 100644 --- a/tests/nodes/concat_i8_1d/input_0.cairo +++ b/tests/nodes/concat_i8_1d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_1d/input_1.cairo b/tests/nodes/concat_i8_1d/input_1.cairo index 51ac6e3e6..36021dc69 100644 --- a/tests/nodes/concat_i8_1d/input_1.cairo +++ b/tests/nodes/concat_i8_1d/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_1d/output_0.cairo b/tests/nodes/concat_i8_1d/output_0.cairo index 9d0965a8d..33eec82a6 100644 --- a/tests/nodes/concat_i8_1d/output_0.cairo +++ b/tests/nodes/concat_i8_1d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_2d.cairo b/tests/nodes/concat_i8_2d.cairo index e2dde6f16..48ec7c12c 100644 --- a/tests/nodes/concat_i8_2d.cairo +++ b/tests/nodes/concat_i8_2d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i8_2d/input_0.cairo b/tests/nodes/concat_i8_2d/input_0.cairo index 308ad1b8f..53f6405e1 100644 --- a/tests/nodes/concat_i8_2d/input_0.cairo +++ b/tests/nodes/concat_i8_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_2d/input_1.cairo b/tests/nodes/concat_i8_2d/input_1.cairo index fb3cc4049..31deaf432 100644 --- a/tests/nodes/concat_i8_2d/input_1.cairo +++ b/tests/nodes/concat_i8_2d/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_2d/output_0.cairo b/tests/nodes/concat_i8_2d/output_0.cairo index 783ff5cbe..84ad50883 100644 --- a/tests/nodes/concat_i8_2d/output_0.cairo +++ b/tests/nodes/concat_i8_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_axis_1.cairo b/tests/nodes/concat_i8_3d_axis_1.cairo index 46fd595eb..40c85953e 100644 --- a/tests/nodes/concat_i8_3d_axis_1.cairo +++ b/tests/nodes/concat_i8_3d_axis_1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i8_3d_axis_1/input_0.cairo b/tests/nodes/concat_i8_3d_axis_1/input_0.cairo index 51f8105c1..eef1db890 100644 --- a/tests/nodes/concat_i8_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_axis_1/input_1.cairo b/tests/nodes/concat_i8_3d_axis_1/input_1.cairo index 65735566e..db4db7e02 100644 --- a/tests/nodes/concat_i8_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_i8_3d_axis_1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_axis_1/output_0.cairo b/tests/nodes/concat_i8_3d_axis_1/output_0.cairo index 92cf78441..1786088fc 100644 --- a/tests/nodes/concat_i8_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_axis_2.cairo b/tests/nodes/concat_i8_3d_axis_2.cairo index ba6110fbd..3735b92ca 100644 --- a/tests/nodes/concat_i8_3d_axis_2.cairo +++ b/tests/nodes/concat_i8_3d_axis_2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i8_3d_axis_2/input_0.cairo b/tests/nodes/concat_i8_3d_axis_2/input_0.cairo index 51f8105c1..eef1db890 100644 --- a/tests/nodes/concat_i8_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_axis_2/input_1.cairo b/tests/nodes/concat_i8_3d_axis_2/input_1.cairo index 65735566e..db4db7e02 100644 --- a/tests/nodes/concat_i8_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_i8_3d_axis_2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_axis_2/output_0.cairo b/tests/nodes/concat_i8_3d_axis_2/output_0.cairo index 51f75e5e4..2f0230645 100644 --- a/tests/nodes/concat_i8_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_i8_3d_axis_2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_default.cairo b/tests/nodes/concat_i8_3d_default.cairo index 711d6c47e..e8db72187 100644 --- a/tests/nodes/concat_i8_3d_default.cairo +++ b/tests/nodes/concat_i8_3d_default.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i8_3d_default/input_0.cairo b/tests/nodes/concat_i8_3d_default/input_0.cairo index 51f8105c1..eef1db890 100644 --- a/tests/nodes/concat_i8_3d_default/input_0.cairo +++ b/tests/nodes/concat_i8_3d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_default/input_1.cairo b/tests/nodes/concat_i8_3d_default/input_1.cairo index 65735566e..db4db7e02 100644 --- a/tests/nodes/concat_i8_3d_default/input_1.cairo +++ b/tests/nodes/concat_i8_3d_default/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_default/output_0.cairo b/tests/nodes/concat_i8_3d_default/output_0.cairo index 118cea15c..fb39c2da9 100644 --- a/tests/nodes/concat_i8_3d_default/output_0.cairo +++ b/tests/nodes/concat_i8_3d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_1.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_1.cairo index 0b6534f6b..cee7c69db 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_1.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_0.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_0.cairo index 51f8105c1..eef1db890 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_0.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_1.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_1.cairo index 65735566e..db4db7e02 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_1.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_2.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_2.cairo index da2b2f03f..30dd57462 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_2.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_1/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_1/output_0.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_1/output_0.cairo index 5e2579338..76993cfc0 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_1/output_0.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_2.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_2.cairo index 862e3c438..c51b924f6 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_2.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_0.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_0.cairo index 51f8105c1..eef1db890 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_0.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_1.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_1.cairo index 65735566e..db4db7e02 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_1.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_2.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_2.cairo index da2b2f03f..30dd57462 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_2.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_2/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_i8_3d_three_tensors_axis_2/output_0.cairo b/tests/nodes/concat_i8_3d_three_tensors_axis_2/output_0.cairo index fb7f72003..cf505e32a 100644 --- a/tests/nodes/concat_i8_3d_three_tensors_axis_2/output_0.cairo +++ b/tests/nodes/concat_i8_3d_three_tensors_axis_2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_1d.cairo b/tests/nodes/concat_u32_1d.cairo index abe3b34f6..f1cbf0458 100644 --- a/tests/nodes/concat_u32_1d.cairo +++ b/tests/nodes/concat_u32_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_u32_1d/input_0.cairo b/tests/nodes/concat_u32_1d/input_0.cairo index 0c4cb9786..8ed1580bb 100644 --- a/tests/nodes/concat_u32_1d/input_0.cairo +++ b/tests/nodes/concat_u32_1d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_1d/input_1.cairo b/tests/nodes/concat_u32_1d/input_1.cairo index 1f30cc967..033ecdaa2 100644 --- a/tests/nodes/concat_u32_1d/input_1.cairo +++ b/tests/nodes/concat_u32_1d/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_1d/output_0.cairo b/tests/nodes/concat_u32_1d/output_0.cairo index 3006ee5da..fbf4f4fca 100644 --- a/tests/nodes/concat_u32_1d/output_0.cairo +++ b/tests/nodes/concat_u32_1d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_2d.cairo b/tests/nodes/concat_u32_2d.cairo index 2cc1efee8..94ee3748c 100644 --- a/tests/nodes/concat_u32_2d.cairo +++ b/tests/nodes/concat_u32_2d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_u32_2d/input_0.cairo b/tests/nodes/concat_u32_2d/input_0.cairo index 3de7330b0..463691b0a 100644 --- a/tests/nodes/concat_u32_2d/input_0.cairo +++ b/tests/nodes/concat_u32_2d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_2d/input_1.cairo b/tests/nodes/concat_u32_2d/input_1.cairo index c7c503952..b9658767f 100644 --- a/tests/nodes/concat_u32_2d/input_1.cairo +++ b/tests/nodes/concat_u32_2d/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_2d/output_0.cairo b/tests/nodes/concat_u32_2d/output_0.cairo index c61981a58..57830e12b 100644 --- a/tests/nodes/concat_u32_2d/output_0.cairo +++ b/tests/nodes/concat_u32_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_axis_1.cairo b/tests/nodes/concat_u32_3d_axis_1.cairo index 305cefc7f..b6906aca9 100644 --- a/tests/nodes/concat_u32_3d_axis_1.cairo +++ b/tests/nodes/concat_u32_3d_axis_1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_u32_3d_axis_1/input_0.cairo b/tests/nodes/concat_u32_3d_axis_1/input_0.cairo index 8910b6117..279cede2d 100644 --- a/tests/nodes/concat_u32_3d_axis_1/input_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_axis_1/input_1.cairo b/tests/nodes/concat_u32_3d_axis_1/input_1.cairo index 5f65e08e1..289c1797a 100644 --- a/tests/nodes/concat_u32_3d_axis_1/input_1.cairo +++ b/tests/nodes/concat_u32_3d_axis_1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_axis_1/output_0.cairo b/tests/nodes/concat_u32_3d_axis_1/output_0.cairo index a07aae236..5c72b149a 100644 --- a/tests/nodes/concat_u32_3d_axis_1/output_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_axis_2.cairo b/tests/nodes/concat_u32_3d_axis_2.cairo index d3bbc692a..758ceb8a5 100644 --- a/tests/nodes/concat_u32_3d_axis_2.cairo +++ b/tests/nodes/concat_u32_3d_axis_2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_u32_3d_axis_2/input_0.cairo b/tests/nodes/concat_u32_3d_axis_2/input_0.cairo index 8910b6117..279cede2d 100644 --- a/tests/nodes/concat_u32_3d_axis_2/input_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_axis_2/input_1.cairo b/tests/nodes/concat_u32_3d_axis_2/input_1.cairo index 5f65e08e1..289c1797a 100644 --- a/tests/nodes/concat_u32_3d_axis_2/input_1.cairo +++ b/tests/nodes/concat_u32_3d_axis_2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_axis_2/output_0.cairo b/tests/nodes/concat_u32_3d_axis_2/output_0.cairo index f68d4b9b3..ecc3d7d64 100644 --- a/tests/nodes/concat_u32_3d_axis_2/output_0.cairo +++ b/tests/nodes/concat_u32_3d_axis_2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_default.cairo b/tests/nodes/concat_u32_3d_default.cairo index 6916bfefc..2c01d16ea 100644 --- a/tests/nodes/concat_u32_3d_default.cairo +++ b/tests/nodes/concat_u32_3d_default.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_u32_3d_default/input_0.cairo b/tests/nodes/concat_u32_3d_default/input_0.cairo index 8910b6117..279cede2d 100644 --- a/tests/nodes/concat_u32_3d_default/input_0.cairo +++ b/tests/nodes/concat_u32_3d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_default/input_1.cairo b/tests/nodes/concat_u32_3d_default/input_1.cairo index 5f65e08e1..289c1797a 100644 --- a/tests/nodes/concat_u32_3d_default/input_1.cairo +++ b/tests/nodes/concat_u32_3d_default/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_default/output_0.cairo b/tests/nodes/concat_u32_3d_default/output_0.cairo index fe612533f..ed64364de 100644 --- a/tests/nodes/concat_u32_3d_default/output_0.cairo +++ b/tests/nodes/concat_u32_3d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_1.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_1.cairo index 669c10f88..d35891c5a 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_1.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_1.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_0.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_0.cairo index 8910b6117..279cede2d 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_0.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_1.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_1.cairo index 5f65e08e1..289c1797a 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_1.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_2.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_2.cairo index 7ab4d3aa5..2fa5f0a80 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_2.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_1/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_1/output_0.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_1/output_0.cairo index 15765be05..b29fc6339 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_1/output_0.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_2.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_2.cairo index 1b569175c..ed1e3d949 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_2.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_2.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_0.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_0.cairo index 8910b6117..279cede2d 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_0.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_1.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_1.cairo index 5f65e08e1..289c1797a 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_1.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_2.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_2.cairo index 7ab4d3aa5..2fa5f0a80 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_2.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_2/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/concat_u32_3d_three_tensors_axis_2/output_0.cairo b/tests/nodes/concat_u32_3d_three_tensors_axis_2/output_0.cairo index ce2fccdf5..ce6caf6fc 100644 --- a/tests/nodes/concat_u32_3d_three_tensors_axis_2/output_0.cairo +++ b/tests/nodes/concat_u32_3d_three_tensors_axis_2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cos_fp16x16.cairo b/tests/nodes/cos_fp16x16.cairo index 48517ffb1..9800429f3 100644 --- a/tests/nodes/cos_fp16x16.cairo +++ b/tests/nodes/cos_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cos_fp16x16/input_0.cairo b/tests/nodes/cos_fp16x16/input_0.cairo index 2c3bf86dd..577b41d0a 100644 --- a/tests/nodes/cos_fp16x16/input_0.cairo +++ b/tests/nodes/cos_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1737975, sign: false }); - data.append(FP16x16 { mag: 6312706, sign: false }); - data.append(FP16x16 { mag: 5651744, sign: false }); - data.append(FP16x16 { mag: 6320564, sign: false }); + data.append(FP16x16 { mag: 1913830, sign: false }); + data.append(FP16x16 { mag: 4049104, sign: false }); + data.append(FP16x16 { mag: 2278925, sign: false }); + data.append(FP16x16 { mag: 6595486, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cos_fp16x16/output_0.cairo b/tests/nodes/cos_fp16x16/output_0.cairo index 68072a304..37a52fa14 100644 --- a/tests/nodes/cos_fp16x16/output_0.cairo +++ b/tests/nodes/cos_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 11999, sign: false }); - data.append(FP16x16 { mag: 31746, sign: true }); - data.append(FP16x16 { mag: 10118, sign: true }); - data.append(FP16x16 { mag: 38375, sign: true }); + data.append(FP16x16 { mag: 39263, sign: true }); + data.append(FP16x16 { mag: 32755, sign: false }); + data.append(FP16x16 { mag: 64011, sign: true }); + data.append(FP16x16 { mag: 65152, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cos_fp8x23.cairo b/tests/nodes/cos_fp8x23.cairo index 3086612b6..ccfbaec54 100644 --- a/tests/nodes/cos_fp8x23.cairo +++ b/tests/nodes/cos_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cos_fp8x23/input_0.cairo b/tests/nodes/cos_fp8x23/input_0.cairo index 334c4fcf4..88c134953 100644 --- a/tests/nodes/cos_fp8x23/input_0.cairo +++ b/tests/nodes/cos_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 658990, sign: true }); - data.append(FP8x23 { mag: 330978878, sign: false }); - data.append(FP8x23 { mag: 820031043, sign: false }); - data.append(FP8x23 { mag: 154991942, sign: false }); + data.append(FP8x23 { mag: 867902390, sign: false }); + data.append(FP8x23 { mag: 179014618, sign: false }); + data.append(FP8x23 { mag: 1037532703, sign: false }); + data.append(FP8x23 { mag: 37869648, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cos_fp8x23/output_0.cairo b/tests/nodes/cos_fp8x23/output_0.cairo index 1ae5c7c59..1091e4b88 100644 --- a/tests/nodes/cos_fp8x23/output_0.cairo +++ b/tests/nodes/cos_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8362736, sign: false }); - data.append(FP8x23 { mag: 1550053, sign: true }); - data.append(FP8x23 { mag: 7833162, sign: true }); - data.append(FP8x23 { mag: 7811558, sign: false }); + data.append(FP8x23 { mag: 8203389, sign: true }); + data.append(FP8x23 { mag: 6673244, sign: true }); + data.append(FP8x23 { mag: 3338956, sign: true }); + data.append(FP8x23 { mag: 1649907, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cosh_fp16x16.cairo b/tests/nodes/cosh_fp16x16.cairo index 45624901c..855f43e53 100644 --- a/tests/nodes/cosh_fp16x16.cairo +++ b/tests/nodes/cosh_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cosh_fp16x16/input_0.cairo b/tests/nodes/cosh_fp16x16/input_0.cairo index 0021eb3b1..9052e8c3c 100644 --- a/tests/nodes/cosh_fp16x16/input_0.cairo +++ b/tests/nodes/cosh_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 180002, sign: false }); - data.append(FP16x16 { mag: 115071, sign: true }); - data.append(FP16x16 { mag: 111643, sign: true }); - data.append(FP16x16 { mag: 184638, sign: true }); + data.append(FP16x16 { mag: 111792, sign: false }); + data.append(FP16x16 { mag: 177968, sign: true }); + data.append(FP16x16 { mag: 144397, sign: false }); + data.append(FP16x16 { mag: 151621, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cosh_fp16x16/output_0.cairo b/tests/nodes/cosh_fp16x16/output_0.cairo index 5fe5837aa..803d58d17 100644 --- a/tests/nodes/cosh_fp16x16/output_0.cairo +++ b/tests/nodes/cosh_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 512946, sign: false }); - data.append(FP16x16 { mag: 195335, sign: false }); - data.append(FP16x16 { mag: 185972, sign: false }); - data.append(FP16x16 { mag: 550252, sign: false }); + data.append(FP16x16 { mag: 186369, sign: false }); + data.append(FP16x16 { mag: 497406, sign: false }); + data.append(FP16x16 { mag: 300338, sign: false }); + data.append(FP16x16 { mag: 334535, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cosh_fp8x23.cairo b/tests/nodes/cosh_fp8x23.cairo index cd802dba1..4e3c51fed 100644 --- a/tests/nodes/cosh_fp8x23.cairo +++ b/tests/nodes/cosh_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cosh_fp8x23/input_0.cairo b/tests/nodes/cosh_fp8x23/input_0.cairo index 96ce7cd00..c950cbf8e 100644 --- a/tests/nodes/cosh_fp8x23/input_0.cairo +++ b/tests/nodes/cosh_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 23096690, sign: true }); - data.append(FP8x23 { mag: 10692965, sign: false }); - data.append(FP8x23 { mag: 17437172, sign: true }); - data.append(FP8x23 { mag: 24645388, sign: true }); + data.append(FP8x23 { mag: 6347776, sign: false }); + data.append(FP8x23 { mag: 12366572, sign: false }); + data.append(FP8x23 { mag: 8513073, sign: true }); + data.append(FP8x23 { mag: 20925683, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cosh_fp8x23/output_0.cairo b/tests/nodes/cosh_fp8x23/output_0.cairo index 5d4775a64..64466627c 100644 --- a/tests/nodes/cosh_fp8x23/output_0.cairo +++ b/tests/nodes/cosh_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 66096700, sign: false }); - data.append(FP8x23 { mag: 16178040, sign: false }); - data.append(FP8x23 { mag: 34053341, sign: false }); - data.append(FP8x23 { mag: 79399253, sign: false }); + data.append(FP8x23 { mag: 10907148, sign: false }); + data.append(FP8x23 { mag: 19279307, sign: false }); + data.append(FP8x23 { mag: 13092000, sign: false }); + data.append(FP8x23 { mag: 51164820, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_fp16x16_1d_default.cairo b/tests/nodes/cumsum_fp16x16_1d_default.cairo index d78cf9baa..5246dc4d7 100644 --- a/tests/nodes/cumsum_fp16x16_1d_default.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo b/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo index 3c813c70b..71f7fbbe2 100644 --- a/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo b/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo index 2ae78e058..f055766a3 100644 --- a/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo b/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo index 97aa860d6..ad38d97a7 100644 --- a/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo index 3c813c70b..71f7fbbe2 100644 --- a/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_exclusive/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo index 2fdc2489a..5dd6cd292 100644 --- a/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_exclusive/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse.cairo index 02f03d242..7c9ba900c 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo index 3c813c70b..71f7fbbe2 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo index 969ff4bf7..2e5faecd1 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo index e9c2dba47..c4c76d17f 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/input_0.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/input_0.cairo index 3c813c70b..71f7fbbe2 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/output_0.cairo b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/output_0.cairo index cfa123e92..5683e3285 100644 --- a/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_1d_reverse_exclusive/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo index 02b5eac5e..cfb230ab7 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_0.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_0/input_0.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_0/input_0.cairo index a44af1639..0926c4535 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_0/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_0/output_0.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_0/output_0.cairo index 1a3e322b5..80069fb6c 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_0/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo index 27d5b3a89..0960201bf 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_1/input_0.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_1/input_0.cairo index a44af1639..0926c4535 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp16x16_2d_axis_1/output_0.cairo b/tests/nodes/cumsum_fp16x16_2d_axis_1/output_0.cairo index fe7f1e877..4a93b52d9 100644 --- a/tests/nodes/cumsum_fp16x16_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_fp16x16_2d_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_default.cairo b/tests/nodes/cumsum_fp8x23_1d_default.cairo index 053a51196..2e3dbf4de 100644 --- a/tests/nodes/cumsum_fp8x23_1d_default.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo b/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo index 27f55ad1d..426494022 100644 --- a/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo b/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo index bbaf7038f..bc7429306 100644 --- a/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo b/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo index 663def6dc..f6d2f5b88 100644 --- a/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo index 27f55ad1d..426494022 100644 --- a/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_exclusive/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo index e27eb3ba5..f21a4a7e9 100644 --- a/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_exclusive/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse.cairo index b31baa7bd..72e1b9fd7 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo index 27f55ad1d..426494022 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo index 6f5232678..4867915f2 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo index 63aa660af..42ebf21aa 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/input_0.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/input_0.cairo index 27f55ad1d..426494022 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/output_0.cairo b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/output_0.cairo index af55c56ff..edfd8efe4 100644 --- a/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_1d_reverse_exclusive/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo index 9282bf2d2..bcc4df81c 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_0.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_0/input_0.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_0/input_0.cairo index c0c5951d6..776d86e93 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_0/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_0/output_0.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_0/output_0.cairo index 3de76ac17..5ea981718 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_0/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo index 73b842e2d..b2cfe561c 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_1/input_0.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_1/input_0.cairo index c0c5951d6..776d86e93 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_fp8x23_2d_axis_1/output_0.cairo b/tests/nodes/cumsum_fp8x23_2d_axis_1/output_0.cairo index 0a1f27123..97d89dffb 100644 --- a/tests/nodes/cumsum_fp8x23_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_fp8x23_2d_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_i32_1d_default.cairo b/tests/nodes/cumsum_i32_1d_default.cairo index de3216b5f..b83e13725 100644 --- a/tests/nodes/cumsum_i32_1d_default.cairo +++ b/tests/nodes/cumsum_i32_1d_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i32_1d_default/input_0.cairo b/tests/nodes/cumsum_i32_1d_default/input_0.cairo index 5b8c0c32a..d302cfd17 100644 --- a/tests/nodes/cumsum_i32_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_default/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_1d_default/output_0.cairo b/tests/nodes/cumsum_i32_1d_default/output_0.cairo index 51ac4ab02..5771b7ade 100644 --- a/tests/nodes/cumsum_i32_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_default/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 15, sign: false }); + data.append(1); + data.append(3); + data.append(6); + data.append(10); + data.append(15); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_1d_exclusive.cairo b/tests/nodes/cumsum_i32_1d_exclusive.cairo index 2e90949a8..2722cee9e 100644 --- a/tests/nodes/cumsum_i32_1d_exclusive.cairo +++ b/tests/nodes/cumsum_i32_1d_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo index 5b8c0c32a..d302cfd17 100644 --- a/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_exclusive/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo index 13b933b14..084ed1ad9 100644 --- a/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_exclusive/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 10, sign: false }); + data.append(0); + data.append(1); + data.append(3); + data.append(6); + data.append(10); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_1d_reverse.cairo b/tests/nodes/cumsum_i32_1d_reverse.cairo index 3dd090f11..8fb745ffb 100644 --- a/tests/nodes/cumsum_i32_1d_reverse.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo b/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo index 5b8c0c32a..d302cfd17 100644 --- a/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo b/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo index 3afc1c9b2..3b02e3104 100644 --- a/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(15); + data.append(14); + data.append(12); + data.append(9); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo index 4aa79f7d2..d4083ffb8 100644 --- a/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i32_1d_reverse_exclusive/input_0.cairo b/tests/nodes/cumsum_i32_1d_reverse_exclusive/input_0.cairo index 5b8c0c32a..d302cfd17 100644 --- a/tests/nodes/cumsum_i32_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse_exclusive/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_1d_reverse_exclusive/output_0.cairo b/tests/nodes/cumsum_i32_1d_reverse_exclusive/output_0.cairo index 5c5e5eaff..c1086ff4e 100644 --- a/tests/nodes/cumsum_i32_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i32_1d_reverse_exclusive/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(14); + data.append(12); + data.append(9); + data.append(5); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_2d_axis_0.cairo b/tests/nodes/cumsum_i32_2d_axis_0.cairo index 9124ab1a8..26c3ba418 100644 --- a/tests/nodes/cumsum_i32_2d_axis_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_0.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i32_2d_axis_0/input_0.cairo b/tests/nodes/cumsum_i32_2d_axis_0/input_0.cairo index 7edd342be..b89177500 100644 --- a/tests/nodes/cumsum_i32_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_0/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_2d_axis_0/output_0.cairo b/tests/nodes/cumsum_i32_2d_axis_0/output_0.cairo index 875252fa0..f2c382411 100644 --- a/tests/nodes/cumsum_i32_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_0/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 9, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(5); + data.append(7); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_2d_axis_1.cairo b/tests/nodes/cumsum_i32_2d_axis_1.cairo index 8f52ab4be..48a009329 100644 --- a/tests/nodes/cumsum_i32_2d_axis_1.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i32_2d_axis_1/input_0.cairo b/tests/nodes/cumsum_i32_2d_axis_1/input_0.cairo index 7edd342be..b89177500 100644 --- a/tests/nodes/cumsum_i32_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i32_2d_axis_1/output_0.cairo b/tests/nodes/cumsum_i32_2d_axis_1/output_0.cairo index 40d62e410..2197e4970 100644 --- a/tests/nodes/cumsum_i32_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_i32_2d_axis_1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 15, sign: false }); + data.append(1); + data.append(3); + data.append(6); + data.append(4); + data.append(9); + data.append(15); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_default.cairo b/tests/nodes/cumsum_i8_1d_default.cairo index 513d76fc8..49f2b108e 100644 --- a/tests/nodes/cumsum_i8_1d_default.cairo +++ b/tests/nodes/cumsum_i8_1d_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i8_1d_default/input_0.cairo b/tests/nodes/cumsum_i8_1d_default/input_0.cairo index b69490e01..be0a062b0 100644 --- a/tests/nodes/cumsum_i8_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_default/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_default/output_0.cairo b/tests/nodes/cumsum_i8_1d_default/output_0.cairo index 2025f5b3a..9a47baaef 100644 --- a/tests/nodes/cumsum_i8_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_default/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 15, sign: false }); + data.append(1); + data.append(3); + data.append(6); + data.append(10); + data.append(15); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_exclusive.cairo b/tests/nodes/cumsum_i8_1d_exclusive.cairo index d58e7530e..bbb6054f3 100644 --- a/tests/nodes/cumsum_i8_1d_exclusive.cairo +++ b/tests/nodes/cumsum_i8_1d_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo index b69490e01..be0a062b0 100644 --- a/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_exclusive/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo index 14e3dcdcb..873527627 100644 --- a/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_exclusive/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 10, sign: false }); + data.append(0); + data.append(1); + data.append(3); + data.append(6); + data.append(10); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_reverse.cairo b/tests/nodes/cumsum_i8_1d_reverse.cairo index f30b2e121..9d68ba530 100644 --- a/tests/nodes/cumsum_i8_1d_reverse.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo b/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo index b69490e01..be0a062b0 100644 --- a/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo b/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo index 97db40de7..68445c33f 100644 --- a/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(15); + data.append(14); + data.append(12); + data.append(9); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo index 45a5d97f0..e39c5e5a8 100644 --- a/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i8_1d_reverse_exclusive/input_0.cairo b/tests/nodes/cumsum_i8_1d_reverse_exclusive/input_0.cairo index b69490e01..be0a062b0 100644 --- a/tests/nodes/cumsum_i8_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse_exclusive/input_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_1d_reverse_exclusive/output_0.cairo b/tests/nodes/cumsum_i8_1d_reverse_exclusive/output_0.cairo index fb167dc81..297c76d4b 100644 --- a/tests/nodes/cumsum_i8_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_i8_1d_reverse_exclusive/output_0.cairo @@ -1,17 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(14); + data.append(12); + data.append(9); + data.append(5); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_2d_axis_0.cairo b/tests/nodes/cumsum_i8_2d_axis_0.cairo index dc3ad17fa..059923c94 100644 --- a/tests/nodes/cumsum_i8_2d_axis_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_0.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i8_2d_axis_0/input_0.cairo b/tests/nodes/cumsum_i8_2d_axis_0/input_0.cairo index 444b57c92..2c9cbee67 100644 --- a/tests/nodes/cumsum_i8_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_0/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_2d_axis_0/output_0.cairo b/tests/nodes/cumsum_i8_2d_axis_0/output_0.cairo index dd273c2f9..f528f285b 100644 --- a/tests/nodes/cumsum_i8_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_0/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 9, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(5); + data.append(7); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_2d_axis_1.cairo b/tests/nodes/cumsum_i8_2d_axis_1.cairo index f41be1874..0e3d5b114 100644 --- a/tests/nodes/cumsum_i8_2d_axis_1.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_i8_2d_axis_1/input_0.cairo b/tests/nodes/cumsum_i8_2d_axis_1/input_0.cairo index 444b57c92..2c9cbee67 100644 --- a/tests/nodes/cumsum_i8_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_i8_2d_axis_1/output_0.cairo b/tests/nodes/cumsum_i8_2d_axis_1/output_0.cairo index 2792f844e..f93b0d420 100644 --- a/tests/nodes/cumsum_i8_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_i8_2d_axis_1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 15, sign: false }); + data.append(1); + data.append(3); + data.append(6); + data.append(4); + data.append(9); + data.append(15); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/cumsum_u32_1d_default.cairo b/tests/nodes/cumsum_u32_1d_default.cairo index 494b6693a..72518b268 100644 --- a/tests/nodes/cumsum_u32_1d_default.cairo +++ b/tests/nodes/cumsum_u32_1d_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_u32_1d_default/input_0.cairo b/tests/nodes/cumsum_u32_1d_default/input_0.cairo index 69a426f7a..8316211f6 100644 --- a/tests/nodes/cumsum_u32_1d_default/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_1d_default/output_0.cairo b/tests/nodes/cumsum_u32_1d_default/output_0.cairo index 0e3e52139..32cb0b909 100644 --- a/tests/nodes/cumsum_u32_1d_default/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_1d_exclusive.cairo b/tests/nodes/cumsum_u32_1d_exclusive.cairo index de94a0e7c..68a31ecd5 100644 --- a/tests/nodes/cumsum_u32_1d_exclusive.cairo +++ b/tests/nodes/cumsum_u32_1d_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo b/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo index 69a426f7a..8316211f6 100644 --- a/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_exclusive/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo b/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo index 4c16421cf..d1dc90535 100644 --- a/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_exclusive/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_1d_reverse.cairo b/tests/nodes/cumsum_u32_1d_reverse.cairo index 48036e618..7b1453dd4 100644 --- a/tests/nodes/cumsum_u32_1d_reverse.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo b/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo index 69a426f7a..8316211f6 100644 --- a/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo b/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo index 795a0f31f..b2c38f07b 100644 --- a/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo b/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo index afb002ee2..2c87904ce 100644 --- a/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse_exclusive.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_u32_1d_reverse_exclusive/input_0.cairo b/tests/nodes/cumsum_u32_1d_reverse_exclusive/input_0.cairo index 69a426f7a..8316211f6 100644 --- a/tests/nodes/cumsum_u32_1d_reverse_exclusive/input_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse_exclusive/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_1d_reverse_exclusive/output_0.cairo b/tests/nodes/cumsum_u32_1d_reverse_exclusive/output_0.cairo index c93fbf430..2d2a8278a 100644 --- a/tests/nodes/cumsum_u32_1d_reverse_exclusive/output_0.cairo +++ b/tests/nodes/cumsum_u32_1d_reverse_exclusive/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_2d_axis_0.cairo b/tests/nodes/cumsum_u32_2d_axis_0.cairo index 7e9e2ec1e..35301eaf5 100644 --- a/tests/nodes/cumsum_u32_2d_axis_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_0.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_u32_2d_axis_0/input_0.cairo b/tests/nodes/cumsum_u32_2d_axis_0/input_0.cairo index acf2fce57..901fe958b 100644 --- a/tests/nodes/cumsum_u32_2d_axis_0/input_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_0/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_2d_axis_0/output_0.cairo b/tests/nodes/cumsum_u32_2d_axis_0/output_0.cairo index 69821ff0b..2b428336f 100644 --- a/tests/nodes/cumsum_u32_2d_axis_0/output_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_0/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_2d_axis_1.cairo b/tests/nodes/cumsum_u32_2d_axis_1.cairo index 9289c766f..cd36de6b8 100644 --- a/tests/nodes/cumsum_u32_2d_axis_1.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/cumsum_u32_2d_axis_1/input_0.cairo b/tests/nodes/cumsum_u32_2d_axis_1/input_0.cairo index acf2fce57..901fe958b 100644 --- a/tests/nodes/cumsum_u32_2d_axis_1/input_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/cumsum_u32_2d_axis_1/output_0.cairo b/tests/nodes/cumsum_u32_2d_axis_1/output_0.cairo index 665bf169d..5d2d1e3d3 100644 --- a/tests/nodes/cumsum_u32_2d_axis_1/output_0.cairo +++ b/tests/nodes/cumsum_u32_2d_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/div_fp16x16.cairo b/tests/nodes/div_fp16x16.cairo index a11c604cc..cc0479192 100644 --- a/tests/nodes/div_fp16x16.cairo +++ b/tests/nodes/div_fp16x16.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_fp16x16/input_0.cairo b/tests/nodes/div_fp16x16/input_0.cairo index 12c6c8c17..29c027c21 100644 --- a/tests/nodes/div_fp16x16/input_0.cairo +++ b/tests/nodes/div_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_fp16x16/input_1.cairo b/tests/nodes/div_fp16x16/input_1.cairo index 1fd919f5c..fa94053bc 100644 --- a/tests/nodes/div_fp16x16/input_1.cairo +++ b/tests/nodes/div_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_fp16x16/output_0.cairo b/tests/nodes/div_fp16x16/output_0.cairo index 9c2c3ff66..3871d8444 100644 --- a/tests/nodes/div_fp16x16/output_0.cairo +++ b/tests/nodes/div_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); - data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_fp16x16_broadcast.cairo b/tests/nodes/div_fp16x16_broadcast.cairo index 1e3c1c494..00486b4b3 100644 --- a/tests/nodes/div_fp16x16_broadcast.cairo +++ b/tests/nodes/div_fp16x16_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_fp16x16_broadcast/input_0.cairo b/tests/nodes/div_fp16x16_broadcast/input_0.cairo index e68ede88a..c7e27e160 100644 --- a/tests/nodes/div_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/div_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,31 +10,31 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/div_fp16x16_broadcast/input_1.cairo b/tests/nodes/div_fp16x16_broadcast/input_1.cairo index 49900a410..04ef934ec 100644 --- a/tests/nodes/div_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/div_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/div_fp16x16_broadcast/output_0.cairo b/tests/nodes/div_fp16x16_broadcast/output_0.cairo index 1c8d85565..4fd121328 100644 --- a/tests/nodes/div_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/div_fp16x16_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,14 +10,16 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); @@ -26,16 +27,14 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 32768, sign: false }); - data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 32768, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 32768, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/div_fp8x23.cairo b/tests/nodes/div_fp8x23.cairo index f60c9e894..90d6b57b7 100644 --- a/tests/nodes/div_fp8x23.cairo +++ b/tests/nodes/div_fp8x23.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::FP8x23TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_fp8x23/input_0.cairo b/tests/nodes/div_fp8x23/input_0.cairo index 3ffe5edd5..bae860cc7 100644 --- a/tests/nodes/div_fp8x23/input_0.cairo +++ b/tests/nodes/div_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_fp8x23/input_1.cairo b/tests/nodes/div_fp8x23/input_1.cairo index 0a7a4c6b0..64c55f5d3 100644 --- a/tests/nodes/div_fp8x23/input_1.cairo +++ b/tests/nodes/div_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_fp8x23/output_0.cairo b/tests/nodes/div_fp8x23/output_0.cairo index 88b545caa..0ba8b39dd 100644 --- a/tests/nodes/div_fp8x23/output_0.cairo +++ b/tests/nodes/div_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 4194304, sign: false }); + data.append(FP8x23 { mag: 4194304, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_fp8x23_broadcast.cairo b/tests/nodes/div_fp8x23_broadcast.cairo index cb1122d71..e897bfdcd 100644 --- a/tests/nodes/div_fp8x23_broadcast.cairo +++ b/tests/nodes/div_fp8x23_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::FP8x23TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_fp8x23_broadcast/input_0.cairo b/tests/nodes/div_fp8x23_broadcast/input_0.cairo index dacf72805..720927276 100644 --- a/tests/nodes/div_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/div_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,12 +10,17 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); @@ -24,19 +28,14 @@ fn input_0() -> Tensor { data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_fp8x23_broadcast/input_1.cairo b/tests/nodes/div_fp8x23_broadcast/input_1.cairo index 9392f2095..76817a6d8 100644 --- a/tests/nodes/div_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/div_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,7 +10,7 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/div_fp8x23_broadcast/output_0.cairo b/tests/nodes/div_fp8x23_broadcast/output_0.cairo index 0ee3ca948..fc06940ee 100644 --- a/tests/nodes/div_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/div_fp8x23_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 4194304, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 4194304, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 4194304, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); - data.append(FP8x23 { mag: 4194304, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 4194304, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 4194304, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i32.cairo b/tests/nodes/div_i32.cairo index 580904754..c6cb3b18c 100644 --- a/tests/nodes/div_i32.cairo +++ b/tests/nodes/div_i32.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_i32/input_0.cairo b/tests/nodes/div_i32/input_0.cairo index 8fe110b0d..6cc4e5d34 100644 --- a/tests/nodes/div_i32/input_0.cairo +++ b/tests/nodes/div_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i32/input_1.cairo b/tests/nodes/div_i32/input_1.cairo index e9d5e5d84..8f53696d6 100644 --- a/tests/nodes/div_i32/input_1.cairo +++ b/tests/nodes/div_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i32/output_0.cairo b/tests/nodes/div_i32/output_0.cairo index a9458c8dc..fede81720 100644 --- a/tests/nodes/div_i32/output_0.cairo +++ b/tests/nodes/div_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i32_broadcast.cairo b/tests/nodes/div_i32_broadcast.cairo index 525da98e6..139bf6ddc 100644 --- a/tests/nodes/div_i32_broadcast.cairo +++ b/tests/nodes/div_i32_broadcast.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_i32_broadcast/input_0.cairo b/tests/nodes/div_i32_broadcast/input_0.cairo index 3784947ca..2f25acef9 100644 --- a/tests/nodes/div_i32_broadcast/input_0.cairo +++ b/tests/nodes/div_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i32_broadcast/input_1.cairo b/tests/nodes/div_i32_broadcast/input_1.cairo index f497fb370..dac4bb862 100644 --- a/tests/nodes/div_i32_broadcast/input_1.cairo +++ b/tests/nodes/div_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i32_broadcast/output_0.cairo b/tests/nodes/div_i32_broadcast/output_0.cairo index 3675ab5ca..2b29c634d 100644 --- a/tests/nodes/div_i32_broadcast/output_0.cairo +++ b/tests/nodes/div_i32_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i8.cairo b/tests/nodes/div_i8.cairo index 67c342c96..04f693172 100644 --- a/tests/nodes/div_i8.cairo +++ b/tests/nodes/div_i8.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::I8TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; -use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_i8/input_0.cairo b/tests/nodes/div_i8/input_0.cairo index 1bc1ac9de..06419ab45 100644 --- a/tests/nodes/div_i8/input_0.cairo +++ b/tests/nodes/div_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i8/input_1.cairo b/tests/nodes/div_i8/input_1.cairo index 74a8210b6..d0cf0b22f 100644 --- a/tests/nodes/div_i8/input_1.cairo +++ b/tests/nodes/div_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i8/output_0.cairo b/tests/nodes/div_i8/output_0.cairo index 93b47adb5..14236968f 100644 --- a/tests/nodes/div_i8/output_0.cairo +++ b/tests/nodes/div_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(2); + data.append(0); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i8_broadcast.cairo b/tests/nodes/div_i8_broadcast.cairo index a384ef0a8..adafe319b 100644 --- a/tests/nodes/div_i8_broadcast.cairo +++ b/tests/nodes/div_i8_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::I8TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I8Tensor, I8TensorDiv}; -use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_i8_broadcast/input_0.cairo b/tests/nodes/div_i8_broadcast/input_0.cairo index b1a30d0ef..e411424a0 100644 --- a/tests/nodes/div_i8_broadcast/input_0.cairo +++ b/tests/nodes/div_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i8_broadcast/input_1.cairo b/tests/nodes/div_i8_broadcast/input_1.cairo index ac0a2f11e..53a960264 100644 --- a/tests/nodes/div_i8_broadcast/input_1.cairo +++ b/tests/nodes/div_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(2); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_i8_broadcast/output_0.cairo b/tests/nodes/div_i8_broadcast/output_0.cairo index 97f778d76..23ec91b7a 100644 --- a/tests/nodes/div_i8_broadcast/output_0.cairo +++ b/tests/nodes/div_i8_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_u32.cairo b/tests/nodes/div_u32.cairo index 512054168..fda310147 100644 --- a/tests/nodes/div_u32.cairo +++ b/tests/nodes/div_u32.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_u32/input_0.cairo b/tests/nodes/div_u32/input_0.cairo index b35195f6a..4d2b02249 100644 --- a/tests/nodes/div_u32/input_0.cairo +++ b/tests/nodes/div_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(4); - data.append(3); - data.append(3); data.append(5); data.append(3); + data.append(4); + data.append(5); data.append(5); data.append(5); - data.append(4); data.append(4); data.append(3); data.append(3); data.append(5); data.append(3); - data.append(4); + data.append(5); data.append(3); data.append(4); - data.append(4); + data.append(5); + data.append(3); data.append(3); data.append(3); data.append(3); - data.append(4); data.append(3); data.append(4); + data.append(3); data.append(4); data.append(4); data.append(5); + data.append(5); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_u32/input_1.cairo b/tests/nodes/div_u32/input_1.cairo index 02bb7d1e9..41d910ea8 100644 --- a/tests/nodes/div_u32/input_1.cairo +++ b/tests/nodes/div_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +10,23 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(2); - data.append(2); data.append(1); data.append(2); + data.append(2); + data.append(1); + data.append(1); data.append(1); data.append(1); data.append(2); data.append(2); + data.append(1); data.append(2); data.append(2); - data.append(2); - data.append(1); data.append(1); data.append(1); data.append(2); + data.append(2); + data.append(2); data.append(1); data.append(2); data.append(1); @@ -32,9 +35,6 @@ fn input_1() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(2); - data.append(2); - data.append(2); - data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_u32/output_0.cairo b/tests/nodes/div_u32/output_0.cairo index d784ee0c9..d93a804e9 100644 --- a/tests/nodes/div_u32/output_0.cairo +++ b/tests/nodes/div_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(2); - data.append(2); - data.append(3); - data.append(1); - data.append(5); data.append(3); data.append(2); data.append(2); - data.append(2); - data.append(2); - data.append(1); - data.append(3); data.append(5); + data.append(5); + data.append(4); data.append(3); + data.append(1); data.append(2); data.append(3); data.append(2); + data.append(1); data.append(4); + data.append(5); + data.append(1); + data.append(1); data.append(1); data.append(3); - data.append(3); + data.append(1); + data.append(4); + data.append(1); + data.append(4); + data.append(4); + data.append(5); + data.append(5); data.append(4); - data.append(3); - data.append(2); - data.append(2); - data.append(2); - data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_u32_broadcast.cairo b/tests/nodes/div_u32_broadcast.cairo index 641c90c8a..8e3fe0b32 100644 --- a/tests/nodes/div_u32_broadcast.cairo +++ b/tests/nodes/div_u32_broadcast.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/div_u32_broadcast/input_0.cairo b/tests/nodes/div_u32_broadcast/input_0.cairo index 316403690..a392b5bb3 100644 --- a/tests/nodes/div_u32_broadcast/input_0.cairo +++ b/tests/nodes/div_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(4); data.append(5); - data.append(4); data.append(5); - data.append(4); - data.append(4); data.append(3); data.append(3); data.append(3); data.append(3); + data.append(4); data.append(5); data.append(4); data.append(4); - data.append(3); - data.append(3); - data.append(3); + data.append(5); data.append(4); data.append(5); + data.append(3); data.append(5); data.append(4); - data.append(4); - data.append(3); - data.append(3); data.append(3); + data.append(5); + data.append(4); data.append(3); data.append(4); + data.append(5); + data.append(5); + data.append(5); + data.append(5); + data.append(5); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/div_u32_broadcast/input_1.cairo b/tests/nodes/div_u32_broadcast/input_1.cairo index 368f53b0d..6bee0fd52 100644 --- a/tests/nodes/div_u32_broadcast/input_1.cairo +++ b/tests/nodes/div_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/div_u32_broadcast/output_0.cairo b/tests/nodes/div_u32_broadcast/output_0.cairo index 418a6fb08..f1f837a08 100644 --- a/tests/nodes/div_u32_broadcast/output_0.cairo +++ b/tests/nodes/div_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(4); data.append(5); - data.append(4); data.append(5); - data.append(4); - data.append(4); data.append(3); data.append(3); data.append(3); data.append(3); + data.append(4); data.append(5); data.append(4); data.append(4); - data.append(3); - data.append(3); - data.append(3); + data.append(5); data.append(4); data.append(5); + data.append(3); data.append(5); data.append(4); - data.append(4); - data.append(3); - data.append(3); data.append(3); + data.append(5); + data.append(4); data.append(3); data.append(4); + data.append(5); + data.append(5); + data.append(5); + data.append(5); + data.append(5); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp16x16.cairo b/tests/nodes/equal_fp16x16.cairo index 285844fdb..38c3753cd 100644 --- a/tests/nodes/equal_fp16x16.cairo +++ b/tests/nodes/equal_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_fp16x16/input_0.cairo b/tests/nodes/equal_fp16x16/input_0.cairo index df120493c..1c0bdb213 100644 --- a/tests/nodes/equal_fp16x16/input_0.cairo +++ b/tests/nodes/equal_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp16x16/input_1.cairo b/tests/nodes/equal_fp16x16/input_1.cairo index 5d107320a..c6e8fe0f6 100644 --- a/tests/nodes/equal_fp16x16/input_1.cairo +++ b/tests/nodes/equal_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp16x16/output_0.cairo b/tests/nodes/equal_fp16x16/output_0.cairo index 81eb24408..2078b6e18 100644 --- a/tests/nodes/equal_fp16x16/output_0.cairo +++ b/tests/nodes/equal_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -16,9 +16,7 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); @@ -27,14 +25,16 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp16x16_broadcast.cairo b/tests/nodes/equal_fp16x16_broadcast.cairo index a2beb15aa..74eb5217e 100644 --- a/tests/nodes/equal_fp16x16_broadcast.cairo +++ b/tests/nodes/equal_fp16x16_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_fp16x16_broadcast/input_0.cairo b/tests/nodes/equal_fp16x16_broadcast/input_0.cairo index 40f2f9647..a378b6d18 100644 --- a/tests/nodes/equal_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/equal_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp16x16_broadcast/input_1.cairo b/tests/nodes/equal_fp16x16_broadcast/input_1.cairo index 6e5366ffc..9a7b2b64d 100644 --- a/tests/nodes/equal_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/equal_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp16x16_broadcast/output_0.cairo b/tests/nodes/equal_fp16x16_broadcast/output_0.cairo index e9d17d59b..d2fab9fd0 100644 --- a/tests/nodes/equal_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/equal_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +9,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); + data.append(0); data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/equal_fp8x23.cairo b/tests/nodes/equal_fp8x23.cairo index b047c4798..112c71e8b 100644 --- a/tests/nodes/equal_fp8x23.cairo +++ b/tests/nodes/equal_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_fp8x23/input_0.cairo b/tests/nodes/equal_fp8x23/input_0.cairo index 2a709fca8..4f138ecb5 100644 --- a/tests/nodes/equal_fp8x23/input_0.cairo +++ b/tests/nodes/equal_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp8x23/input_1.cairo b/tests/nodes/equal_fp8x23/input_1.cairo index 3c5409028..b0010c344 100644 --- a/tests/nodes/equal_fp8x23/input_1.cairo +++ b/tests/nodes/equal_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,30 +12,30 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp8x23/output_0.cairo b/tests/nodes/equal_fp8x23/output_0.cairo index c4441487e..df58147cb 100644 --- a/tests/nodes/equal_fp8x23/output_0.cairo +++ b/tests/nodes/equal_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +9,12 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); @@ -29,6 +27,8 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); + data.append(0); + data.append(1); data.append(1); data.append(0); data.append(0); diff --git a/tests/nodes/equal_fp8x23_broadcast.cairo b/tests/nodes/equal_fp8x23_broadcast.cairo index 1472b42e7..590193505 100644 --- a/tests/nodes/equal_fp8x23_broadcast.cairo +++ b/tests/nodes/equal_fp8x23_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_fp8x23_broadcast/input_0.cairo b/tests/nodes/equal_fp8x23_broadcast/input_0.cairo index 789f35972..31927729d 100644 --- a/tests/nodes/equal_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/equal_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,7 +11,7 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp8x23_broadcast/input_1.cairo b/tests/nodes/equal_fp8x23_broadcast/input_1.cairo index a40049391..6ffcceb3b 100644 --- a/tests/nodes/equal_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/equal_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_fp8x23_broadcast/output_0.cairo b/tests/nodes/equal_fp8x23_broadcast/output_0.cairo index 5f2035f24..417a71252 100644 --- a/tests/nodes/equal_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/equal_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/equal_i32.cairo b/tests/nodes/equal_i32.cairo index 067c7401b..c2612bc6a 100644 --- a/tests/nodes/equal_i32.cairo +++ b/tests/nodes/equal_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_i32/input_0.cairo b/tests/nodes/equal_i32/input_0.cairo index 04cfb426d..0e2586cdb 100644 --- a/tests/nodes/equal_i32/input_0.cairo +++ b/tests/nodes/equal_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); + data.append(-3); + data.append(2); + data.append(2); + data.append(-3); + data.append(1); + data.append(-3); + data.append(0); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(0); + data.append(1); + data.append(-1); + data.append(0); + data.append(0); + data.append(-3); + data.append(1); + data.append(-3); + data.append(0); + data.append(1); + data.append(-3); + data.append(-1); + data.append(2); + data.append(-2); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i32/input_1.cairo b/tests/nodes/equal_i32/input_1.cairo index 0550fba19..c6b5a6fbe 100644 --- a/tests/nodes/equal_i32/input_1.cairo +++ b/tests/nodes/equal_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(-3); + data.append(2); + data.append(0); + data.append(1); + data.append(-1); + data.append(-3); + data.append(-1); + data.append(2); + data.append(-1); + data.append(1); + data.append(-3); + data.append(-1); + data.append(2); + data.append(2); + data.append(-2); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(0); + data.append(0); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i32/output_0.cairo b/tests/nodes/equal_i32/output_0.cairo index 199576979..0cdc2c69d 100644 --- a/tests/nodes/equal_i32/output_0.cairo +++ b/tests/nodes/equal_i32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,30 +9,30 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/equal_i32_broadcast.cairo b/tests/nodes/equal_i32_broadcast.cairo index 9d4740d47..012a7e165 100644 --- a/tests/nodes/equal_i32_broadcast.cairo +++ b/tests/nodes/equal_i32_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_i32_broadcast/input_0.cairo b/tests/nodes/equal_i32_broadcast/input_0.cairo index 5b671bf20..cefd51703 100644 --- a/tests/nodes/equal_i32_broadcast/input_0.cairo +++ b/tests/nodes/equal_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(1); + data.append(-2); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i32_broadcast/input_1.cairo b/tests/nodes/equal_i32_broadcast/input_1.cairo index d66690250..fed8199ca 100644 --- a/tests/nodes/equal_i32_broadcast/input_1.cairo +++ b/tests/nodes/equal_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); + data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i32_broadcast/output_0.cairo b/tests/nodes/equal_i32_broadcast/output_0.cairo index 8087fceab..9a2391c78 100644 --- a/tests/nodes/equal_i32_broadcast/output_0.cairo +++ b/tests/nodes/equal_i32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +11,6 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i8.cairo b/tests/nodes/equal_i8.cairo index 0541eee2a..e19689a8d 100644 --- a/tests/nodes/equal_i8.cairo +++ b/tests/nodes/equal_i8.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_i8/input_0.cairo b/tests/nodes/equal_i8/input_0.cairo index ad463a767..09ea9171a 100644 --- a/tests/nodes/equal_i8/input_0.cairo +++ b/tests/nodes/equal_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(-2); + data.append(0); + data.append(-3); + data.append(-3); + data.append(1); + data.append(-3); + data.append(-1); + data.append(1); + data.append(-3); + data.append(2); + data.append(0); + data.append(-1); + data.append(1); + data.append(-3); + data.append(-3); + data.append(-3); + data.append(1); + data.append(2); + data.append(2); + data.append(-3); + data.append(0); + data.append(0); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i8/input_1.cairo b/tests/nodes/equal_i8/input_1.cairo index 5ced514f1..b1ab51213 100644 --- a/tests/nodes/equal_i8/input_1.cairo +++ b/tests/nodes/equal_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(-1); + data.append(-1); + data.append(2); + data.append(-3); + data.append(1); + data.append(-3); + data.append(-2); + data.append(1); + data.append(0); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(0); + data.append(-1); + data.append(1); + data.append(1); + data.append(-1); + data.append(-2); + data.append(-1); + data.append(2); + data.append(-3); + data.append(1); + data.append(-2); + data.append(1); + data.append(-3); + data.append(1); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i8/output_0.cairo b/tests/nodes/equal_i8/output_0.cairo index e13418e3f..452bd9d81 100644 --- a/tests/nodes/equal_i8/output_0.cairo +++ b/tests/nodes/equal_i8/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,8 +12,11 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); + data.append(1); + data.append(1); + data.append(1); data.append(0); - data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); @@ -29,12 +32,9 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(0); - data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); - data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i8_broadcast.cairo b/tests/nodes/equal_i8_broadcast.cairo index 34eca619e..cc1fd18de 100644 --- a/tests/nodes/equal_i8_broadcast.cairo +++ b/tests/nodes/equal_i8_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_i8_broadcast/input_0.cairo b/tests/nodes/equal_i8_broadcast/input_0.cairo index 587e8bcab..428f70adf 100644 --- a/tests/nodes/equal_i8_broadcast/input_0.cairo +++ b/tests/nodes/equal_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(-2); + data.append(2); + data.append(-1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i8_broadcast/input_1.cairo b/tests/nodes/equal_i8_broadcast/input_1.cairo index 155adebdb..51830d474 100644 --- a/tests/nodes/equal_i8_broadcast/input_1.cairo +++ b/tests/nodes/equal_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(-2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_i8_broadcast/output_0.cairo b/tests/nodes/equal_i8_broadcast/output_0.cairo index 6a5b87888..d2fab9fd0 100644 --- a/tests/nodes/equal_i8_broadcast/output_0.cairo +++ b/tests/nodes/equal_i8_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); data.append(0); data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_u32.cairo b/tests/nodes/equal_u32.cairo index 489560a84..6591ecbc6 100644 --- a/tests/nodes/equal_u32.cairo +++ b/tests/nodes/equal_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_u32/input_0.cairo b/tests/nodes/equal_u32/input_0.cairo index 8db3fec81..9c3b88326 100644 --- a/tests/nodes/equal_u32/input_0.cairo +++ b/tests/nodes/equal_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(5); + data.append(0); + data.append(2); + data.append(5); data.append(3); + data.append(2); data.append(5); data.append(5); - data.append(4); + data.append(0); data.append(5); - data.append(4); - data.append(1); + data.append(0); + data.append(0); + data.append(2); data.append(5); - data.append(1); - data.append(3); - data.append(3); data.append(4); data.append(1); data.append(3); - data.append(5); - data.append(4); - data.append(0); data.append(1); data.append(2); + data.append(0); + data.append(5); + data.append(2); data.append(4); - data.append(3); + data.append(2); data.append(1); data.append(1); - data.append(0); - data.append(0); - data.append(0); - data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_u32/input_1.cairo b/tests/nodes/equal_u32/input_1.cairo index 699f9cbee..39331ddba 100644 --- a/tests/nodes/equal_u32/input_1.cairo +++ b/tests/nodes/equal_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(4); + data.append(2); data.append(3); - data.append(0); + data.append(4); data.append(1); - data.append(5); - data.append(3); data.append(2); - data.append(1); + data.append(0); data.append(0); data.append(4); - data.append(5); - data.append(4); - data.append(5); + data.append(0); data.append(2); - data.append(1); + data.append(0); + data.append(0); + data.append(5); + data.append(3); data.append(5); - data.append(1); data.append(2); data.append(0); - data.append(4); - data.append(1); - data.append(1); - data.append(0); + data.append(2); + data.append(3); data.append(5); + data.append(4); data.append(1); - data.append(5); data.append(2); + data.append(5); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_u32/output_0.cairo b/tests/nodes/equal_u32/output_0.cairo index c3c7e50aa..339b2c840 100644 --- a/tests/nodes/equal_u32/output_0.cairo +++ b/tests/nodes/equal_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,14 +13,16 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(0); data.append(0); @@ -28,9 +30,7 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/equal_u32_broadcast.cairo b/tests/nodes/equal_u32_broadcast.cairo index 3597ac91c..30a7868a5 100644 --- a/tests/nodes/equal_u32_broadcast.cairo +++ b/tests/nodes/equal_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/equal_u32_broadcast/input_0.cairo b/tests/nodes/equal_u32_broadcast/input_0.cairo index d1b8809de..d47d6b523 100644 --- a/tests/nodes/equal_u32_broadcast/input_0.cairo +++ b/tests/nodes/equal_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); - data.append(4); data.append(5); + data.append(5); + data.append(2); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_u32_broadcast/input_1.cairo b/tests/nodes/equal_u32_broadcast/input_1.cairo index 1dcee8880..7c4c61dff 100644 --- a/tests/nodes/equal_u32_broadcast/input_1.cairo +++ b/tests/nodes/equal_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(3); - data.append(0); + data.append(4); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/equal_u32_broadcast/output_0.cairo b/tests/nodes/equal_u32_broadcast/output_0.cairo index 3f29a4799..417a71252 100644 --- a/tests/nodes/equal_u32_broadcast/output_0.cairo +++ b/tests/nodes/equal_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +11,6 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/exp_fp16x16.cairo b/tests/nodes/exp_fp16x16.cairo index 5d665c941..a7fd0a1a7 100644 --- a/tests/nodes/exp_fp16x16.cairo +++ b/tests/nodes/exp_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/exp_fp16x16/input_0.cairo b/tests/nodes/exp_fp16x16/input_0.cairo index 26c7970af..521fcbed1 100644 --- a/tests/nodes/exp_fp16x16/input_0.cairo +++ b/tests/nodes/exp_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 194862, sign: false }); - data.append(FP16x16 { mag: 38141, sign: true }); - data.append(FP16x16 { mag: 110238, sign: false }); - data.append(FP16x16 { mag: 63859, sign: true }); + data.append(FP16x16 { mag: 143305, sign: true }); + data.append(FP16x16 { mag: 34228, sign: false }); + data.append(FP16x16 { mag: 81407, sign: false }); + data.append(FP16x16 { mag: 119049, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/exp_fp16x16/output_0.cairo b/tests/nodes/exp_fp16x16/output_0.cairo index 73c2df575..0e2918d10 100644 --- a/tests/nodes/exp_fp16x16/output_0.cairo +++ b/tests/nodes/exp_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1281733, sign: false }); - data.append(FP16x16 { mag: 36620, sign: false }); - data.append(FP16x16 { mag: 352377, sign: false }); - data.append(FP16x16 { mag: 24734, sign: false }); + data.append(FP16x16 { mag: 7359, sign: false }); + data.append(FP16x16 { mag: 110485, sign: false }); + data.append(FP16x16 { mag: 226963, sign: false }); + data.append(FP16x16 { mag: 10655, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/exp_fp8x23.cairo b/tests/nodes/exp_fp8x23.cairo index d1b025b32..af795bdad 100644 --- a/tests/nodes/exp_fp8x23.cairo +++ b/tests/nodes/exp_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/exp_fp8x23/input_0.cairo b/tests/nodes/exp_fp8x23/input_0.cairo index 14a35eb04..ebc5d50b9 100644 --- a/tests/nodes/exp_fp8x23/input_0.cairo +++ b/tests/nodes/exp_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 11235841, sign: true }); - data.append(FP8x23 { mag: 5119248, sign: false }); - data.append(FP8x23 { mag: 735081, sign: true }); - data.append(FP8x23 { mag: 19148930, sign: true }); + data.append(FP8x23 { mag: 1192320, sign: true }); + data.append(FP8x23 { mag: 3640877, sign: true }); + data.append(FP8x23 { mag: 21840452, sign: false }); + data.append(FP8x23 { mag: 8498896, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/exp_fp8x23/output_0.cairo b/tests/nodes/exp_fp8x23/output_0.cairo index 06ef8a7b7..36c985fa8 100644 --- a/tests/nodes/exp_fp8x23/output_0.cairo +++ b/tests/nodes/exp_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 2197802, sign: false }); - data.append(FP8x23 { mag: 15442702, sign: false }); - data.append(FP8x23 { mag: 7684813, sign: false }); - data.append(FP8x23 { mag: 855682, sign: false }); + data.append(FP8x23 { mag: 7277146, sign: false }); + data.append(FP8x23 { mag: 5434938, sign: false }); + data.append(FP8x23 { mag: 113347630, sign: false }); + data.append(FP8x23 { mag: 23104375, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo index 53757865c..6107612c7 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis1/input_0.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis1/input_0.cairo index 22bb148eb..2417c999e 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis1/input_1.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis1/input_1.cairo index 94df8fa06..a8dddea3d 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +9,10 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); + data.append(2); + data.append(0); + data.append(0); data.append(0); data.append(2); data.append(1); @@ -21,20 +24,17 @@ fn input_1() -> Tensor { data.append(0); data.append(2); data.append(1); - data.append(1); data.append(0); - data.append(2); data.append(0); + data.append(1); data.append(0); data.append(2); + data.append(2); data.append(1); data.append(0); data.append(0); - data.append(1); + data.append(0); data.append(2); - data.append(1); data.append(2); - data.append(1); - data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis1/output_0.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis1/output_0.cairo index 4a53c6fb9..843805c3c 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo index 7952db17a..e44e6b6c1 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis2/input_0.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis2/input_0.cairo index 22bb148eb..2417c999e 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis2/input_1.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis2/input_1.cairo index 80db66f91..d2c0a00b1 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,29 +12,29 @@ fn input_1() -> Tensor { data.append(2); data.append(0); data.append(2); - data.append(2); + data.append(0); data.append(1); data.append(0); + data.append(2); data.append(0); data.append(1); data.append(1); - data.append(1); - data.append(1); - data.append(1); - data.append(0); + data.append(2); data.append(2); data.append(0); - data.append(0); - data.append(0); + data.append(2); data.append(0); data.append(2); - data.append(1); + data.append(2); + data.append(0); data.append(2); data.append(1); data.append(0); data.append(0); data.append(1); - data.append(2); + data.append(0); data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp16x16_3d_axis2/output_0.cairo b/tests/nodes/gather_elements_fp16x16_3d_axis2/output_0.cairo index ec4cbc330..fe0cb4f6b 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_axis2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -13,29 +13,29 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp16x16_3d_default.cairo b/tests/nodes/gather_elements_fp16x16_3d_default.cairo index a1070d7d3..7d1c54b1e 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/gather_elements_fp16x16_3d_default/input_0.cairo b/tests/nodes/gather_elements_fp16x16_3d_default/input_0.cairo index 22bb148eb..2417c999e 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_elements_fp16x16_3d_default/input_1.cairo b/tests/nodes/gather_elements_fp16x16_3d_default/input_1.cairo index 2ca546e5f..a8ee056f2 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,20 +9,21 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(1); data.append(1); data.append(0); - data.append(0); data.append(1); - data.append(0); - data.append(0); - data.append(0); - data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); data.append(0); data.append(1); data.append(0); @@ -33,8 +34,7 @@ fn input_1() -> Tensor { data.append(1); data.append(0); data.append(1); - data.append(0); - data.append(0); - data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp16x16_3d_default/output_0.cairo b/tests/nodes/gather_elements_fp16x16_3d_default/output_0.cairo index c6be1a852..d37ee87d6 100644 --- a/tests/nodes/gather_elements_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_fp16x16_3d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 1114112, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 720896, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo index 0814a2c6c..fbecd8cd1 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1.cairo @@ -4,11 +4,11 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis1/input_0.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis1/input_0.cairo index 158782e65..ed60e2f46 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis1/input_1.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis1/input_1.cairo index 818062d28..f9c244b79 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(2); data.append(0); - data.append(0); - data.append(1); - data.append(1); data.append(2); data.append(2); - data.append(1); - data.append(1); - data.append(2); - data.append(1); data.append(2); + data.append(0); + data.append(0); data.append(2); data.append(2); data.append(0); + data.append(2); + data.append(2); data.append(0); + data.append(2); data.append(0); data.append(2); data.append(1); - data.append(1); - data.append(1); data.append(2); - data.append(0); - data.append(1); data.append(1); + data.append(2); data.append(1); + data.append(2); data.append(1); data.append(0); + data.append(2); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis1/output_0.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis1/output_0.cairo index 580985635..126c55bfa 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo index 96bfcc8c4..e08b0b07c 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2.cairo @@ -4,11 +4,11 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis2/input_0.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis2/input_0.cairo index 158782e65..ed60e2f46 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis2/input_1.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis2/input_1.cairo index 83126b791..f36baa09d 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,18 +13,12 @@ fn input_1() -> Tensor { data.append(0); data.append(1); data.append(0); - data.append(0); - data.append(1); - data.append(1); - data.append(2); - data.append(1); data.append(1); data.append(0); data.append(2); data.append(2); - data.append(0); - data.append(0); - data.append(0); + data.append(2); + data.append(1); data.append(1); data.append(0); data.append(0); @@ -32,9 +26,15 @@ fn input_1() -> Tensor { data.append(1); data.append(1); data.append(2); + data.append(1); data.append(2); data.append(0); + data.append(2); data.append(1); data.append(0); + data.append(0); + data.append(2); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp8x23_3d_axis2/output_0.cairo b/tests/nodes/gather_elements_fp8x23_3d_axis2/output_0.cairo index f91ddb575..1778c6ea3 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_axis2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -14,28 +14,28 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp8x23_3d_default.cairo b/tests/nodes/gather_elements_fp8x23_3d_default.cairo index fee79d361..ccf76f1f0 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default.cairo @@ -4,11 +4,11 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_fp8x23_3d_default/input_0.cairo b/tests/nodes/gather_elements_fp8x23_3d_default/input_0.cairo index 158782e65..ed60e2f46 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_elements_fp8x23_3d_default/input_1.cairo b/tests/nodes/gather_elements_fp8x23_3d_default/input_1.cairo index bb7494182..63526f247 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(0); - data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); + data.append(0); + data.append(0); data.append(1); - data.append(1); - data.append(1); + data.append(0); + data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_fp8x23_3d_default/output_0.cairo b/tests/nodes/gather_elements_fp8x23_3d_default/output_0.cairo index f448230af..4acfdfe3d 100644 --- a/tests/nodes/gather_elements_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_fp8x23_3d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 67108864, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_axis1.cairo b/tests/nodes/gather_elements_i32_3d_axis1.cairo index 4282c3e48..4295d1451 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1.cairo @@ -4,11 +4,11 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_i32_3d_axis1/input_0.cairo b/tests/nodes/gather_elements_i32_3d_axis1/input_0.cairo index 230c76bfc..a2ac80e2e 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +9,29 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_axis1/input_1.cairo b/tests/nodes/gather_elements_i32_3d_axis1/input_1.cairo index f752b9773..92e1ce88d 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,26 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(1); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); - data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); @@ -42,8 +36,14 @@ fn input_1() -> Tensor { data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(1); data.append(1); data.append(0); data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_axis1/output_0.cairo b/tests/nodes/gather_elements_i32_3d_axis1/output_0.cairo index 8b2a519f5..dfd00a470 100644 --- a/tests/nodes/gather_elements_i32_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,41 +9,41 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 23, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(0); + data.append(4); + data.append(2); + data.append(0); + data.append(1); + data.append(5); + data.append(6); + data.append(10); + data.append(11); + data.append(9); + data.append(7); + data.append(8); + data.append(6); + data.append(7); + data.append(8); + data.append(15); + data.append(16); + data.append(14); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(14); + data.append(18); + data.append(22); + data.append(20); + data.append(21); + data.append(22); + data.append(20); + data.append(21); + data.append(19); + data.append(20); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_axis2.cairo b/tests/nodes/gather_elements_i32_3d_axis2.cairo index a7641f948..58dd1ce18 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2.cairo @@ -4,11 +4,11 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_i32_3d_axis2/input_0.cairo b/tests/nodes/gather_elements_i32_3d_axis2/input_0.cairo index 230c76bfc..a2ac80e2e 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +9,29 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_axis2/input_1.cairo b/tests/nodes/gather_elements_i32_3d_axis2/input_1.cairo index d4ab2db5d..ab202801d 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,37 +9,37 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); + data.append(1); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(0); data.append(0); data.append(1); data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); data.append(1); - data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(0); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(0); data.append(1); data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_axis2/output_0.cairo b/tests/nodes/gather_elements_i32_3d_axis2/output_0.cairo index 39172c920..a20f34592 100644 --- a/tests/nodes/gather_elements_i32_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_axis2/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,37 +9,37 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 21, sign: false }); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(4); + data.append(4); + data.append(3); + data.append(3); + data.append(6); + data.append(7); + data.append(7); + data.append(6); + data.append(9); + data.append(10); + data.append(9); + data.append(9); + data.append(13); + data.append(12); + data.append(12); + data.append(13); + data.append(15); + data.append(16); + data.append(15); + data.append(16); + data.append(19); + data.append(19); + data.append(18); + data.append(18); + data.append(21); + data.append(22); + data.append(21); + data.append(21); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_default.cairo b/tests/nodes/gather_elements_i32_3d_default.cairo index e0d3471bf..c09b8ebe8 100644 --- a/tests/nodes/gather_elements_i32_3d_default.cairo +++ b/tests/nodes/gather_elements_i32_3d_default.cairo @@ -4,11 +4,11 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_i32_3d_default/input_0.cairo b/tests/nodes/gather_elements_i32_3d_default/input_0.cairo index 230c76bfc..a2ac80e2e 100644 --- a/tests/nodes/gather_elements_i32_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +9,29 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_default/input_1.cairo b/tests/nodes/gather_elements_i32_3d_default/input_1.cairo index 5ee5d48d4..8a1527e8a 100644 --- a/tests/nodes/gather_elements_i32_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_i32_3d_default/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,32 +12,32 @@ fn input_1() -> Tensor { data.append(0); data.append(1); data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); - data.append(1); data.append(1); data.append(0); data.append(0); data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(1); - data.append(1); - data.append(0); data.append(0); data.append(0); data.append(1); data.append(1); data.append(1); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i32_3d_default/output_0.cairo b/tests/nodes/gather_elements_i32_3d_default/output_0.cairo index 33e626f6e..244b8aac7 100644 --- a/tests/nodes/gather_elements_i32_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_i32_3d_default/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,35 +9,35 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); + data.append(0); + data.append(7); + data.append(2); + data.append(9); + data.append(10); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(4); + data.append(5); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(10); + data.append(5); + data.append(0); + data.append(7); + data.append(2); + data.append(3); + data.append(10); + data.append(5); + data.append(0); + data.append(7); + data.append(8); + data.append(9); + data.append(4); + data.append(11); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i8_3d_axis1.cairo b/tests/nodes/gather_elements_i8_3d_axis1.cairo index 2c9e468dc..c04ea22a4 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/gather_elements_i8_3d_axis1/input_0.cairo b/tests/nodes/gather_elements_i8_3d_axis1/input_0.cairo index 069bade56..cdb58470f 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i8_3d_axis1/input_1.cairo b/tests/nodes/gather_elements_i8_3d_axis1/input_1.cairo index 94f8982d6..477bcfe1d 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,12 +8,12 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); diff --git a/tests/nodes/gather_elements_i8_3d_axis1/output_0.cairo b/tests/nodes/gather_elements_i8_3d_axis1/output_0.cairo index f77a7e5ad..382eae98b 100644 --- a/tests/nodes/gather_elements_i8_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_axis1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 7, sign: false }); + data.append(0); + data.append(1); + data.append(0); + data.append(3); + data.append(4); + data.append(3); + data.append(7); + data.append(7); + data.append(7); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i8_3d_default.cairo b/tests/nodes/gather_elements_i8_3d_default.cairo index 7c8787c9e..2ee5ae793 100644 --- a/tests/nodes/gather_elements_i8_3d_default.cairo +++ b/tests/nodes/gather_elements_i8_3d_default.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/gather_elements_i8_3d_default/input_0.cairo b/tests/nodes/gather_elements_i8_3d_default/input_0.cairo index 069bade56..cdb58470f 100644 --- a/tests/nodes/gather_elements_i8_3d_default/input_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i8_3d_default/input_1.cairo b/tests/nodes/gather_elements_i8_3d_default/input_1.cairo index 86d13d02b..f1fca4a90 100644 --- a/tests/nodes/gather_elements_i8_3d_default/input_1.cairo +++ b/tests/nodes/gather_elements_i8_3d_default/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,14 +8,14 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); - data.append(0); - data.append(0); - data.append(0); + data.append(1); data.append(0); data.append(1); data.append(0); data.append(1); + data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_i8_3d_default/output_0.cairo b/tests/nodes/gather_elements_i8_3d_default/output_0.cairo index ed1d7ae41..264b0285c 100644 --- a/tests/nodes/gather_elements_i8_3d_default/output_0.cairo +++ b/tests/nodes/gather_elements_i8_3d_default/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(3); + data.append(4); + data.append(2); + data.append(3); + data.append(1); + data.append(5); + data.append(3); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_u32_axis1.cairo b/tests/nodes/gather_elements_u32_axis1.cairo index 523d5b244..c1926f886 100644 --- a/tests/nodes/gather_elements_u32_axis1.cairo +++ b/tests/nodes/gather_elements_u32_axis1.cairo @@ -4,9 +4,9 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_u32_axis1/input_0.cairo b/tests/nodes/gather_elements_u32_axis1/input_0.cairo index f0f05cab0..448e91a7e 100644 --- a/tests/nodes/gather_elements_u32_axis1/input_0.cairo +++ b/tests/nodes/gather_elements_u32_axis1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_elements_u32_axis1/input_1.cairo b/tests/nodes/gather_elements_u32_axis1/input_1.cairo index 091b0a46d..ab2deb4c3 100644 --- a/tests/nodes/gather_elements_u32_axis1/input_1.cairo +++ b/tests/nodes/gather_elements_u32_axis1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,183 +12,183 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(2); data.append(0); + data.append(2); + data.append(2); + data.append(1); + data.append(0); + data.append(2); + data.append(0); data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(1); data.append(2); - data.append(2); - data.append(2); data.append(1); + data.append(2); data.append(0); + data.append(1); + data.append(1); + data.append(1); data.append(0); data.append(2); data.append(2); - data.append(2); - data.append(2); - data.append(2); - data.append(1); data.append(1); + data.append(0); data.append(2); - data.append(1); data.append(2); data.append(1); data.append(0); data.append(1); - data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(2); data.append(0); data.append(1); - data.append(2); + data.append(0); data.append(1); - data.append(2); data.append(1); data.append(0); - data.append(1); + data.append(2); + data.append(2); data.append(2); data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(1); data.append(2); data.append(0); + data.append(0); + data.append(2); + data.append(2); data.append(2); data.append(1); data.append(2); data.append(2); data.append(0); - data.append(0); data.append(2); data.append(2); - data.append(1); data.append(0); + data.append(1); + data.append(1); data.append(0); - data.append(2); + data.append(1); data.append(1); data.append(2); - data.append(0); data.append(2); data.append(0); data.append(2); - data.append(0); + data.append(2); + data.append(2); + data.append(2); data.append(2); data.append(2); data.append(0); - data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(2); + data.append(0); data.append(1); data.append(1); + data.append(2); data.append(0); data.append(0); data.append(2); data.append(1); - data.append(0); data.append(2); data.append(1); + data.append(1); data.append(2); data.append(0); + data.append(1); data.append(0); data.append(2); + data.append(1); + data.append(2); + data.append(2); data.append(2); data.append(0); data.append(0); data.append(1); + data.append(1); data.append(0); + data.append(1); data.append(2); data.append(2); data.append(0); + data.append(0); + data.append(0); data.append(1); data.append(0); + data.append(1); data.append(2); - data.append(0); data.append(1); data.append(2); data.append(0); - data.append(2); data.append(0); - data.append(2); - data.append(2); - data.append(2); data.append(1); data.append(2); + data.append(2); data.append(1); data.append(0); data.append(1); data.append(0); - data.append(1); + data.append(0); data.append(2); data.append(2); + data.append(0); data.append(2); data.append(1); - data.append(0); data.append(1); data.append(1); - data.append(2); - data.append(2); - data.append(2); + data.append(0); data.append(1); data.append(2); + data.append(0); data.append(2); + data.append(0); + data.append(1); + data.append(1); data.append(1); data.append(0); + data.append(1); data.append(0); data.append(2); + data.append(1); + data.append(1); data.append(0); + data.append(1); data.append(0); data.append(2); - data.append(0); - data.append(0); + data.append(1); data.append(1); data.append(0); + data.append(2); + data.append(2); data.append(1); data.append(0); data.append(1); data.append(2); - data.append(2); data.append(0); data.append(0); - data.append(2); - data.append(1); data.append(1); + data.append(0); data.append(1); data.append(2); - data.append(0); data.append(2); + data.append(0); data.append(2); - data.append(1); + data.append(0); data.append(2); + data.append(0); data.append(2); data.append(2); - data.append(1); data.append(2); - data.append(1); - data.append(1); - data.append(1); - data.append(0); data.append(0); - data.append(1); - data.append(0); - data.append(1); data.append(0); data.append(0); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_u32_axis1/output_0.cairo b/tests/nodes/gather_elements_u32_axis1/output_0.cairo index 12a313c48..a059c88ba 100644 --- a/tests/nodes/gather_elements_u32_axis1/output_0.cairo +++ b/tests/nodes/gather_elements_u32_axis1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,183 +12,183 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(24); data.append(1); - data.append(2); - data.append(3); + data.append(26); + data.append(27); + data.append(16); + data.append(5); + data.append(30); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(25); + data.append(14); + data.append(27); data.append(4); data.append(17); - data.append(6); + data.append(18); data.append(19); - data.append(32); + data.append(8); data.append(33); data.append(34); data.append(23); data.append(0); - data.append(1); + data.append(25); data.append(26); - data.append(27); - data.append(28); - data.append(29); - data.append(30); - data.append(19); - data.append(20); - data.append(33); - data.append(22); - data.append(35); - data.append(12); - data.append(1); - data.append(14); data.append(15); data.append(4); - data.append(5); - data.append(18); - data.append(19); + data.append(17); + data.append(6); + data.append(7); data.append(32); data.append(9); data.append(22); - data.append(35); + data.append(11); data.append(12); - data.append(25); - data.append(14); - data.append(3); - data.append(16); + data.append(13); + data.append(2); + data.append(27); + data.append(28); data.append(29); data.append(18); data.append(7); - data.append(20); + data.append(8); data.append(21); - data.append(22); - data.append(23); - data.append(12); - data.append(13); - data.append(2); - data.append(15); + data.append(34); + data.append(11); + data.append(0); + data.append(25); + data.append(26); + data.append(27); data.append(16); data.append(29); - data.append(6); - data.append(31); - data.append(20); + data.append(30); + data.append(7); + data.append(32); data.append(33); - data.append(34); - data.append(11); - data.append(36); - data.append(61); - data.append(62); + data.append(10); + data.append(23); + data.append(48); + data.append(37); + data.append(50); data.append(51); - data.append(40); - data.append(41); - data.append(66); - data.append(55); + data.append(64); + data.append(65); + data.append(42); + data.append(67); data.append(68); - data.append(45); + data.append(69); data.append(70); - data.append(47); + data.append(71); data.append(60); data.append(37); - data.append(62); - data.append(63); + data.append(38); + data.append(39); data.append(40); - data.append(53); + data.append(41); data.append(42); data.append(55); - data.append(44); - data.append(45); + data.append(56); + data.append(69); data.append(46); - data.append(59); + data.append(47); data.append(60); data.append(49); - data.append(50); - data.append(39); - data.append(40); - data.append(65); - data.append(54); - data.append(43); - data.append(68); - data.append(57); - data.append(70); - data.append(47); - data.append(36); - data.append(61); data.append(62); - data.append(39); - data.append(40); - data.append(53); + data.append(51); + data.append(52); + data.append(65); data.append(42); - data.append(67); - data.append(68); - data.append(45); + data.append(55); + data.append(44); + data.append(69); data.append(58); - data.append(47); + data.append(71); data.append(60); - data.append(37); - data.append(50); - data.append(63); - data.append(40); - data.append(65); + data.append(61); + data.append(38); + data.append(39); + data.append(52); + data.append(53); data.append(42); - data.append(67); + data.append(55); data.append(68); data.append(69); - data.append(58); + data.append(46); + data.append(47); + data.append(36); + data.append(49); + data.append(38); + data.append(51); + data.append(64); + data.append(53); + data.append(66); + data.append(43); + data.append(44); + data.append(57); + data.append(70); data.append(71); data.append(84); data.append(73); data.append(86); data.append(75); - data.append(88); + data.append(76); data.append(101); data.append(102); - data.append(103); - data.append(92); - data.append(81); + data.append(79); + data.append(104); + data.append(93); data.append(94); data.append(95); - data.append(96); - data.append(97); + data.append(72); + data.append(85); data.append(98); - data.append(87); + data.append(75); data.append(100); - data.append(101); + data.append(77); data.append(90); - data.append(79); - data.append(80); - data.append(105); - data.append(82); - data.append(83); - data.append(96); - data.append(73); - data.append(74); - data.append(87); - data.append(76); - data.append(89); - data.append(78); data.append(91); - data.append(104); - data.append(105); - data.append(82); + data.append(92); + data.append(81); + data.append(94); data.append(83); data.append(96); data.append(85); data.append(86); - data.append(87); - data.append(100); + data.append(75); + data.append(88); data.append(77); data.append(102); - data.append(103); + data.append(91); data.append(92); - data.append(105); + data.append(81); data.append(106); data.append(107); data.append(84); - data.append(97); + data.append(73); data.append(86); - data.append(87); - data.append(88); + data.append(99); + data.append(76); data.append(77); - data.append(78); - data.append(91); - data.append(80); - data.append(93); - data.append(82); + data.append(90); + data.append(79); + data.append(92); + data.append(105); + data.append(106); data.append(83); + data.append(96); + data.append(73); + data.append(98); + data.append(75); + data.append(100); + data.append(101); + data.append(102); + data.append(79); + data.append(80); + data.append(81); + data.append(106); + data.append(107); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_u32_axis2.cairo b/tests/nodes/gather_elements_u32_axis2.cairo index d9135016c..66a23c66b 100644 --- a/tests/nodes/gather_elements_u32_axis2.cairo +++ b/tests/nodes/gather_elements_u32_axis2.cairo @@ -4,9 +4,9 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_u32_axis2/input_0.cairo b/tests/nodes/gather_elements_u32_axis2/input_0.cairo index f0f05cab0..448e91a7e 100644 --- a/tests/nodes/gather_elements_u32_axis2/input_0.cairo +++ b/tests/nodes/gather_elements_u32_axis2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_elements_u32_axis2/input_1.cairo b/tests/nodes/gather_elements_u32_axis2/input_1.cairo index ed6b732c2..172e6d020 100644 --- a/tests/nodes/gather_elements_u32_axis2/input_1.cairo +++ b/tests/nodes/gather_elements_u32_axis2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,113 +10,113 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(0); - data.append(0); - data.append(0); - data.append(1); - data.append(0); data.append(2); - data.append(1); - data.append(0); data.append(2); data.append(0); data.append(1); data.append(2); - data.append(2); + data.append(1); data.append(2); data.append(1); data.append(2); data.append(0); + data.append(0); + data.append(2); data.append(2); - data.append(1); data.append(2); data.append(0); data.append(0); - data.append(2); + data.append(1); data.append(1); data.append(1); data.append(0); data.append(1); data.append(1); - data.append(2); - data.append(0); data.append(0); data.append(2); - data.append(2); + data.append(0); data.append(2); data.append(0); + data.append(1); + data.append(1); data.append(2); + data.append(1); + data.append(0); data.append(2); data.append(2); data.append(1); - data.append(1); data.append(0); data.append(0); - data.append(2); - data.append(1); - data.append(2); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(2); - data.append(1); data.append(2); data.append(0); + data.append(1); data.append(0); data.append(2); - data.append(0); data.append(2); - data.append(1); + data.append(0); data.append(1); data.append(1); data.append(0); + data.append(2); data.append(1); data.append(0); data.append(0); data.append(2); - data.append(2); - data.append(0); - data.append(0); data.append(1); data.append(2); + data.append(2); data.append(1); - data.append(0); data.append(1); data.append(0); + data.append(1); data.append(0); - data.append(2); data.append(0); data.append(0); data.append(0); + data.append(2); + data.append(1); data.append(0); data.append(1); + data.append(1); + data.append(0); data.append(2); + data.append(1); data.append(2); + data.append(1); + data.append(1); data.append(0); + data.append(1); data.append(0); data.append(1); data.append(0); + data.append(0); data.append(1); data.append(2); - data.append(2); data.append(1); - data.append(0); data.append(2); + data.append(1); data.append(0); data.append(0); - data.append(2); - data.append(2); + data.append(1); data.append(2); data.append(2); data.append(1); + data.append(0); data.append(2); + data.append(0); + data.append(1); + data.append(1); + data.append(1); data.append(2); data.append(2); data.append(0); data.append(0); - data.append(0); + data.append(2); data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_u32_axis2/output_0.cairo b/tests/nodes/gather_elements_u32_axis2/output_0.cairo index 4da259b43..da57b3055 100644 --- a/tests/nodes/gather_elements_u32_axis2/output_0.cairo +++ b/tests/nodes/gather_elements_u32_axis2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,113 +10,113 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(4); + data.append(6); + data.append(7); data.append(2); - data.append(0); - data.append(1); - data.append(5); - data.append(0); + data.append(3); data.append(7); data.append(5); + data.append(6); + data.append(4); + data.append(8); data.append(0); - data.append(7); - data.append(2); - data.append(15); - data.append(19); - data.append(20); + data.append(1); + data.append(8); data.append(18); - data.append(16); - data.append(20); - data.append(12); data.append(19); + data.append(14); + data.append(12); + data.append(16); data.append(17); - data.append(18); + data.append(15); data.append(13); - data.append(14); - data.append(30); - data.append(28); - data.append(29); + data.append(17); + data.append(15); + data.append(13); + data.append(20); data.append(24); + data.append(31); + data.append(26); + data.append(27); data.append(28); - data.append(29); - data.append(30); + data.append(32); + data.append(27); data.append(25); - data.append(26); - data.append(30); - data.append(31); data.append(32); + data.append(30); + data.append(28); + data.append(26); data.append(36); - data.append(43); + data.append(37); + data.append(41); + data.append(36); + data.append(40); data.append(44); data.append(42); - data.append(40); + data.append(37); data.append(41); data.append(36); - data.append(37); - data.append(44); - data.append(39); data.append(43); - data.append(38); - data.append(51); + data.append(44); + data.append(48); data.append(52); - data.append(56); - data.append(51); - data.append(55); - data.append(50); + data.append(53); data.append(48); data.append(55); - data.append(50); - data.append(54); - data.append(52); data.append(53); + data.append(48); + data.append(49); + data.append(56); + data.append(51); + data.append(55); + data.append(56); + data.append(63); + data.append(64); + data.append(62); data.append(63); data.append(61); - data.append(65); + data.append(62); data.append(60); data.append(61); data.append(68); - data.append(66); - data.append(61); - data.append(62); data.append(63); - data.append(67); + data.append(61); data.append(65); - data.append(72); - data.append(76); - data.append(74); - data.append(72); - data.append(79); - data.append(74); - data.append(72); + data.append(75); data.append(73); - data.append(74); + data.append(80); data.append(75); data.append(79); - data.append(80); - data.append(84); - data.append(85); - data.append(89); + data.append(77); + data.append(75); + data.append(73); + data.append(77); + data.append(72); + data.append(76); + data.append(74); data.append(84); data.append(88); data.append(92); - data.append(90); - data.append(88); - data.append(86); - data.append(90); + data.append(87); + data.append(91); + data.append(89); + data.append(84); data.append(85); - data.append(86); - data.append(102); + data.append(89); + data.append(90); + data.append(91); + data.append(89); + data.append(96); data.append(103); - data.append(104); - data.append(102); + data.append(98); + data.append(99); data.append(100); - data.append(104); + data.append(101); data.append(102); data.append(103); data.append(98); data.append(96); - data.append(97); + data.append(103); data.append(104); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_u32_axis3.cairo b/tests/nodes/gather_elements_u32_axis3.cairo index a5abbe543..020d1f519 100644 --- a/tests/nodes/gather_elements_u32_axis3.cairo +++ b/tests/nodes/gather_elements_u32_axis3.cairo @@ -4,9 +4,9 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_u32_axis3/input_0.cairo b/tests/nodes/gather_elements_u32_axis3/input_0.cairo index f0f05cab0..448e91a7e 100644 --- a/tests/nodes/gather_elements_u32_axis3/input_0.cairo +++ b/tests/nodes/gather_elements_u32_axis3/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_elements_u32_axis3/input_1.cairo b/tests/nodes/gather_elements_u32_axis3/input_1.cairo index d3264ece9..727fa793f 100644 --- a/tests/nodes/gather_elements_u32_axis3/input_1.cairo +++ b/tests/nodes/gather_elements_u32_axis3/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,15 +10,18 @@ fn input_1() -> Tensor { shape.append(6); let mut data = ArrayTrait::new(); + data.append(2); + data.append(2); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); - data.append(2); data.append(0); data.append(2); - data.append(1); data.append(0); + data.append(1); data.append(0); data.append(2); data.append(1); @@ -27,96 +30,78 @@ fn input_1() -> Tensor { data.append(0); data.append(1); data.append(1); - data.append(2); data.append(0); - data.append(2); - data.append(0); - data.append(2); data.append(1); + data.append(2); data.append(0); data.append(0); data.append(2); data.append(2); data.append(2); + data.append(2); data.append(1); data.append(1); data.append(0); - data.append(1); - data.append(0); - data.append(1); data.append(2); - data.append(1); - data.append(1); data.append(2); - data.append(0); - data.append(0); - data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(0); - data.append(1); - data.append(1); - data.append(1); data.append(2); data.append(0); data.append(0); + data.append(2); data.append(0); - data.append(1); + data.append(2); data.append(0); data.append(1); data.append(1); data.append(2); data.append(0); data.append(0); - data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); - data.append(0); data.append(2); - data.append(0); + data.append(2); data.append(0); data.append(1); - data.append(2); data.append(1); data.append(1); - data.append(2); - data.append(2); data.append(1); - data.append(0); data.append(2); data.append(2); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(0); data.append(2); - data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(0); data.append(1); data.append(2); data.append(0); + data.append(1); data.append(0); + data.append(2); + data.append(2); + data.append(2); data.append(0); + data.append(2); data.append(0); - data.append(1); data.append(0); + data.append(2); data.append(0); data.append(0); + data.append(2); data.append(1); data.append(1); data.append(2); data.append(0); data.append(2); - data.append(0); - data.append(0); data.append(1); data.append(0); - data.append(0); - data.append(2); data.append(2); data.append(0); data.append(1); @@ -126,102 +111,117 @@ fn input_1() -> Tensor { data.append(2); data.append(0); data.append(2); - data.append(0); - data.append(1); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(0); data.append(2); + data.append(1); + data.append(1); data.append(0); - data.append(2); - data.append(2); data.append(1); data.append(1); - data.append(2); data.append(1); data.append(0); - data.append(2); data.append(0); data.append(1); - data.append(0); data.append(2); - data.append(0); data.append(2); - data.append(0); data.append(1); data.append(1); data.append(0); + data.append(1); + data.append(1); data.append(2); - data.append(2); - data.append(2); - data.append(2); - data.append(2); + data.append(1); + data.append(1); data.append(0); data.append(2); data.append(2); + data.append(1); data.append(2); data.append(2); data.append(1); - data.append(0); + data.append(2); data.append(1); - data.append(0); + data.append(2); data.append(1); - data.append(0); data.append(2); + data.append(0); data.append(2); data.append(2); data.append(0); data.append(1); data.append(0); data.append(1); - data.append(1); data.append(0); data.append(1); data.append(0); data.append(0); - data.append(0); - data.append(0); + data.append(2); + data.append(2); + data.append(2); + data.append(2); data.append(1); - data.append(0); data.append(1); - data.append(0); - data.append(0); data.append(2); + data.append(1); data.append(0); data.append(0); data.append(2); data.append(1); data.append(1); + data.append(2); + data.append(0); data.append(0); data.append(1); data.append(1); data.append(2); data.append(1); data.append(1); + data.append(2); data.append(1); data.append(1); - data.append(0); - data.append(2); - data.append(2); data.append(2); data.append(2); + data.append(0); + data.append(1); data.append(1); - data.append(2); data.append(0); data.append(0); data.append(0); + data.append(2); + data.append(2); data.append(0); data.append(0); data.append(1); data.append(0); data.append(2); + data.append(1); + data.append(0); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(2); data.append(0); data.append(0); + data.append(2); + data.append(2); + data.append(2); + data.append(1); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); + data.append(2); + data.append(0); + data.append(0); + data.append(0); data.append(1); data.append(1); data.append(0); diff --git a/tests/nodes/gather_elements_u32_axis3/output_0.cairo b/tests/nodes/gather_elements_u32_axis3/output_0.cairo index d3bc40b05..eb4f17465 100644 --- a/tests/nodes/gather_elements_u32_axis3/output_0.cairo +++ b/tests/nodes/gather_elements_u32_axis3/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,218 +10,218 @@ fn output_0() -> Tensor { shape.append(6); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); + data.append(2); + data.append(2); data.append(1); data.append(1); - data.append(2); data.append(0); - data.append(5); + data.append(0); + data.append(4); data.append(4); - data.append(3); data.append(3); data.append(5); + data.append(3); data.append(4); - data.append(8); - data.append(8); data.append(6); - data.append(7); + data.append(8); data.append(7); data.append(8); + data.append(8); + data.append(6); + data.append(10); + data.append(10); data.append(9); - data.append(11); - data.append(9); - data.append(11); data.append(10); + data.append(11); data.append(9); data.append(12); data.append(14); data.append(14); data.append(14); + data.append(14); data.append(13); - data.append(13); - data.append(15); data.append(16); data.append(15); - data.append(16); data.append(17); - data.append(16); - data.append(19); - data.append(20); + data.append(17); + data.append(17); + data.append(15); data.append(18); + data.append(20); data.append(18); + data.append(20); data.append(18); data.append(19); data.append(22); - data.append(22); + data.append(23); + data.append(21); data.append(21); data.append(22); - data.append(22); - data.append(22); - data.append(26); - data.append(24); + data.append(21); data.append(24); data.append(24); data.append(25); + data.append(26); + data.append(26); data.append(24); data.append(28); data.append(28); + data.append(28); + data.append(28); + data.append(29); data.append(29); - data.append(27); - data.append(27); - data.append(27); - data.append(31); - data.append(30); data.append(30); data.append(30); - data.append(31); data.append(30); + data.append(32); + data.append(32); + data.append(32); + data.append(35); data.append(35); - data.append(33); data.append(33); data.append(34); data.append(35); - data.append(34); + data.append(33); data.append(37); + data.append(36); data.append(38); data.append(38); - data.append(37); - data.append(36); data.append(38); + data.append(36); data.append(41); data.append(39); data.append(39); - data.append(40); - data.append(40); + data.append(41); + data.append(39); data.append(39); data.append(44); data.append(43); data.append(43); data.append(44); data.append(42); - data.append(42); - data.append(45); - data.append(45); + data.append(44); data.append(46); data.append(45); + data.append(47); data.append(45); + data.append(46); data.append(45); - data.append(49); - data.append(49); data.append(50); data.append(48); data.append(50); data.append(48); + data.append(50); + data.append(49); data.append(51); data.append(52); + data.append(52); data.append(51); - data.append(51); - data.append(53); data.append(53); - data.append(54); + data.append(52); data.append(55); data.append(54); - data.append(56); + data.append(55); + data.append(55); + data.append(55); data.append(54); - data.append(56); - data.append(57); - data.append(59); data.append(57); data.append(58); + data.append(59); + data.append(59); data.append(58); data.append(58); - data.append(61); - data.append(60); - data.append(62); data.append(60); + data.append(61); + data.append(61); data.append(62); - data.append(62); - data.append(64); - data.append(64); + data.append(61); + data.append(61); + data.append(63); + data.append(65); data.append(65); data.append(64); - data.append(63); data.append(65); - data.append(66); + data.append(65); data.append(67); - data.append(66); data.append(68); - data.append(66); + data.append(67); + data.append(68); + data.append(67); data.append(68); - data.append(69); - data.append(70); - data.append(70); data.append(69); data.append(71); data.append(71); - data.append(74); - data.append(74); - data.append(74); + data.append(69); + data.append(70); + data.append(69); + data.append(73); + data.append(72); + data.append(73); + data.append(72); data.append(72); - data.append(74); data.append(74); data.append(77); data.append(77); + data.append(77); data.append(76); - data.append(75); data.append(76); - data.append(75); + data.append(77); data.append(79); data.append(78); - data.append(80); - data.append(80); - data.append(80); data.append(78); - data.append(82); + data.append(80); + data.append(79); + data.append(79); + data.append(83); data.append(81); - data.append(82); - data.append(82); data.append(81); data.append(82); - data.append(84); - data.append(84); - data.append(84); - data.append(84); + data.append(82); + data.append(83); data.append(85); - data.append(84); - data.append(88); - data.append(87); - data.append(87); + data.append(85); + data.append(86); + data.append(85); + data.append(85); + data.append(86); data.append(89); data.append(87); + data.append(88); + data.append(88); + data.append(87); data.append(87); + data.append(90); + data.append(92); data.append(92); - data.append(91); - data.append(91); + data.append(90); data.append(90); data.append(91); - data.append(91); + data.append(93); data.append(95); data.append(94); - data.append(94); - data.append(94); - data.append(94); data.append(93); - data.append(98); - data.append(98); - data.append(98); - data.append(98); + data.append(95); + data.append(95); + data.append(97); + data.append(97); + data.append(97); data.append(97); data.append(98); + data.append(96); data.append(99); - data.append(99); - data.append(99); - data.append(99); - data.append(99); + data.append(101); + data.append(101); + data.append(101); + data.append(100); data.append(100); - data.append(102); - data.append(104); - data.append(102); data.append(102); data.append(103); data.append(103); - data.append(106); - data.append(106); + data.append(103); + data.append(104); + data.append(102); + data.append(105); + data.append(105); data.append(106); data.append(106); data.append(105); diff --git a/tests/nodes/gather_elements_u32_default.cairo b/tests/nodes/gather_elements_u32_default.cairo index 1f9cc9683..0674675d4 100644 --- a/tests/nodes/gather_elements_u32_default.cairo +++ b/tests/nodes/gather_elements_u32_default.cairo @@ -4,9 +4,9 @@ mod output_0; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; #[test] diff --git a/tests/nodes/gather_elements_u32_default/input_0.cairo b/tests/nodes/gather_elements_u32_default/input_0.cairo index f0f05cab0..448e91a7e 100644 --- a/tests/nodes/gather_elements_u32_default/input_0.cairo +++ b/tests/nodes/gather_elements_u32_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_elements_u32_default/input_1.cairo b/tests/nodes/gather_elements_u32_default/input_1.cairo index 2a7a91732..75c7988d5 100644 --- a/tests/nodes/gather_elements_u32_default/input_1.cairo +++ b/tests/nodes/gather_elements_u32_default/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,118 +10,107 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(0); data.append(0); + data.append(0); + data.append(2); data.append(1); data.append(1); + data.append(2); data.append(1); data.append(0); - data.append(2); data.append(1); data.append(2); - data.append(2); + data.append(0); data.append(1); + data.append(0); data.append(1); data.append(2); - data.append(2); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(0); data.append(1); - data.append(2); + data.append(1); data.append(0); data.append(2); - data.append(0); + data.append(1); data.append(1); data.append(2); - data.append(0); + data.append(1); data.append(2); data.append(2); + data.append(0); data.append(1); + data.append(0); + data.append(2); + data.append(0); data.append(1); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(2); + data.append(2); + data.append(2); + data.append(0); + data.append(1); + data.append(0); data.append(0); data.append(0); - data.append(2); data.append(1); data.append(2); - data.append(1); data.append(2); data.append(1); + data.append(0); data.append(2); data.append(2); data.append(2); data.append(2); - data.append(2); - data.append(0); - data.append(1); - data.append(0); - data.append(1); data.append(0); data.append(2); data.append(1); data.append(1); - data.append(0); - data.append(0); + data.append(1); data.append(2); data.append(0); data.append(0); data.append(1); + data.append(0); data.append(1); - data.append(2); - data.append(2); data.append(1); data.append(1); data.append(2); - data.append(0); - data.append(0); data.append(2); data.append(1); + data.append(1); data.append(2); data.append(0); - data.append(0); data.append(2); data.append(1); - data.append(1); data.append(0); - data.append(2); - data.append(2); - data.append(1); data.append(1); data.append(0); data.append(0); data.append(2); data.append(1); - data.append(0); data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(2); - data.append(1); data.append(2); data.append(2); - data.append(0); - data.append(1); data.append(2); data.append(2); - data.append(0); - data.append(2); + data.append(1); + data.append(1); + data.append(1); data.append(2); data.append(2); data.append(2); data.append(1); data.append(0); - data.append(0); - data.append(1); - data.append(2); - data.append(0); - data.append(2); data.append(1); data.append(1); data.append(2); @@ -129,246 +118,257 @@ fn input_1() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(2); + data.append(1); data.append(0); data.append(1); data.append(2); data.append(1); data.append(1); data.append(1); - data.append(0); - data.append(1); - data.append(1); - data.append(1); data.append(2); data.append(1); data.append(1); - data.append(1); data.append(2); data.append(2); data.append(0); + data.append(0); + data.append(1); data.append(1); data.append(0); data.append(1); + data.append(0); data.append(2); data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(2); data.append(0); - data.append(2); data.append(1); data.append(1); - data.append(2); data.append(1); data.append(0); data.append(0); - data.append(0); - data.append(1); data.append(2); data.append(2); - data.append(0); + data.append(2); + data.append(2); + data.append(2); data.append(2); data.append(1); data.append(1); data.append(0); - data.append(1); - data.append(2); data.append(0); data.append(2); - data.append(2); data.append(0); data.append(0); + data.append(2); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(1); data.append(0); + data.append(2); + data.append(2); data.append(0); + data.append(2); + data.append(2); data.append(0); data.append(1); data.append(0); - data.append(2); - data.append(2); data.append(1); data.append(0); data.append(2); data.append(2); data.append(0); + data.append(1); data.append(0); + data.append(1); data.append(2); + data.append(0); data.append(2); data.append(0); data.append(1); data.append(0); + data.append(0); data.append(2); data.append(1); data.append(2); - data.append(0); data.append(1); data.append(1); data.append(2); + data.append(0); + data.append(0); + data.append(0); data.append(2); data.append(2); - data.append(1); - data.append(1); + data.append(0); data.append(2); data.append(0); + data.append(1); + data.append(2); + data.append(2); data.append(2); + data.append(1); data.append(2); data.append(0); data.append(2); + data.append(2); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(2); - data.append(0); data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); data.append(2); - data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(2); + data.append(1); data.append(2); data.append(1); data.append(1); - data.append(0); data.append(2); + data.append(0); data.append(1); data.append(2); data.append(1); - data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); + data.append(2); data.append(1); + data.append(2); data.append(0); data.append(1); - data.append(0); data.append(1); data.append(1); - data.append(2); data.append(1); - data.append(2); data.append(0); data.append(2); data.append(2); - data.append(2); data.append(1); data.append(0); - data.append(2); - data.append(1); data.append(1); data.append(2); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(2); data.append(2); - data.append(2); + data.append(1); data.append(0); data.append(2); data.append(2); - data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(2); data.append(0); + data.append(1); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(2); + data.append(1); data.append(0); data.append(2); data.append(0); + data.append(2); + data.append(2); data.append(0); data.append(0); + data.append(1); data.append(2); data.append(2); data.append(1); - data.append(1); + data.append(2); + data.append(0); data.append(2); data.append(1); data.append(2); + data.append(0); + data.append(2); data.append(2); data.append(1); - data.append(0); - data.append(0); - data.append(0); data.append(2); data.append(2); data.append(0); data.append(2); data.append(2); - data.append(0); - data.append(0); data.append(2); data.append(1); - data.append(1); - data.append(0); data.append(0); data.append(1); data.append(1); + data.append(0); + data.append(2); + data.append(0); data.append(1); data.append(0); + data.append(2); + data.append(2); + data.append(0); + data.append(2); data.append(1); + data.append(0); + data.append(0); data.append(1); + data.append(0); + data.append(0); data.append(2); - data.append(1); + data.append(0); data.append(1); data.append(2); data.append(1); - data.append(0); - data.append(0); data.append(1); data.append(1); data.append(1); - data.append(2); data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(0); data.append(2); + data.append(0); + data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(0); data.append(2); + data.append(0); data.append(2); + data.append(1); data.append(2); - data.append(0); data.append(1); - data.append(0); data.append(1); data.append(1); - data.append(2); - data.append(0); data.append(1); + data.append(2); data.append(1); - data.append(0); - data.append(0); data.append(1); - data.append(0); data.append(1); - data.append(0); - data.append(0); data.append(2); data.append(0); + data.append(1); data.append(2); + data.append(1); data.append(2); - data.append(2); + data.append(0); data.append(0); data.append(0); data.append(1); data.append(0); - data.append(2); + data.append(0); + data.append(1); data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_elements_u32_default/output_0.cairo b/tests/nodes/gather_elements_u32_default/output_0.cairo index a7fac7d73..4e6add915 100644 --- a/tests/nodes/gather_elements_u32_default/output_0.cairo +++ b/tests/nodes/gather_elements_u32_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,365 +10,365 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(37); - data.append(38); - data.append(39); - data.append(4); - data.append(77); + data.append(36); + data.append(1); + data.append(2); + data.append(3); + data.append(76); + data.append(41); data.append(42); data.append(79); - data.append(80); - data.append(45); + data.append(44); + data.append(9); data.append(46); data.append(83); - data.append(84); + data.append(12); data.append(49); - data.append(50); - data.append(15); - data.append(52); - data.append(17); + data.append(14); + data.append(51); + data.append(88); + data.append(53); data.append(54); - data.append(91); + data.append(55); data.append(20); - data.append(93); - data.append(22); - data.append(59); + data.append(57); + data.append(58); + data.append(23); data.append(96); - data.append(25); - data.append(98); + data.append(61); + data.append(62); data.append(99); data.append(64); - data.append(65); - data.append(30); + data.append(101); + data.append(102); data.append(31); - data.append(32); - data.append(105); - data.append(34); + data.append(68); + data.append(33); + data.append(106); data.append(35); - data.append(72); - data.append(37); - data.append(74); - data.append(39); - data.append(76); - data.append(41); + data.append(36); + data.append(1); + data.append(38); + data.append(3); + data.append(4); + data.append(77); data.append(78); data.append(79); - data.append(80); - data.append(81); - data.append(82); + data.append(8); + data.append(45); + data.append(10); data.append(11); - data.append(48); - data.append(13); - data.append(50); - data.append(15); - data.append(88); - data.append(53); - data.append(54); - data.append(19); - data.append(20); + data.append(12); + data.append(49); + data.append(86); + data.append(87); + data.append(52); + data.append(17); + data.append(90); + data.append(91); + data.append(92); data.append(93); data.append(22); - data.append(23); + data.append(95); data.append(60); data.append(61); - data.append(98); + data.append(62); data.append(99); - data.append(64); - data.append(65); - data.append(102); + data.append(28); + data.append(29); + data.append(66); data.append(31); - data.append(32); - data.append(105); + data.append(68); + data.append(69); data.append(70); data.append(107); - data.append(0); - data.append(1); - data.append(74); - data.append(39); - data.append(40); - data.append(5); - data.append(78); - data.append(79); + data.append(72); + data.append(37); + data.append(38); + data.append(75); + data.append(4); + data.append(77); + data.append(42); + data.append(7); data.append(44); - data.append(45); + data.append(9); data.append(10); - data.append(11); - data.append(84); + data.append(83); + data.append(48); data.append(49); data.append(14); - data.append(51); - data.append(16); - data.append(17); - data.append(54); - data.append(55); + data.append(15); + data.append(88); + data.append(89); + data.append(90); + data.append(91); data.append(92); data.append(57); - data.append(94); - data.append(95); - data.append(24); - data.append(61); + data.append(58); + data.append(59); + data.append(96); + data.append(97); data.append(98); - data.append(99); + data.append(63); data.append(28); - data.append(101); - data.append(102); + data.append(65); + data.append(66); data.append(103); data.append(104); - data.append(69); + data.append(33); data.append(34); data.append(35); data.append(36); - data.append(73); - data.append(2); + data.append(1); + data.append(38); data.append(75); data.append(40); data.append(41); - data.append(78); + data.append(42); data.append(79); - data.append(8); - data.append(9); - data.append(10); + data.append(44); + data.append(45); + data.append(82); data.append(83); data.append(12); - data.append(49); - data.append(86); + data.append(13); + data.append(50); data.append(51); - data.append(52); + data.append(16); data.append(53); data.append(18); - data.append(55); + data.append(91); data.append(56); - data.append(57); - data.append(94); - data.append(59); + data.append(21); + data.append(58); + data.append(23); data.append(60); data.append(61); - data.append(98); - data.append(99); + data.append(62); + data.append(27); data.append(28); - data.append(65); - data.append(30); - data.append(67); + data.append(101); + data.append(102); + data.append(103); data.append(104); - data.append(69); - data.append(70); - data.append(35); + data.append(105); + data.append(106); + data.append(71); data.append(36); - data.append(73); + data.append(1); data.append(2); data.append(75); - data.append(40); - data.append(41); + data.append(4); + data.append(5); data.append(78); - data.append(43); - data.append(8); - data.append(9); - data.append(10); + data.append(79); + data.append(80); + data.append(45); + data.append(82); data.append(47); - data.append(84); + data.append(12); data.append(85); - data.append(14); - data.append(87); - data.append(52); - data.append(53); + data.append(86); + data.append(15); + data.append(88); + data.append(89); data.append(18); data.append(55); - data.append(92); - data.append(21); - data.append(94); + data.append(20); + data.append(57); + data.append(22); data.append(95); - data.append(24); + data.append(96); data.append(25); - data.append(26); + data.append(62); data.append(27); - data.append(28); - data.append(65); + data.append(64); + data.append(101); data.append(30); data.append(103); - data.append(104); + data.append(32); data.append(69); data.append(34); - data.append(107); + data.append(35); data.append(72); - data.append(1); - data.append(2); - data.append(75); - data.append(76); - data.append(5); - data.append(42); + data.append(37); + data.append(74); + data.append(39); + data.append(40); + data.append(77); + data.append(6); data.append(7); - data.append(80); - data.append(45); + data.append(8); + data.append(81); data.append(82); data.append(11); - data.append(48); - data.append(49); - data.append(86); + data.append(84); + data.append(13); + data.append(50); data.append(87); data.append(88); - data.append(53); + data.append(89); data.append(54); data.append(91); data.append(20); data.append(93); data.append(94); data.append(23); - data.append(96); + data.append(24); data.append(25); - data.append(26); - data.append(27); - data.append(64); - data.append(65); - data.append(102); + data.append(98); + data.append(63); + data.append(28); + data.append(101); + data.append(30); data.append(31); - data.append(68); - data.append(33); + data.append(32); + data.append(105); data.append(70); - data.append(71); + data.append(107); data.append(36); - data.append(73); - data.append(38); + data.append(37); + data.append(74); data.append(3); data.append(40); - data.append(5); - data.append(6); - data.append(79); - data.append(80); - data.append(45); - data.append(46); - data.append(11); + data.append(77); + data.append(42); + data.append(43); + data.append(8); + data.append(9); + data.append(10); + data.append(47); data.append(84); data.append(49); data.append(86); - data.append(51); - data.append(16); - data.append(17); - data.append(18); - data.append(19); - data.append(56); - data.append(57); - data.append(22); + data.append(15); + data.append(52); + data.append(53); + data.append(54); + data.append(55); + data.append(20); + data.append(93); + data.append(94); data.append(59); data.append(24); data.append(61); - data.append(62); - data.append(99); - data.append(64); + data.append(98); + data.append(27); + data.append(100); data.append(101); - data.append(30); - data.append(103); + data.append(66); + data.append(31); data.append(104); data.append(105); data.append(70); - data.append(35); - data.append(72); - data.append(37); - data.append(38); - data.append(75); - data.append(40); - data.append(41); + data.append(71); + data.append(0); + data.append(73); + data.append(2); + data.append(39); + data.append(4); + data.append(5); data.append(42); - data.append(43); + data.append(7); data.append(8); data.append(81); - data.append(82); - data.append(83); - data.append(12); - data.append(85); + data.append(46); + data.append(11); + data.append(84); + data.append(13); data.append(86); - data.append(15); + data.append(87); data.append(16); - data.append(89); - data.append(18); - data.append(19); - data.append(20); - data.append(21); - data.append(22); - data.append(95); - data.append(24); - data.append(97); - data.append(26); + data.append(17); + data.append(54); + data.append(91); + data.append(92); + data.append(57); + data.append(94); + data.append(23); + data.append(96); + data.append(61); + data.append(98); data.append(27); - data.append(28); + data.append(100); data.append(101); - data.append(102); - data.append(67); - data.append(68); - data.append(105); - data.append(70); + data.append(66); + data.append(103); + data.append(104); + data.append(33); + data.append(106); data.append(107); data.append(72); data.append(37); data.append(2); - data.append(3); - data.append(4); - data.append(77); + data.append(39); + data.append(40); + data.append(5); data.append(78); data.append(7); - data.append(80); - data.append(81); - data.append(10); - data.append(11); - data.append(84); - data.append(49); + data.append(44); + data.append(9); + data.append(82); + data.append(83); + data.append(12); + data.append(85); data.append(50); data.append(15); data.append(16); data.append(53); - data.append(54); - data.append(55); - data.append(20); - data.append(57); + data.append(18); + data.append(19); + data.append(92); + data.append(21); data.append(58); data.append(95); data.append(60); data.append(61); - data.append(98); + data.append(62); data.append(63); - data.append(28); - data.append(29); - data.append(66); - data.append(67); - data.append(68); + data.append(64); + data.append(65); + data.append(30); + data.append(31); + data.append(32); data.append(105); - data.append(70); + data.append(34); data.append(71); data.append(0); - data.append(73); + data.append(1); data.append(38); data.append(3); data.append(76); - data.append(77); + data.append(5); data.append(78); - data.append(7); - data.append(44); - data.append(9); + data.append(43); + data.append(80); + data.append(45); data.append(46); data.append(47); - data.append(84); - data.append(13); + data.append(48); + data.append(85); data.append(50); data.append(51); - data.append(16); - data.append(17); - data.append(54); - data.append(19); - data.append(56); - data.append(21); - data.append(22); - data.append(95); + data.append(52); + data.append(89); + data.append(18); + data.append(55); + data.append(92); + data.append(57); + data.append(94); + data.append(23); data.append(24); - data.append(97); - data.append(98); - data.append(99); + data.append(25); + data.append(62); + data.append(27); data.append(28); - data.append(29); + data.append(65); data.append(66); data.append(31); - data.append(104); + data.append(32); data.append(69); - data.append(34); - data.append(35); + data.append(106); + data.append(107); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_fp16x16_3d_axis1.cairo b/tests/nodes/gather_fp16x16_3d_axis1.cairo index 7c858643f..8c4af9664 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_fp16x16_3d_axis1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(1)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo b/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo b/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo b/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo index fa8227ef8..109f94061 100644 --- a/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_axis2.cairo b/tests/nodes/gather_fp16x16_3d_axis2.cairo index 1f3caf207..0b4f77ed8 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_fp16x16_3d_axis2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(2)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(2)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo b/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo b/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo b/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo index e75fc5c3d..147779c35 100644 --- a/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_axis2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_default.cairo b/tests/nodes/gather_fp16x16_3d_default.cairo index 7d6675e58..91c9ebdd4 100644 --- a/tests/nodes/gather_fp16x16_3d_default.cairo +++ b/tests/nodes/gather_fp16x16_3d_default.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_fp16x16_3d_default() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(0)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_fp16x16_3d_default/input_0.cairo b/tests/nodes/gather_fp16x16_3d_default/input_0.cairo index 9b1aade12..5d8deafac 100644 --- a/tests/nodes/gather_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_default/input_1.cairo b/tests/nodes/gather_fp16x16_3d_default/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/gather_fp16x16_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp16x16_3d_default/output_0.cairo b/tests/nodes/gather_fp16x16_3d_default/output_0.cairo index 4e253143e..338a69776 100644 --- a/tests/nodes/gather_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/gather_fp16x16_3d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_axis1.cairo b/tests/nodes/gather_fp8x23_3d_axis1.cairo index b90510ebc..6a5d1a046 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_fp8x23_3d_axis1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(1)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo b/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo b/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo b/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo index d6e13f708..a7fc4bc2f 100644 --- a/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_axis2.cairo b/tests/nodes/gather_fp8x23_3d_axis2.cairo index ddc06ccf4..d5a913163 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_fp8x23_3d_axis2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(2)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(2)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo b/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo b/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo b/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo index 43ee8c1c8..7ba68407b 100644 --- a/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_axis2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_default.cairo b/tests/nodes/gather_fp8x23_3d_default.cairo index bee5daa07..7f9492f8d 100644 --- a/tests/nodes/gather_fp8x23_3d_default.cairo +++ b/tests/nodes/gather_fp8x23_3d_default.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_fp8x23_3d_default() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(0)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_fp8x23_3d_default/input_0.cairo b/tests/nodes/gather_fp8x23_3d_default/input_0.cairo index f540d616f..faabab14c 100644 --- a/tests/nodes/gather_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_default/input_1.cairo b/tests/nodes/gather_fp8x23_3d_default/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/gather_fp8x23_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_fp8x23_3d_default/output_0.cairo b/tests/nodes/gather_fp8x23_3d_default/output_0.cairo index d42f2e608..2d6dcdcf4 100644 --- a/tests/nodes/gather_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/gather_fp8x23_3d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_i32_3d_axis1.cairo b/tests/nodes/gather_i32_3d_axis1.cairo index d0ef7ae1c..8b1777d8f 100644 --- a/tests/nodes/gather_i32_3d_axis1.cairo +++ b/tests/nodes/gather_i32_3d_axis1.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_i32_3d_axis1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(1)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_i32_3d_axis1/input_0.cairo b/tests/nodes/gather_i32_3d_axis1/input_0.cairo index 9b4392c28..5562ac725 100644 --- a/tests/nodes/gather_i32_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_i32_3d_axis1/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i32_3d_axis1/input_1.cairo b/tests/nodes/gather_i32_3d_axis1/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_i32_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_i32_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_i32_3d_axis1/output_0.cairo b/tests/nodes/gather_i32_3d_axis1/output_0.cairo index 84a10cc46..ec7de3b93 100644 --- a/tests/nodes/gather_i32_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_i32_3d_axis1/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,59 +11,59 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(3); + data.append(4); + data.append(5); + data.append(0); + data.append(1); + data.append(2); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(12); + data.append(13); + data.append(14); + data.append(9); + data.append(10); + data.append(11); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(21); + data.append(22); + data.append(23); + data.append(18); + data.append(19); + data.append(20); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i32_3d_axis2.cairo b/tests/nodes/gather_i32_3d_axis2.cairo index 378f13d5e..bdc557d7a 100644 --- a/tests/nodes/gather_i32_3d_axis2.cairo +++ b/tests/nodes/gather_i32_3d_axis2.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_i32_3d_axis2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(2)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(2)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_i32_3d_axis2/input_0.cairo b/tests/nodes/gather_i32_3d_axis2/input_0.cairo index 9b4392c28..5562ac725 100644 --- a/tests/nodes/gather_i32_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_i32_3d_axis2/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i32_3d_axis2/input_1.cairo b/tests/nodes/gather_i32_3d_axis2/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_i32_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_i32_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_i32_3d_axis2/output_0.cairo b/tests/nodes/gather_i32_3d_axis2/output_0.cairo index 8854252dc..6f2069a71 100644 --- a/tests/nodes/gather_i32_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_i32_3d_axis2/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,59 +11,59 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(1); + data.append(0); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(7); + data.append(6); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(10); + data.append(9); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(13); + data.append(12); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(16); + data.append(15); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(19); + data.append(18); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(22); + data.append(21); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(25); + data.append(24); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i32_3d_default.cairo b/tests/nodes/gather_i32_3d_default.cairo index af02e4680..9288c3dab 100644 --- a/tests/nodes/gather_i32_3d_default.cairo +++ b/tests/nodes/gather_i32_3d_default.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_i32_3d_default() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(0)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_i32_3d_default/input_0.cairo b/tests/nodes/gather_i32_3d_default/input_0.cairo index 9b4392c28..5562ac725 100644 --- a/tests/nodes/gather_i32_3d_default/input_0.cairo +++ b/tests/nodes/gather_i32_3d_default/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i32_3d_default/input_1.cairo b/tests/nodes/gather_i32_3d_default/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_i32_3d_default/input_1.cairo +++ b/tests/nodes/gather_i32_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_i32_3d_default/output_0.cairo b/tests/nodes/gather_i32_3d_default/output_0.cairo index 9f01c6ab4..aae477d9f 100644 --- a/tests/nodes/gather_i32_3d_default/output_0.cairo +++ b/tests/nodes/gather_i32_3d_default/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,59 +11,59 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i8_3d_axis1.cairo b/tests/nodes/gather_i8_3d_axis1.cairo index 837742cd4..10dd5ce6f 100644 --- a/tests/nodes/gather_i8_3d_axis1.cairo +++ b/tests/nodes/gather_i8_3d_axis1.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_i8_3d_axis1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(1)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_i8_3d_axis1/input_0.cairo b/tests/nodes/gather_i8_3d_axis1/input_0.cairo index c095ab988..3e59c35b2 100644 --- a/tests/nodes/gather_i8_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_i8_3d_axis1/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i8_3d_axis1/input_1.cairo b/tests/nodes/gather_i8_3d_axis1/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_i8_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_i8_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_i8_3d_axis1/output_0.cairo b/tests/nodes/gather_i8_3d_axis1/output_0.cairo index 99004a0ae..443ea5bb5 100644 --- a/tests/nodes/gather_i8_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_i8_3d_axis1/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,59 +11,59 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(3); + data.append(4); + data.append(5); + data.append(0); + data.append(1); + data.append(2); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(12); + data.append(13); + data.append(14); + data.append(9); + data.append(10); + data.append(11); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(21); + data.append(22); + data.append(23); + data.append(18); + data.append(19); + data.append(20); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i8_3d_axis2.cairo b/tests/nodes/gather_i8_3d_axis2.cairo index 9af20219f..35f50077a 100644 --- a/tests/nodes/gather_i8_3d_axis2.cairo +++ b/tests/nodes/gather_i8_3d_axis2.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_i8_3d_axis2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(2)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(2)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_i8_3d_axis2/input_0.cairo b/tests/nodes/gather_i8_3d_axis2/input_0.cairo index c095ab988..3e59c35b2 100644 --- a/tests/nodes/gather_i8_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_i8_3d_axis2/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i8_3d_axis2/input_1.cairo b/tests/nodes/gather_i8_3d_axis2/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_i8_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_i8_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_i8_3d_axis2/output_0.cairo b/tests/nodes/gather_i8_3d_axis2/output_0.cairo index c78637c46..81d7430f1 100644 --- a/tests/nodes/gather_i8_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_i8_3d_axis2/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,59 +11,59 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(1); + data.append(0); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(7); + data.append(6); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(10); + data.append(9); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(13); + data.append(12); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(16); + data.append(15); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(19); + data.append(18); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(22); + data.append(21); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(25); + data.append(24); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i8_3d_default.cairo b/tests/nodes/gather_i8_3d_default.cairo index adbda11c7..5bc437a7b 100644 --- a/tests/nodes/gather_i8_3d_default.cairo +++ b/tests/nodes/gather_i8_3d_default.cairo @@ -3,20 +3,22 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_gather_i8_3d_default() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(0)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_i8_3d_default/input_0.cairo b/tests/nodes/gather_i8_3d_default/input_0.cairo index c095ab988..3e59c35b2 100644 --- a/tests/nodes/gather_i8_3d_default/input_0.cairo +++ b/tests/nodes/gather_i8_3d_default/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_i8_3d_default/input_1.cairo b/tests/nodes/gather_i8_3d_default/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_i8_3d_default/input_1.cairo +++ b/tests/nodes/gather_i8_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_i8_3d_default/output_0.cairo b/tests/nodes/gather_i8_3d_default/output_0.cairo index dc2e0bb26..6ec6b9b4a 100644 --- a/tests/nodes/gather_i8_3d_default/output_0.cairo +++ b/tests/nodes/gather_i8_3d_default/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,59 +11,59 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1.cairo index 025cc8261..86de6e9b9 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_fp16x16_3d_batch_dims1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(1)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_0.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_0.cairo index 22bb148eb..5d8deafac 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_0.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_1.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_1.cairo index c70e2eba5..b7d0c3b4e 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_1.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +10,23 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(1); data.append(1); - data.append(0); data.append(1); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/output_0.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/output_0.cairo index ebab95024..c91bc214c 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/output_0.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -9,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2.cairo index 677a40f6a..d2ac3b2ce 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_fp16x16_3d_batch_dims2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(2)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_0.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_0.cairo index aebdffdfc..ad483501c 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_0.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_1.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_1.cairo index a90e5344a..e0bce514f 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_1.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,21 +12,21 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(0); - data.append(0); - data.append(0); - data.append(0); data.append(1); - data.append(0); data.append(1); - data.append(0); data.append(1); data.append(1); data.append(1); + data.append(0); + data.append(1); data.append(1); data.append(0); data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(1); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/output_0.cairo b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/output_0.cairo index cd6b1b690..244b4e085 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/output_0.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_batch_dims2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,13 +10,13 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp16x16_3d_default.cairo b/tests/nodes/gather_nd_fp16x16_3d_default.cairo index b8339a0d2..157266adb 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_default.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_default.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_fp16x16_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(0)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_fp16x16_3d_default/input_0.cairo b/tests/nodes/gather_nd_fp16x16_3d_default/input_0.cairo index 22bb148eb..5d8deafac 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_nd_fp16x16_3d_default/input_1.cairo b/tests/nodes/gather_nd_fp16x16_3d_default/input_1.cairo index e9225fef4..67f013a15 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,30 +12,30 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(0); data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(1); data.append(0); data.append(1); data.append(1); data.append(0); - data.append(0); data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(1); data.append(0); data.append(1); - data.append(0); - data.append(0); data.append(1); data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp16x16_3d_default/output_0.cairo b/tests/nodes/gather_nd_fp16x16_3d_default/output_0.cairo index 613de79f3..1ff5d9f37 100644 --- a/tests/nodes/gather_nd_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/gather_nd_fp16x16_3d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -9,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1.cairo index 65980d91f..6da924b6c 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_fp8x23_3d_batch_dims1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(1)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_0.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_0.cairo index 158782e65..faabab14c 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_0.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_1.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_1.cairo index d450f8bee..9ddbaab9f 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_1.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,18 +10,18 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); - data.append(0); - data.append(0); + data.append(1); + data.append(1); data.append(1); data.append(0); data.append(0); data.append(1); + data.append(1); data.append(0); data.append(1); data.append(1); data.append(0); + data.append(1); data.append(0); data.append(1); data.append(0); diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/output_0.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/output_0.cairo index 85015897d..e0a98fe3f 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/output_0.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -9,12 +9,12 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2.cairo index 48c812baf..251d442ba 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_fp8x23_3d_batch_dims2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(2)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_0.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_0.cairo index 49374ed1e..8d600e578 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_0.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_1.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_1.cairo index a7e92e9ab..6f83dbd04 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_1.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +10,23 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(1); data.append(0); - data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(1); data.append(1); data.append(0); data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); + data.append(0); + data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/output_0.cairo b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/output_0.cairo index 4879e0041..bb88eb81a 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/output_0.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_batch_dims2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -9,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp8x23_3d_default.cairo b/tests/nodes/gather_nd_fp8x23_3d_default.cairo index 342cd2b72..8ce119604 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_default.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_default.cairo @@ -4,12 +4,12 @@ mod output_0; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_fp8x23_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(0)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_fp8x23_3d_default/input_0.cairo b/tests/nodes/gather_nd_fp8x23_3d_default/input_0.cairo index 158782e65..faabab14c 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_default/input_0.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/gather_nd_fp8x23_3d_default/input_1.cairo b/tests/nodes/gather_nd_fp8x23_3d_default/input_1.cairo index e4b366d62..43021cdf9 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_default/input_1.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(0); data.append(1); data.append(0); data.append(0); + data.append(0); data.append(1); data.append(1); data.append(0); data.append(1); data.append(0); + data.append(0); + data.append(1); data.append(1); data.append(1); - data.append(0); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_fp8x23_3d_default/output_0.cairo b/tests/nodes/gather_nd_fp8x23_3d_default/output_0.cairo index 258e4cf9d..2c1469804 100644 --- a/tests/nodes/gather_nd_fp8x23_3d_default/output_0.cairo +++ b/tests/nodes/gather_nd_fp8x23_3d_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -9,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims1.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims1.cairo index 318ccd62e..1d275fb4a 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims1.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims1.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_i32_3d_batch_dims1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(1)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims1/input_0.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims1/input_0.cairo index f42791598..d0177e361 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims1/input_0.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims1/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,113 +11,113 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 107, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); + data.append(54); + data.append(55); + data.append(56); + data.append(57); + data.append(58); + data.append(59); + data.append(60); + data.append(61); + data.append(62); + data.append(63); + data.append(64); + data.append(65); + data.append(66); + data.append(67); + data.append(68); + data.append(69); + data.append(70); + data.append(71); + data.append(72); + data.append(73); + data.append(74); + data.append(75); + data.append(76); + data.append(77); + data.append(78); + data.append(79); + data.append(80); + data.append(81); + data.append(82); + data.append(83); + data.append(84); + data.append(85); + data.append(86); + data.append(87); + data.append(88); + data.append(89); + data.append(90); + data.append(91); + data.append(92); + data.append(93); + data.append(94); + data.append(95); + data.append(96); + data.append(97); + data.append(98); + data.append(99); + data.append(100); + data.append(101); + data.append(102); + data.append(103); + data.append(104); + data.append(105); + data.append(106); + data.append(107); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims1/input_1.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims1/input_1.cairo index 8df363a36..4c4dc6ea5 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims1/input_1.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,29 +10,29 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); data.append(2); - data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); + data.append(2); data.append(1); data.append(0); - data.append(2); - data.append(2); + data.append(0); data.append(0); data.append(2); data.append(1); data.append(0); data.append(1); + data.append(1); data.append(0); data.append(1); data.append(0); - data.append(2); - data.append(2); - data.append(2); - data.append(2); + data.append(0); + data.append(0); data.append(1); data.append(2); + data.append(0); + data.append(0); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims1/output_0.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims1/output_0.cairo index ef56be874..7fe371d05 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims1/output_0.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims1/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 104, sign: false }); + data.append(6); + data.append(21); + data.append(29); + data.append(37); + data.append(64); + data.append(54); + data.append(96); + data.append(84); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims2.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims2.cairo index 177c8e40f..6bfa5cf4a 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims2.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims2.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_i32_3d_batch_dims2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(2)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims2/input_0.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims2/input_0.cairo index b41149fc7..69cc2df33 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims2/input_0.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims2/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,59 +11,59 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 53, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(27); + data.append(28); + data.append(29); + data.append(30); + data.append(31); + data.append(32); + data.append(33); + data.append(34); + data.append(35); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims2/input_1.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims2/input_1.cairo index 16995ef86..b2b9dbb2c 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims2/input_1.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,21 +12,21 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(1); - data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); data.append(0); data.append(1); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); data.append(1); - data.append(1); - data.append(0); data.append(0); - data.append(0); - data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_batch_dims2/output_0.cairo b/tests/nodes/gather_nd_i32_3d_batch_dims2/output_0.cairo index 06dab541d..932047fc8 100644 --- a/tests/nodes/gather_nd_i32_3d_batch_dims2/output_0.cairo +++ b/tests/nodes/gather_nd_i32_3d_batch_dims2/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 49, sign: false }); + data.append(3); + data.append(9); + data.append(15); + data.append(19); + data.append(25); + data.append(31); + data.append(36); + data.append(45); + data.append(50); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_default.cairo b/tests/nodes/gather_nd_i32_3d_default.cairo index 97212f737..4fa1c55f1 100644 --- a/tests/nodes/gather_nd_i32_3d_default.cairo +++ b/tests/nodes/gather_nd_i32_3d_default.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_i32_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(0)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_i32_3d_default/input_0.cairo b/tests/nodes/gather_nd_i32_3d_default/input_0.cairo index 230c76bfc..54bb5fcf5 100644 --- a/tests/nodes/gather_nd_i32_3d_default/input_0.cairo +++ b/tests/nodes/gather_nd_i32_3d_default/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +10,29 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_default/input_1.cairo b/tests/nodes/gather_nd_i32_3d_default/input_1.cairo index 9ad554f08..951a902fc 100644 --- a/tests/nodes/gather_nd_i32_3d_default/input_1.cairo +++ b/tests/nodes/gather_nd_i32_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,11 +9,11 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(1); + data.append(0); + data.append(0); data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i32_3d_default/output_0.cairo b/tests/nodes/gather_nd_i32_3d_default/output_0.cairo index 41aa85477..81d9fede2 100644 --- a/tests/nodes/gather_nd_i32_3d_default/output_0.cairo +++ b/tests/nodes/gather_nd_i32_3d_default/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); + data.append(9); + data.append(10); + data.append(11); + data.append(0); + data.append(1); + data.append(2); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i8_3d_batch_dims1.cairo b/tests/nodes/gather_nd_i8_3d_batch_dims1.cairo index f849c8677..b42d1a430 100644 --- a/tests/nodes/gather_nd_i8_3d_batch_dims1.cairo +++ b/tests/nodes/gather_nd_i8_3d_batch_dims1.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_i8_3d_batch_dims1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(1)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_i8_3d_batch_dims1/input_0.cairo b/tests/nodes/gather_nd_i8_3d_batch_dims1/input_0.cairo index 069bade56..69d6d079b 100644 --- a/tests/nodes/gather_nd_i8_3d_batch_dims1/input_0.cairo +++ b/tests/nodes/gather_nd_i8_3d_batch_dims1/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +9,14 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i8_3d_batch_dims1/input_1.cairo b/tests/nodes/gather_nd_i8_3d_batch_dims1/input_1.cairo index 9d317b808..233e46531 100644 --- a/tests/nodes/gather_nd_i8_3d_batch_dims1/input_1.cairo +++ b/tests/nodes/gather_nd_i8_3d_batch_dims1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_nd_i8_3d_batch_dims1/output_0.cairo b/tests/nodes/gather_nd_i8_3d_batch_dims1/output_0.cairo index 8d432b7ba..8b2c93943 100644 --- a/tests/nodes/gather_nd_i8_3d_batch_dims1/output_0.cairo +++ b/tests/nodes/gather_nd_i8_3d_batch_dims1/output_0.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 7, sign: false }); + data.append(0); + data.append(3); + data.append(7); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i8_3d_default.cairo b/tests/nodes/gather_nd_i8_3d_default.cairo index ff7ad9252..6ee8e0a9e 100644 --- a/tests/nodes/gather_nd_i8_3d_default.cairo +++ b/tests/nodes/gather_nd_i8_3d_default.cairo @@ -3,13 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_gather_nd_i8_3d_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(0)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_i8_3d_default/input_0.cairo b/tests/nodes/gather_nd_i8_3d_default/input_0.cairo index 069bade56..69d6d079b 100644 --- a/tests/nodes/gather_nd_i8_3d_default/input_0.cairo +++ b/tests/nodes/gather_nd_i8_3d_default/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +9,14 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i8_3d_default/input_1.cairo b/tests/nodes/gather_nd_i8_3d_default/input_1.cairo index b38bfc539..5d8b46828 100644 --- a/tests/nodes/gather_nd_i8_3d_default/input_1.cairo +++ b/tests/nodes/gather_nd_i8_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,11 +9,11 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_i8_3d_default/output_0.cairo b/tests/nodes/gather_nd_i8_3d_default/output_0.cairo index 05eebd0f6..965659663 100644 --- a/tests/nodes/gather_nd_i8_3d_default/output_0.cairo +++ b/tests/nodes/gather_nd_i8_3d_default/output_0.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(1); + data.append(4); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_u32_batch_dims1.cairo b/tests/nodes/gather_nd_u32_batch_dims1.cairo index 860675f66..d1bfb099c 100644 --- a/tests/nodes/gather_nd_u32_batch_dims1.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_gather_nd_u32_batch_dims1() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(1)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(1)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_u32_batch_dims1/input_0.cairo b/tests/nodes/gather_nd_u32_batch_dims1/input_0.cairo index f0f05cab0..6b2b6ab57 100644 --- a/tests/nodes/gather_nd_u32_batch_dims1/input_0.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims1/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_nd_u32_batch_dims1/input_1.cairo b/tests/nodes/gather_nd_u32_batch_dims1/input_1.cairo index 4d79fe1e8..e15d6744e 100644 --- a/tests/nodes/gather_nd_u32_batch_dims1/input_1.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,22 +11,22 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); + data.append(0); + data.append(1); data.append(1); data.append(0); data.append(0); + data.append(0); data.append(1); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(1); data.append(0); data.append(1); data.append(0); - data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_u32_batch_dims1/output_0.cairo b/tests/nodes/gather_nd_u32_batch_dims1/output_0.cairo index 020780226..baaae9b67 100644 --- a/tests/nodes/gather_nd_u32_batch_dims1/output_0.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims1/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(12); + data.append(13); + data.append(14); data.append(15); data.append(16); data.append(17); data.append(0); data.append(1); data.append(2); - data.append(12); - data.append(13); - data.append(14); - data.append(39); - data.append(40); - data.append(41); data.append(39); data.append(40); data.append(41); + data.append(36); + data.append(37); + data.append(38); data.append(39); data.append(40); data.append(41); data.append(75); data.append(76); data.append(77); + data.append(72); + data.append(73); + data.append(74); data.append(84); data.append(85); data.append(86); - data.append(87); - data.append(88); - data.append(89); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_u32_batch_dims2.cairo b/tests/nodes/gather_nd_u32_batch_dims2.cairo index f0662be99..2cd029255 100644 --- a/tests/nodes/gather_nd_u32_batch_dims2.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_gather_nd_u32_batch_dims2() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(2)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(2)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_u32_batch_dims2/input_0.cairo b/tests/nodes/gather_nd_u32_batch_dims2/input_0.cairo index f0f05cab0..6b2b6ab57 100644 --- a/tests/nodes/gather_nd_u32_batch_dims2/input_0.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims2/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_nd_u32_batch_dims2/input_1.cairo b/tests/nodes/gather_nd_u32_batch_dims2/input_1.cairo index 198a57be6..d8bd3bd7b 100644 --- a/tests/nodes/gather_nd_u32_batch_dims2/input_1.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +12,9 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(1); - data.append(0); data.append(1); data.append(0); - data.append(1); data.append(0); - data.append(1); - data.append(1); data.append(0); data.append(1); data.append(1); @@ -25,7 +22,11 @@ fn input_1() -> Tensor { data.append(0); data.append(0); data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_u32_batch_dims2/output_0.cairo b/tests/nodes/gather_nd_u32_batch_dims2/output_0.cairo index a80c37449..17f053bd7 100644 --- a/tests/nodes/gather_nd_u32_batch_dims2/output_0.cairo +++ b/tests/nodes/gather_nd_u32_batch_dims2/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +10,13 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(13); - data.append(25); - data.append(37); + data.append(15); + data.append(24); + data.append(40); data.append(51); - data.append(64); + data.append(61); data.append(75); - data.append(85); - data.append(96); + data.append(84); + data.append(100); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_nd_u32_default.cairo b/tests/nodes/gather_nd_u32_default.cairo index be6edd699..5893b5017 100644 --- a/tests/nodes/gather_nd_u32_default.cairo +++ b/tests/nodes/gather_nd_u32_default.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -16,7 +16,7 @@ fn test_gather_nd_u32_default() { let input_1 = input_1::input_1(); let z_0 = output_0::output_0(); - let y_0 = input_0.gather_nd(indices: input_1, batch_dims: Option::Some(0)); + let y_0 = input_0.gather_nd(indices:input_1, batch_dims:Option::Some(0)); assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_nd_u32_default/input_0.cairo b/tests/nodes/gather_nd_u32_default/input_0.cairo index f0f05cab0..6b2b6ab57 100644 --- a/tests/nodes/gather_nd_u32_default/input_0.cairo +++ b/tests/nodes/gather_nd_u32_default/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_nd_u32_default/input_1.cairo b/tests/nodes/gather_nd_u32_default/input_1.cairo index bb54a8189..c34f1dea0 100644 --- a/tests/nodes/gather_nd_u32_default/input_1.cairo +++ b/tests/nodes/gather_nd_u32_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,21 +11,21 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(0); - data.append(0); data.append(1); data.append(1); data.append(0); - data.append(0); data.append(1); data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(1); + data.append(0); data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/gather_nd_u32_default/output_0.cairo b/tests/nodes/gather_nd_u32_default/output_0.cairo index f54097ea6..fc47a8069 100644 --- a/tests/nodes/gather_nd_u32_default/output_0.cairo +++ b/tests/nodes/gather_nd_u32_default/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,66 +11,30 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(12); - data.append(13); - data.append(14); - data.append(15); - data.append(16); - data.append(17); - data.append(18); - data.append(19); - data.append(20); - data.append(21); - data.append(22); - data.append(23); - data.append(36); - data.append(37); - data.append(38); - data.append(39); - data.append(40); - data.append(41); - data.append(42); - data.append(43); - data.append(44); - data.append(45); - data.append(46); - data.append(47); - data.append(12); - data.append(13); - data.append(14); - data.append(15); - data.append(16); - data.append(17); - data.append(18); - data.append(19); - data.append(20); - data.append(21); - data.append(22); - data.append(23); - data.append(36); - data.append(37); - data.append(38); - data.append(39); - data.append(40); - data.append(41); - data.append(42); - data.append(43); - data.append(44); - data.append(45); - data.append(46); - data.append(47); - data.append(12); - data.append(13); - data.append(14); - data.append(15); - data.append(16); - data.append(17); - data.append(18); - data.append(19); - data.append(20); - data.append(21); - data.append(22); - data.append(23); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(48); + data.append(49); + data.append(50); + data.append(51); + data.append(52); + data.append(53); + data.append(54); + data.append(55); + data.append(56); + data.append(57); + data.append(58); + data.append(59); data.append(48); data.append(49); data.append(50); @@ -118,5 +83,41 @@ fn output_0() -> Tensor { data.append(9); data.append(10); data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(36); + data.append(37); + data.append(38); + data.append(39); + data.append(40); + data.append(41); + data.append(42); + data.append(43); + data.append(44); + data.append(45); + data.append(46); + data.append(47); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gather_u32_3d_axis1.cairo b/tests/nodes/gather_u32_3d_axis1.cairo index 4c3a9259b..641d67f80 100644 --- a/tests/nodes/gather_u32_3d_axis1.cairo +++ b/tests/nodes/gather_u32_3d_axis1.cairo @@ -3,20 +3,20 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] fn test_gather_u32_3d_axis1() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(1)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(1)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_u32_3d_axis1/input_0.cairo b/tests/nodes/gather_u32_3d_axis1/input_0.cairo index 3b921bc94..d9508bf41 100644 --- a/tests/nodes/gather_u32_3d_axis1/input_0.cairo +++ b/tests/nodes/gather_u32_3d_axis1/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_axis1/input_1.cairo b/tests/nodes/gather_u32_3d_axis1/input_1.cairo index 56a6ceda4..99840a243 100644 --- a/tests/nodes/gather_u32_3d_axis1/input_1.cairo +++ b/tests/nodes/gather_u32_3d_axis1/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_axis1/output_0.cairo b/tests/nodes/gather_u32_3d_axis1/output_0.cairo index 7cf818c71..5ee2e2c5d 100644 --- a/tests/nodes/gather_u32_3d_axis1/output_0.cairo +++ b/tests/nodes/gather_u32_3d_axis1/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_axis2.cairo b/tests/nodes/gather_u32_3d_axis2.cairo index 9697a03c0..94f91a138 100644 --- a/tests/nodes/gather_u32_3d_axis2.cairo +++ b/tests/nodes/gather_u32_3d_axis2.cairo @@ -3,20 +3,20 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] fn test_gather_u32_3d_axis2() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(2)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(2)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_u32_3d_axis2/input_0.cairo b/tests/nodes/gather_u32_3d_axis2/input_0.cairo index 3b921bc94..d9508bf41 100644 --- a/tests/nodes/gather_u32_3d_axis2/input_0.cairo +++ b/tests/nodes/gather_u32_3d_axis2/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_axis2/input_1.cairo b/tests/nodes/gather_u32_3d_axis2/input_1.cairo index f20d23efe..ad29ac0bc 100644 --- a/tests/nodes/gather_u32_3d_axis2/input_1.cairo +++ b/tests/nodes/gather_u32_3d_axis2/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_axis2/output_0.cairo b/tests/nodes/gather_u32_3d_axis2/output_0.cairo index cdfe8b90c..39c4b0eb3 100644 --- a/tests/nodes/gather_u32_3d_axis2/output_0.cairo +++ b/tests/nodes/gather_u32_3d_axis2/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_default.cairo b/tests/nodes/gather_u32_3d_default.cairo index f2f991d97..7931d3e27 100644 --- a/tests/nodes/gather_u32_3d_default.cairo +++ b/tests/nodes/gather_u32_3d_default.cairo @@ -3,20 +3,20 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] fn test_gather_u32_3d_default() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = input_0.gather(indices: input_1, axis: Option::Some(0)); + let y_0 = input_0.gather(indices:input_1, axis:Option::Some(0)); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/gather_u32_3d_default/input_0.cairo b/tests/nodes/gather_u32_3d_default/input_0.cairo index 3b921bc94..d9508bf41 100644 --- a/tests/nodes/gather_u32_3d_default/input_0.cairo +++ b/tests/nodes/gather_u32_3d_default/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_default/input_1.cairo b/tests/nodes/gather_u32_3d_default/input_1.cairo index 98f7a588b..b30e2f0c2 100644 --- a/tests/nodes/gather_u32_3d_default/input_1.cairo +++ b/tests/nodes/gather_u32_3d_default/input_1.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gather_u32_3d_default/output_0.cairo b/tests/nodes/gather_u32_3d_default/output_0.cairo index 5caf50155..b079689fd 100644 --- a/tests/nodes/gather_u32_3d_default/output_0.cairo +++ b/tests/nodes/gather_u32_3d_default/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/gemm_all_attributes.cairo b/tests/nodes/gemm_all_attributes.cairo index 30949c209..c543ddb3b 100644 --- a/tests/nodes/gemm_all_attributes.cairo +++ b/tests/nodes/gemm_all_attributes.cairo @@ -3,11 +3,12 @@ mod input_1; mod input_2; mod output_0; + use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -17,15 +18,7 @@ fn test_gemm_all_attributes() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, - input_1, - Option::Some(input_2), - Option::Some(FixedTrait::new(16384, false)), - Option::Some(FixedTrait::new(22938, false)), - true, - true - ); + let y = NNTrait::gemm(input_0, input_1, Option::Some(input_2), Option::Some(FixedTrait::new(16384, false)), Option::Some(FixedTrait::new(22938, false)), true, true); assert_eq(y, z); } diff --git a/tests/nodes/gemm_all_attributes/input_0.cairo b/tests/nodes/gemm_all_attributes/input_0.cairo index 8810dfc2d..68576719e 100644 --- a/tests/nodes/gemm_all_attributes/input_0.cairo +++ b/tests/nodes/gemm_all_attributes/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 25442, sign: false }); - data.append(FP16x16 { mag: 21621, sign: false }); - data.append(FP16x16 { mag: 20558, sign: false }); - data.append(FP16x16 { mag: 63086, sign: false }); - data.append(FP16x16 { mag: 42888, sign: false }); - data.append(FP16x16 { mag: 5836, sign: false }); - data.append(FP16x16 { mag: 36243, sign: false }); - data.append(FP16x16 { mag: 31967, sign: false }); - data.append(FP16x16 { mag: 64085, sign: false }); - data.append(FP16x16 { mag: 26601, sign: false }); - data.append(FP16x16 { mag: 40779, sign: false }); - data.append(FP16x16 { mag: 41935, sign: false }); + data.append(FP16x16 { mag: 6181, sign: false }); + data.append(FP16x16 { mag: 64225, sign: false }); + data.append(FP16x16 { mag: 49893, sign: false }); + data.append(FP16x16 { mag: 27262, sign: false }); + data.append(FP16x16 { mag: 59085, sign: false }); + data.append(FP16x16 { mag: 11503, sign: false }); + data.append(FP16x16 { mag: 27421, sign: false }); + data.append(FP16x16 { mag: 1528, sign: false }); + data.append(FP16x16 { mag: 3846, sign: false }); + data.append(FP16x16 { mag: 45763, sign: false }); + data.append(FP16x16 { mag: 23273, sign: false }); + data.append(FP16x16 { mag: 2087, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_all_attributes/input_1.cairo b/tests/nodes/gemm_all_attributes/input_1.cairo index f9b1d1f04..3387d5705 100644 --- a/tests/nodes/gemm_all_attributes/input_1.cairo +++ b/tests/nodes/gemm_all_attributes/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 951, sign: false }); - data.append(FP16x16 { mag: 60848, sign: false }); - data.append(FP16x16 { mag: 51199, sign: false }); - data.append(FP16x16 { mag: 16691, sign: false }); - data.append(FP16x16 { mag: 14621, sign: false }); - data.append(FP16x16 { mag: 51626, sign: false }); - data.append(FP16x16 { mag: 33242, sign: false }); - data.append(FP16x16 { mag: 36152, sign: false }); - data.append(FP16x16 { mag: 41495, sign: false }); - data.append(FP16x16 { mag: 21214, sign: false }); - data.append(FP16x16 { mag: 63748, sign: false }); - data.append(FP16x16 { mag: 9058, sign: false }); - data.append(FP16x16 { mag: 38129, sign: false }); - data.append(FP16x16 { mag: 32448, sign: false }); - data.append(FP16x16 { mag: 34299, sign: false }); - data.append(FP16x16 { mag: 28592, sign: false }); - data.append(FP16x16 { mag: 60878, sign: false }); - data.append(FP16x16 { mag: 1143, sign: false }); - data.append(FP16x16 { mag: 2602, sign: false }); - data.append(FP16x16 { mag: 12136, sign: false }); + data.append(FP16x16 { mag: 23725, sign: false }); + data.append(FP16x16 { mag: 17645, sign: false }); + data.append(FP16x16 { mag: 43346, sign: false }); + data.append(FP16x16 { mag: 23010, sign: false }); + data.append(FP16x16 { mag: 58499, sign: false }); + data.append(FP16x16 { mag: 53494, sign: false }); + data.append(FP16x16 { mag: 8855, sign: false }); + data.append(FP16x16 { mag: 52549, sign: false }); + data.append(FP16x16 { mag: 33829, sign: false }); + data.append(FP16x16 { mag: 64693, sign: false }); + data.append(FP16x16 { mag: 23894, sign: false }); + data.append(FP16x16 { mag: 27926, sign: false }); + data.append(FP16x16 { mag: 3015, sign: false }); + data.append(FP16x16 { mag: 63591, sign: false }); + data.append(FP16x16 { mag: 31838, sign: false }); + data.append(FP16x16 { mag: 6987, sign: false }); + data.append(FP16x16 { mag: 63224, sign: false }); + data.append(FP16x16 { mag: 63842, sign: false }); + data.append(FP16x16 { mag: 27830, sign: false }); + data.append(FP16x16 { mag: 56137, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_all_attributes/input_2.cairo b/tests/nodes/gemm_all_attributes/input_2.cairo index 41f54452e..861168493 100644 --- a/tests/nodes/gemm_all_attributes/input_2.cairo +++ b/tests/nodes/gemm_all_attributes/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,10 +9,10 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 10671, sign: false }); - data.append(FP16x16 { mag: 42014, sign: false }); - data.append(FP16x16 { mag: 54635, sign: false }); - data.append(FP16x16 { mag: 20143, sign: false }); - data.append(FP16x16 { mag: 23206, sign: false }); + data.append(FP16x16 { mag: 39653, sign: false }); + data.append(FP16x16 { mag: 1049, sign: false }); + data.append(FP16x16 { mag: 50921, sign: false }); + data.append(FP16x16 { mag: 49433, sign: false }); + data.append(FP16x16 { mag: 42267, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_all_attributes/output_0.cairo b/tests/nodes/gemm_all_attributes/output_0.cairo index 4ca92e456..d95151614 100644 --- a/tests/nodes/gemm_all_attributes/output_0.cairo +++ b/tests/nodes/gemm_all_attributes/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 27243, sign: false }); - data.append(FP16x16 { mag: 36813, sign: false }); - data.append(FP16x16 { mag: 37987, sign: false }); - data.append(FP16x16 { mag: 26203, sign: false }); - data.append(FP16x16 { mag: 15897, sign: false }); - data.append(FP16x16 { mag: 22608, sign: false }); - data.append(FP16x16 { mag: 34035, sign: false }); - data.append(FP16x16 { mag: 35198, sign: false }); - data.append(FP16x16 { mag: 24134, sign: false }); - data.append(FP16x16 { mag: 15535, sign: false }); - data.append(FP16x16 { mag: 20351, sign: false }); - data.append(FP16x16 { mag: 30911, sign: false }); - data.append(FP16x16 { mag: 39882, sign: false }); - data.append(FP16x16 { mag: 23721, sign: false }); - data.append(FP16x16 { mag: 15499, sign: false }); + data.append(FP16x16 { mag: 24824, sign: false }); + data.append(FP16x16 { mag: 17409, sign: false }); + data.append(FP16x16 { mag: 32722, sign: false }); + data.append(FP16x16 { mag: 28536, sign: false }); + data.append(FP16x16 { mag: 35635, sign: false }); + data.append(FP16x16 { mag: 25964, sign: false }); + data.append(FP16x16 { mag: 31473, sign: false }); + data.append(FP16x16 { mag: 43310, sign: false }); + data.append(FP16x16 { mag: 33179, sign: false }); + data.append(FP16x16 { mag: 49819, sign: false }); + data.append(FP16x16 { mag: 19988, sign: false }); + data.append(FP16x16 { mag: 14397, sign: false }); + data.append(FP16x16 { mag: 27673, sign: false }); + data.append(FP16x16 { mag: 21189, sign: false }); + data.append(FP16x16 { mag: 30484, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_alpha.cairo b/tests/nodes/gemm_alpha.cairo index 8e7385877..074392584 100644 --- a/tests/nodes/gemm_alpha.cairo +++ b/tests/nodes/gemm_alpha.cairo @@ -5,9 +5,9 @@ mod output_0; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -16,15 +16,7 @@ fn test_gemm_alpha() { let input_1 = input_1::input_1(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, - input_1, - Option::None(()), - Option::Some(FixedTrait::new(32768, false)), - Option::None(()), - false, - false - ); + let y = NNTrait::gemm(input_0, input_1, Option::None(()), Option::Some(FixedTrait::new(32768, false)), Option::None(()), false, false); assert_eq(y, z); } diff --git a/tests/nodes/gemm_alpha/input_0.cairo b/tests/nodes/gemm_alpha/input_0.cairo index 700948852..95583cb1c 100644 --- a/tests/nodes/gemm_alpha/input_0.cairo +++ b/tests/nodes/gemm_alpha/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 25149, sign: false }); - data.append(FP16x16 { mag: 57333, sign: false }); - data.append(FP16x16 { mag: 4965, sign: false }); - data.append(FP16x16 { mag: 43218, sign: false }); - data.append(FP16x16 { mag: 49951, sign: false }); - data.append(FP16x16 { mag: 61057, sign: false }); - data.append(FP16x16 { mag: 50263, sign: false }); - data.append(FP16x16 { mag: 29479, sign: false }); - data.append(FP16x16 { mag: 3849, sign: false }); - data.append(FP16x16 { mag: 38336, sign: false }); - data.append(FP16x16 { mag: 27897, sign: false }); - data.append(FP16x16 { mag: 9815, sign: false }); - data.append(FP16x16 { mag: 10500, sign: false }); - data.append(FP16x16 { mag: 46201, sign: false }); - data.append(FP16x16 { mag: 51565, sign: false }); + data.append(FP16x16 { mag: 56236, sign: false }); + data.append(FP16x16 { mag: 61356, sign: false }); + data.append(FP16x16 { mag: 59267, sign: false }); + data.append(FP16x16 { mag: 7019, sign: false }); + data.append(FP16x16 { mag: 27265, sign: false }); + data.append(FP16x16 { mag: 35843, sign: false }); + data.append(FP16x16 { mag: 12233, sign: false }); + data.append(FP16x16 { mag: 47311, sign: false }); + data.append(FP16x16 { mag: 14312, sign: false }); + data.append(FP16x16 { mag: 3477, sign: false }); + data.append(FP16x16 { mag: 39621, sign: false }); + data.append(FP16x16 { mag: 44543, sign: false }); + data.append(FP16x16 { mag: 56785, sign: false }); + data.append(FP16x16 { mag: 29674, sign: false }); + data.append(FP16x16 { mag: 39650, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_alpha/input_1.cairo b/tests/nodes/gemm_alpha/input_1.cairo index 15b93687b..51e7cb075 100644 --- a/tests/nodes/gemm_alpha/input_1.cairo +++ b/tests/nodes/gemm_alpha/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7870, sign: false }); - data.append(FP16x16 { mag: 11258, sign: false }); - data.append(FP16x16 { mag: 34213, sign: false }); - data.append(FP16x16 { mag: 31148, sign: false }); - data.append(FP16x16 { mag: 29977, sign: false }); - data.append(FP16x16 { mag: 56430, sign: false }); - data.append(FP16x16 { mag: 43116, sign: false }); - data.append(FP16x16 { mag: 22990, sign: false }); - data.append(FP16x16 { mag: 3089, sign: false }); - data.append(FP16x16 { mag: 47936, sign: false }); - data.append(FP16x16 { mag: 13186, sign: false }); - data.append(FP16x16 { mag: 14386, sign: false }); - data.append(FP16x16 { mag: 63802, sign: false }); - data.append(FP16x16 { mag: 19313, sign: false }); - data.append(FP16x16 { mag: 40436, sign: false }); - data.append(FP16x16 { mag: 31890, sign: false }); - data.append(FP16x16 { mag: 34370, sign: false }); - data.append(FP16x16 { mag: 8853, sign: false }); - data.append(FP16x16 { mag: 59520, sign: false }); - data.append(FP16x16 { mag: 40977, sign: false }); + data.append(FP16x16 { mag: 13522, sign: false }); + data.append(FP16x16 { mag: 12888, sign: false }); + data.append(FP16x16 { mag: 53048, sign: false }); + data.append(FP16x16 { mag: 29185, sign: false }); + data.append(FP16x16 { mag: 17013, sign: false }); + data.append(FP16x16 { mag: 54418, sign: false }); + data.append(FP16x16 { mag: 48187, sign: false }); + data.append(FP16x16 { mag: 45789, sign: false }); + data.append(FP16x16 { mag: 20854, sign: false }); + data.append(FP16x16 { mag: 49110, sign: false }); + data.append(FP16x16 { mag: 48981, sign: false }); + data.append(FP16x16 { mag: 9983, sign: false }); + data.append(FP16x16 { mag: 4283, sign: false }); + data.append(FP16x16 { mag: 14740, sign: false }); + data.append(FP16x16 { mag: 39006, sign: false }); + data.append(FP16x16 { mag: 38039, sign: false }); + data.append(FP16x16 { mag: 39666, sign: false }); + data.append(FP16x16 { mag: 3808, sign: false }); + data.append(FP16x16 { mag: 34989, sign: false }); + data.append(FP16x16 { mag: 49693, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_alpha/output_0.cairo b/tests/nodes/gemm_alpha/output_0.cairo index cfbb1d88d..044425667 100644 --- a/tests/nodes/gemm_alpha/output_0.cairo +++ b/tests/nodes/gemm_alpha/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 48876, sign: false }); - data.append(FP16x16 { mag: 38402, sign: false }); - data.append(FP16x16 { mag: 61940, sign: false }); - data.append(FP16x16 { mag: 42709, sign: false }); - data.append(FP16x16 { mag: 27783, sign: false }); - data.append(FP16x16 { mag: 40822, sign: false }); - data.append(FP16x16 { mag: 54034, sign: false }); - data.append(FP16x16 { mag: 39483, sign: false }); - data.append(FP16x16 { mag: 40179, sign: false }); - data.append(FP16x16 { mag: 20753, sign: false }); - data.append(FP16x16 { mag: 49237, sign: false }); - data.append(FP16x16 { mag: 36865, sign: false }); + data.append(FP16x16 { mag: 31676, sign: false }); + data.append(FP16x16 { mag: 54792, sign: false }); + data.append(FP16x16 { mag: 76833, sign: false }); + data.append(FP16x16 { mag: 50845, sign: false }); + data.append(FP16x16 { mag: 14333, sign: false }); + data.append(FP16x16 { mag: 28040, sign: false }); + data.append(FP16x16 { mag: 41871, sign: false }); + data.append(FP16x16 { mag: 21330, sign: false }); + data.append(FP16x16 { mag: 31873, sign: false }); + data.append(FP16x16 { mag: 48155, sign: false }); + data.append(FP16x16 { mag: 73048, sign: false }); + data.append(FP16x16 { mag: 52353, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_beta.cairo b/tests/nodes/gemm_beta.cairo index 1507da49a..9ec8fe530 100644 --- a/tests/nodes/gemm_beta.cairo +++ b/tests/nodes/gemm_beta.cairo @@ -6,9 +6,9 @@ mod output_0; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -18,15 +18,7 @@ fn test_gemm_beta() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, - input_1, - Option::Some(input_2), - Option::None(()), - Option::Some(FixedTrait::new(32768, false)), - false, - false - ); + let y = NNTrait::gemm(input_0, input_1, Option::Some(input_2), Option::None(()), Option::Some(FixedTrait::new(32768, false)), false, false); assert_eq(y, z); } diff --git a/tests/nodes/gemm_beta/input_0.cairo b/tests/nodes/gemm_beta/input_0.cairo index 8acce4d11..3b78c1218 100644 --- a/tests/nodes/gemm_beta/input_0.cairo +++ b/tests/nodes/gemm_beta/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,19 +9,19 @@ fn input_0() -> Tensor { shape.append(7); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 14966, sign: false }); - data.append(FP16x16 { mag: 36896, sign: false }); - data.append(FP16x16 { mag: 4679, sign: false }); - data.append(FP16x16 { mag: 36625, sign: false }); - data.append(FP16x16 { mag: 48874, sign: false }); - data.append(FP16x16 { mag: 35563, sign: false }); - data.append(FP16x16 { mag: 40736, sign: false }); - data.append(FP16x16 { mag: 12321, sign: false }); - data.append(FP16x16 { mag: 42458, sign: false }); - data.append(FP16x16 { mag: 65341, sign: false }); - data.append(FP16x16 { mag: 43716, sign: false }); - data.append(FP16x16 { mag: 43328, sign: false }); - data.append(FP16x16 { mag: 7074, sign: false }); - data.append(FP16x16 { mag: 45946, sign: false }); + data.append(FP16x16 { mag: 24460, sign: false }); + data.append(FP16x16 { mag: 18819, sign: false }); + data.append(FP16x16 { mag: 5981, sign: false }); + data.append(FP16x16 { mag: 57425, sign: false }); + data.append(FP16x16 { mag: 3433, sign: false }); + data.append(FP16x16 { mag: 51302, sign: false }); + data.append(FP16x16 { mag: 30317, sign: false }); + data.append(FP16x16 { mag: 51496, sign: false }); + data.append(FP16x16 { mag: 49111, sign: false }); + data.append(FP16x16 { mag: 60422, sign: false }); + data.append(FP16x16 { mag: 62691, sign: false }); + data.append(FP16x16 { mag: 49763, sign: false }); + data.append(FP16x16 { mag: 54999, sign: false }); + data.append(FP16x16 { mag: 31795, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_beta/input_1.cairo b/tests/nodes/gemm_beta/input_1.cairo index 6ab31f6b0..9bb77427e 100644 --- a/tests/nodes/gemm_beta/input_1.cairo +++ b/tests/nodes/gemm_beta/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,33 +9,33 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 51391, sign: false }); - data.append(FP16x16 { mag: 22014, sign: false }); - data.append(FP16x16 { mag: 33442, sign: false }); - data.append(FP16x16 { mag: 24116, sign: false }); - data.append(FP16x16 { mag: 49410, sign: false }); - data.append(FP16x16 { mag: 60215, sign: false }); - data.append(FP16x16 { mag: 9310, sign: false }); - data.append(FP16x16 { mag: 20950, sign: false }); - data.append(FP16x16 { mag: 20541, sign: false }); - data.append(FP16x16 { mag: 21583, sign: false }); - data.append(FP16x16 { mag: 28565, sign: false }); - data.append(FP16x16 { mag: 41677, sign: false }); - data.append(FP16x16 { mag: 18308, sign: false }); - data.append(FP16x16 { mag: 25095, sign: false }); - data.append(FP16x16 { mag: 44238, sign: false }); - data.append(FP16x16 { mag: 27465, sign: false }); - data.append(FP16x16 { mag: 30581, sign: false }); - data.append(FP16x16 { mag: 41045, sign: false }); - data.append(FP16x16 { mag: 46018, sign: false }); - data.append(FP16x16 { mag: 17358, sign: false }); - data.append(FP16x16 { mag: 50102, sign: false }); - data.append(FP16x16 { mag: 16577, sign: false }); - data.append(FP16x16 { mag: 16374, sign: false }); - data.append(FP16x16 { mag: 54251, sign: false }); - data.append(FP16x16 { mag: 46337, sign: false }); - data.append(FP16x16 { mag: 15187, sign: false }); - data.append(FP16x16 { mag: 25652, sign: false }); - data.append(FP16x16 { mag: 20892, sign: false }); + data.append(FP16x16 { mag: 61572, sign: false }); + data.append(FP16x16 { mag: 45985, sign: false }); + data.append(FP16x16 { mag: 19404, sign: false }); + data.append(FP16x16 { mag: 4011, sign: false }); + data.append(FP16x16 { mag: 4824, sign: false }); + data.append(FP16x16 { mag: 17368, sign: false }); + data.append(FP16x16 { mag: 26865, sign: false }); + data.append(FP16x16 { mag: 19036, sign: false }); + data.append(FP16x16 { mag: 29179, sign: false }); + data.append(FP16x16 { mag: 27268, sign: false }); + data.append(FP16x16 { mag: 11806, sign: false }); + data.append(FP16x16 { mag: 41521, sign: false }); + data.append(FP16x16 { mag: 51714, sign: false }); + data.append(FP16x16 { mag: 9380, sign: false }); + data.append(FP16x16 { mag: 637, sign: false }); + data.append(FP16x16 { mag: 34737, sign: false }); + data.append(FP16x16 { mag: 6709, sign: false }); + data.append(FP16x16 { mag: 51346, sign: false }); + data.append(FP16x16 { mag: 24730, sign: false }); + data.append(FP16x16 { mag: 2358, sign: false }); + data.append(FP16x16 { mag: 12807, sign: false }); + data.append(FP16x16 { mag: 41228, sign: false }); + data.append(FP16x16 { mag: 60913, sign: false }); + data.append(FP16x16 { mag: 15947, sign: false }); + data.append(FP16x16 { mag: 45496, sign: false }); + data.append(FP16x16 { mag: 60217, sign: false }); + data.append(FP16x16 { mag: 51117, sign: false }); + data.append(FP16x16 { mag: 52177, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_beta/input_2.cairo b/tests/nodes/gemm_beta/input_2.cairo index 9c1cc8509..b60fdd920 100644 --- a/tests/nodes/gemm_beta/input_2.cairo +++ b/tests/nodes/gemm_beta/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_2() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 42564, sign: false }); - data.append(FP16x16 { mag: 18018, sign: false }); - data.append(FP16x16 { mag: 28175, sign: false }); - data.append(FP16x16 { mag: 36784, sign: false }); + data.append(FP16x16 { mag: 30641, sign: false }); + data.append(FP16x16 { mag: 53716, sign: false }); + data.append(FP16x16 { mag: 41, sign: false }); + data.append(FP16x16 { mag: 47279, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_beta/output_0.cairo b/tests/nodes/gemm_beta/output_0.cairo index 295b9de71..a34ee5228 100644 --- a/tests/nodes/gemm_beta/output_0.cairo +++ b/tests/nodes/gemm_beta/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 151333, sign: false }); - data.append(FP16x16 { mag: 112550, sign: false }); - data.append(FP16x16 { mag: 112879, sign: false }); - data.append(FP16x16 { mag: 109391, sign: false }); - data.append(FP16x16 { mag: 153762, sign: false }); - data.append(FP16x16 { mag: 129994, sign: false }); - data.append(FP16x16 { mag: 134574, sign: false }); - data.append(FP16x16 { mag: 128355, sign: false }); + data.append(FP16x16 { mag: 119090, sign: false }); + data.append(FP16x16 { mag: 122540, sign: false }); + data.append(FP16x16 { mag: 89241, sign: false }); + data.append(FP16x16 { mag: 101578, sign: false }); + data.append(FP16x16 { mag: 181607, sign: false }); + data.append(FP16x16 { mag: 212926, sign: false }); + data.append(FP16x16 { mag: 141595, sign: false }); + data.append(FP16x16 { mag: 153059, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_matrix_bias.cairo b/tests/nodes/gemm_default_matrix_bias.cairo index f3340870f..76c6fff0c 100644 --- a/tests/nodes/gemm_default_matrix_bias.cairo +++ b/tests/nodes/gemm_default_matrix_bias.cairo @@ -6,9 +6,9 @@ mod output_0; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -18,9 +18,7 @@ fn test_gemm_default_matrix_bias() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, input_1, Option::Some(input_2), Option::None(()), Option::None(()), false, false - ); + let y = NNTrait::gemm(input_0, input_1, Option::Some(input_2), Option::None(()), Option::None(()), false, false); assert_eq(y, z); } diff --git a/tests/nodes/gemm_default_matrix_bias/input_0.cairo b/tests/nodes/gemm_default_matrix_bias/input_0.cairo index 5c482e9a3..fc3b70d95 100644 --- a/tests/nodes/gemm_default_matrix_bias/input_0.cairo +++ b/tests/nodes/gemm_default_matrix_bias/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(6); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 54171, sign: false }); - data.append(FP16x16 { mag: 576, sign: false }); - data.append(FP16x16 { mag: 51387, sign: false }); - data.append(FP16x16 { mag: 37774, sign: false }); - data.append(FP16x16 { mag: 47415, sign: false }); - data.append(FP16x16 { mag: 30278, sign: false }); - data.append(FP16x16 { mag: 35329, sign: false }); - data.append(FP16x16 { mag: 56770, sign: false }); - data.append(FP16x16 { mag: 29001, sign: false }); - data.append(FP16x16 { mag: 19387, sign: false }); - data.append(FP16x16 { mag: 16747, sign: false }); - data.append(FP16x16 { mag: 42410, sign: false }); - data.append(FP16x16 { mag: 53192, sign: false }); - data.append(FP16x16 { mag: 30490, sign: false }); - data.append(FP16x16 { mag: 55512, sign: false }); - data.append(FP16x16 { mag: 63983, sign: false }); - data.append(FP16x16 { mag: 45579, sign: false }); - data.append(FP16x16 { mag: 12475, sign: false }); + data.append(FP16x16 { mag: 24313, sign: false }); + data.append(FP16x16 { mag: 15462, sign: false }); + data.append(FP16x16 { mag: 40752, sign: false }); + data.append(FP16x16 { mag: 22033, sign: false }); + data.append(FP16x16 { mag: 30592, sign: false }); + data.append(FP16x16 { mag: 46888, sign: false }); + data.append(FP16x16 { mag: 16081, sign: false }); + data.append(FP16x16 { mag: 12404, sign: false }); + data.append(FP16x16 { mag: 27033, sign: false }); + data.append(FP16x16 { mag: 10395, sign: false }); + data.append(FP16x16 { mag: 12042, sign: false }); + data.append(FP16x16 { mag: 35690, sign: false }); + data.append(FP16x16 { mag: 7033, sign: false }); + data.append(FP16x16 { mag: 606, sign: false }); + data.append(FP16x16 { mag: 2994, sign: false }); + data.append(FP16x16 { mag: 20651, sign: false }); + data.append(FP16x16 { mag: 46099, sign: false }); + data.append(FP16x16 { mag: 5768, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_matrix_bias/input_1.cairo b/tests/nodes/gemm_default_matrix_bias/input_1.cairo index 89a47b95d..d9902c40f 100644 --- a/tests/nodes/gemm_default_matrix_bias/input_1.cairo +++ b/tests/nodes/gemm_default_matrix_bias/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +9,29 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 47776, sign: false }); - data.append(FP16x16 { mag: 8702, sign: false }); - data.append(FP16x16 { mag: 39764, sign: false }); - data.append(FP16x16 { mag: 21672, sign: false }); - data.append(FP16x16 { mag: 34121, sign: false }); - data.append(FP16x16 { mag: 60787, sign: false }); - data.append(FP16x16 { mag: 50462, sign: false }); - data.append(FP16x16 { mag: 61510, sign: false }); - data.append(FP16x16 { mag: 39048, sign: false }); - data.append(FP16x16 { mag: 32834, sign: false }); - data.append(FP16x16 { mag: 57152, sign: false }); - data.append(FP16x16 { mag: 4001, sign: false }); - data.append(FP16x16 { mag: 37122, sign: false }); - data.append(FP16x16 { mag: 45910, sign: false }); - data.append(FP16x16 { mag: 22021, sign: false }); - data.append(FP16x16 { mag: 10298, sign: false }); - data.append(FP16x16 { mag: 33089, sign: false }); - data.append(FP16x16 { mag: 35378, sign: false }); - data.append(FP16x16 { mag: 1834, sign: false }); - data.append(FP16x16 { mag: 22627, sign: false }); - data.append(FP16x16 { mag: 37576, sign: false }); - data.append(FP16x16 { mag: 57351, sign: false }); - data.append(FP16x16 { mag: 22814, sign: false }); - data.append(FP16x16 { mag: 60423, sign: false }); + data.append(FP16x16 { mag: 60818, sign: false }); + data.append(FP16x16 { mag: 59979, sign: false }); + data.append(FP16x16 { mag: 36912, sign: false }); + data.append(FP16x16 { mag: 46433, sign: false }); + data.append(FP16x16 { mag: 3745, sign: false }); + data.append(FP16x16 { mag: 29174, sign: false }); + data.append(FP16x16 { mag: 3555, sign: false }); + data.append(FP16x16 { mag: 3092, sign: false }); + data.append(FP16x16 { mag: 60956, sign: false }); + data.append(FP16x16 { mag: 37111, sign: false }); + data.append(FP16x16 { mag: 28077, sign: false }); + data.append(FP16x16 { mag: 9904, sign: false }); + data.append(FP16x16 { mag: 17752, sign: false }); + data.append(FP16x16 { mag: 51564, sign: false }); + data.append(FP16x16 { mag: 16512, sign: false }); + data.append(FP16x16 { mag: 18193, sign: false }); + data.append(FP16x16 { mag: 62859, sign: false }); + data.append(FP16x16 { mag: 28772, sign: false }); + data.append(FP16x16 { mag: 42434, sign: false }); + data.append(FP16x16 { mag: 12591, sign: false }); + data.append(FP16x16 { mag: 24303, sign: false }); + data.append(FP16x16 { mag: 19725, sign: false }); + data.append(FP16x16 { mag: 14636, sign: false }); + data.append(FP16x16 { mag: 57618, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_matrix_bias/input_2.cairo b/tests/nodes/gemm_default_matrix_bias/input_2.cairo index b5fd44b77..283c9e773 100644 --- a/tests/nodes/gemm_default_matrix_bias/input_2.cairo +++ b/tests/nodes/gemm_default_matrix_bias/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_2() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 17180, sign: false }); - data.append(FP16x16 { mag: 16229, sign: false }); - data.append(FP16x16 { mag: 15872, sign: false }); - data.append(FP16x16 { mag: 41908, sign: false }); - data.append(FP16x16 { mag: 19343, sign: false }); - data.append(FP16x16 { mag: 23171, sign: false }); - data.append(FP16x16 { mag: 40127, sign: false }); - data.append(FP16x16 { mag: 21249, sign: false }); - data.append(FP16x16 { mag: 14046, sign: false }); - data.append(FP16x16 { mag: 17154, sign: false }); - data.append(FP16x16 { mag: 31592, sign: false }); - data.append(FP16x16 { mag: 38555, sign: false }); + data.append(FP16x16 { mag: 62000, sign: false }); + data.append(FP16x16 { mag: 64560, sign: false }); + data.append(FP16x16 { mag: 23724, sign: false }); + data.append(FP16x16 { mag: 53487, sign: false }); + data.append(FP16x16 { mag: 44710, sign: false }); + data.append(FP16x16 { mag: 54528, sign: false }); + data.append(FP16x16 { mag: 39071, sign: false }); + data.append(FP16x16 { mag: 3222, sign: false }); + data.append(FP16x16 { mag: 22465, sign: false }); + data.append(FP16x16 { mag: 56410, sign: false }); + data.append(FP16x16 { mag: 11578, sign: false }); + data.append(FP16x16 { mag: 57495, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_matrix_bias/output_0.cairo b/tests/nodes/gemm_default_matrix_bias/output_0.cairo index 2e84cbca1..d909f8334 100644 --- a/tests/nodes/gemm_default_matrix_bias/output_0.cairo +++ b/tests/nodes/gemm_default_matrix_bias/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 150288, sign: false }); - data.append(FP16x16 { mag: 128258, sign: false }); - data.append(FP16x16 { mag: 118559, sign: false }); - data.append(FP16x16 { mag: 113724, sign: false }); - data.append(FP16x16 { mag: 135691, sign: false }); - data.append(FP16x16 { mag: 154786, sign: false }); - data.append(FP16x16 { mag: 152316, sign: false }); - data.append(FP16x16 { mag: 135919, sign: false }); - data.append(FP16x16 { mag: 168184, sign: false }); - data.append(FP16x16 { mag: 160656, sign: false }); - data.append(FP16x16 { mag: 162874, sign: false }); - data.append(FP16x16 { mag: 125446, sign: false }); + data.append(FP16x16 { mag: 176052, sign: false }); + data.append(FP16x16 { mag: 161653, sign: false }); + data.append(FP16x16 { mag: 91548, sign: false }); + data.append(FP16x16 { mag: 130822, sign: false }); + data.append(FP16x16 { mag: 113090, sign: false }); + data.append(FP16x16 { mag: 114286, sign: false }); + data.append(FP16x16 { mag: 78771, sign: false }); + data.append(FP16x16 { mag: 55867, sign: false }); + data.append(FP16x16 { mag: 83763, sign: false }); + data.append(FP16x16 { mag: 103037, sign: false }); + data.append(FP16x16 { mag: 53197, sign: false }); + data.append(FP16x16 { mag: 82622, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_no_bias.cairo b/tests/nodes/gemm_default_no_bias.cairo index b60163b30..b702bcfc3 100644 --- a/tests/nodes/gemm_default_no_bias.cairo +++ b/tests/nodes/gemm_default_no_bias.cairo @@ -5,9 +5,9 @@ mod output_0; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -16,9 +16,7 @@ fn test_gemm_default_no_bias() { let input_1 = input_1::input_1(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, input_1, Option::None(()), Option::None(()), Option::None(()), false, false - ); + let y = NNTrait::gemm(input_0, input_1, Option::None(()), Option::None(()), Option::None(()), false, false); assert_eq(y, z); } diff --git a/tests/nodes/gemm_default_no_bias/input_0.cairo b/tests/nodes/gemm_default_no_bias/input_0.cairo index 83ef9a0bb..8c75c6063 100644 --- a/tests/nodes/gemm_default_no_bias/input_0.cairo +++ b/tests/nodes/gemm_default_no_bias/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 48671, sign: false }); - data.append(FP16x16 { mag: 53291, sign: false }); - data.append(FP16x16 { mag: 61962, sign: false }); - data.append(FP16x16 { mag: 23548, sign: false }); - data.append(FP16x16 { mag: 12042, sign: false }); - data.append(FP16x16 { mag: 198, sign: false }); - data.append(FP16x16 { mag: 26605, sign: false }); - data.append(FP16x16 { mag: 42749, sign: false }); - data.append(FP16x16 { mag: 42426, sign: false }); - data.append(FP16x16 { mag: 16917, sign: false }); - data.append(FP16x16 { mag: 50488, sign: false }); - data.append(FP16x16 { mag: 10785, sign: false }); - data.append(FP16x16 { mag: 63703, sign: false }); - data.append(FP16x16 { mag: 16964, sign: false }); - data.append(FP16x16 { mag: 24102, sign: false }); + data.append(FP16x16 { mag: 22549, sign: false }); + data.append(FP16x16 { mag: 29927, sign: false }); + data.append(FP16x16 { mag: 5624, sign: false }); + data.append(FP16x16 { mag: 43955, sign: false }); + data.append(FP16x16 { mag: 38785, sign: false }); + data.append(FP16x16 { mag: 14854, sign: false }); + data.append(FP16x16 { mag: 4727, sign: false }); + data.append(FP16x16 { mag: 24506, sign: false }); + data.append(FP16x16 { mag: 29042, sign: false }); + data.append(FP16x16 { mag: 35461, sign: false }); + data.append(FP16x16 { mag: 53031, sign: false }); + data.append(FP16x16 { mag: 2059, sign: false }); + data.append(FP16x16 { mag: 45485, sign: false }); + data.append(FP16x16 { mag: 54450, sign: false }); + data.append(FP16x16 { mag: 13645, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_no_bias/input_1.cairo b/tests/nodes/gemm_default_no_bias/input_1.cairo index 3012f1288..3b6db8b6d 100644 --- a/tests/nodes/gemm_default_no_bias/input_1.cairo +++ b/tests/nodes/gemm_default_no_bias/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 50500, sign: false }); - data.append(FP16x16 { mag: 17886, sign: false }); - data.append(FP16x16 { mag: 46985, sign: false }); - data.append(FP16x16 { mag: 55588, sign: false }); - data.append(FP16x16 { mag: 13076, sign: false }); - data.append(FP16x16 { mag: 60436, sign: false }); - data.append(FP16x16 { mag: 39821, sign: false }); - data.append(FP16x16 { mag: 26415, sign: false }); - data.append(FP16x16 { mag: 21305, sign: false }); - data.append(FP16x16 { mag: 14320, sign: false }); - data.append(FP16x16 { mag: 28448, sign: false }); - data.append(FP16x16 { mag: 25828, sign: false }); - data.append(FP16x16 { mag: 47472, sign: false }); - data.append(FP16x16 { mag: 52266, sign: false }); - data.append(FP16x16 { mag: 7390, sign: false }); - data.append(FP16x16 { mag: 56380, sign: false }); - data.append(FP16x16 { mag: 13296, sign: false }); - data.append(FP16x16 { mag: 59748, sign: false }); - data.append(FP16x16 { mag: 8798, sign: false }); - data.append(FP16x16 { mag: 32105, sign: false }); + data.append(FP16x16 { mag: 21264, sign: false }); + data.append(FP16x16 { mag: 40785, sign: false }); + data.append(FP16x16 { mag: 3120, sign: false }); + data.append(FP16x16 { mag: 5275, sign: false }); + data.append(FP16x16 { mag: 38611, sign: false }); + data.append(FP16x16 { mag: 30792, sign: false }); + data.append(FP16x16 { mag: 9186, sign: false }); + data.append(FP16x16 { mag: 7839, sign: false }); + data.append(FP16x16 { mag: 61914, sign: false }); + data.append(FP16x16 { mag: 53606, sign: false }); + data.append(FP16x16 { mag: 5497, sign: false }); + data.append(FP16x16 { mag: 49410, sign: false }); + data.append(FP16x16 { mag: 33114, sign: false }); + data.append(FP16x16 { mag: 20996, sign: false }); + data.append(FP16x16 { mag: 11300, sign: false }); + data.append(FP16x16 { mag: 19630, sign: false }); + data.append(FP16x16 { mag: 14015, sign: false }); + data.append(FP16x16 { mag: 25247, sign: false }); + data.append(FP16x16 { mag: 1692, sign: false }); + data.append(FP16x16 { mag: 43693, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_no_bias/output_0.cairo b/tests/nodes/gemm_default_no_bias/output_0.cairo index 51702c1b8..bf0e760f2 100644 --- a/tests/nodes/gemm_default_no_bias/output_0.cairo +++ b/tests/nodes/gemm_default_no_bias/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 87783, sign: false }); - data.append(FP16x16 { mag: 105727, sign: false }); - data.append(FP16x16 { mag: 98446, sign: false }); - data.append(FP16x16 { mag: 113342, sign: false }); - data.append(FP16x16 { mag: 53524, sign: false }); - data.append(FP16x16 { mag: 83190, sign: false }); - data.append(FP16x16 { mag: 41921, sign: false }); - data.append(FP16x16 { mag: 72526, sign: false }); - data.append(FP16x16 { mag: 78945, sign: false }); - data.append(FP16x16 { mag: 73149, sign: false }); - data.append(FP16x16 { mag: 75553, sign: false }); - data.append(FP16x16 { mag: 98680, sign: false }); + data.append(FP16x16 { mag: 60767, sign: false }); + data.append(FP16x16 { mag: 61719, sign: false }); + data.append(FP16x16 { mag: 14321, sign: false }); + data.append(FP16x16 { mag: 48660, sign: false }); + data.append(FP16x16 { mag: 53016, sign: false }); + data.append(FP16x16 { mag: 54477, sign: false }); + data.append(FP16x16 { mag: 9349, sign: false }); + data.append(FP16x16 { mag: 52579, sign: false }); + data.append(FP16x16 { mag: 91823, sign: false }); + data.append(FP16x16 { mag: 93878, sign: false }); + data.append(FP16x16 { mag: 16370, sign: false }); + data.append(FP16x16 { mag: 64215, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_vector_bias.cairo b/tests/nodes/gemm_default_vector_bias.cairo index 567a2f9d6..7f4f2646b 100644 --- a/tests/nodes/gemm_default_vector_bias.cairo +++ b/tests/nodes/gemm_default_vector_bias.cairo @@ -6,9 +6,9 @@ mod output_0; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -18,9 +18,7 @@ fn test_gemm_default_vector_bias() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, input_1, Option::Some(input_2), Option::None(()), Option::None(()), false, false - ); + let y = NNTrait::gemm(input_0, input_1, Option::Some(input_2), Option::None(()), Option::None(()), false, false); assert_eq(y, z); } diff --git a/tests/nodes/gemm_default_vector_bias/input_0.cairo b/tests/nodes/gemm_default_vector_bias/input_0.cairo index e2ffbb8f9..d91c6f38b 100644 --- a/tests/nodes/gemm_default_vector_bias/input_0.cairo +++ b/tests/nodes/gemm_default_vector_bias/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,19 +9,19 @@ fn input_0() -> Tensor { shape.append(7); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 42416, sign: false }); - data.append(FP16x16 { mag: 877, sign: false }); - data.append(FP16x16 { mag: 21463, sign: false }); - data.append(FP16x16 { mag: 55531, sign: false }); - data.append(FP16x16 { mag: 62444, sign: false }); - data.append(FP16x16 { mag: 30762, sign: false }); - data.append(FP16x16 { mag: 15704, sign: false }); - data.append(FP16x16 { mag: 36007, sign: false }); - data.append(FP16x16 { mag: 18900, sign: false }); - data.append(FP16x16 { mag: 3784, sign: false }); - data.append(FP16x16 { mag: 356, sign: false }); - data.append(FP16x16 { mag: 51406, sign: false }); - data.append(FP16x16 { mag: 57856, sign: false }); - data.append(FP16x16 { mag: 27283, sign: false }); + data.append(FP16x16 { mag: 26141, sign: false }); + data.append(FP16x16 { mag: 65210, sign: false }); + data.append(FP16x16 { mag: 44238, sign: false }); + data.append(FP16x16 { mag: 15740, sign: false }); + data.append(FP16x16 { mag: 27732, sign: false }); + data.append(FP16x16 { mag: 54749, sign: false }); + data.append(FP16x16 { mag: 23531, sign: false }); + data.append(FP16x16 { mag: 12333, sign: false }); + data.append(FP16x16 { mag: 3048, sign: false }); + data.append(FP16x16 { mag: 50642, sign: false }); + data.append(FP16x16 { mag: 50567, sign: false }); + data.append(FP16x16 { mag: 20553, sign: false }); + data.append(FP16x16 { mag: 14789, sign: false }); + data.append(FP16x16 { mag: 48807, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_vector_bias/input_1.cairo b/tests/nodes/gemm_default_vector_bias/input_1.cairo index 026350f95..dabfc8382 100644 --- a/tests/nodes/gemm_default_vector_bias/input_1.cairo +++ b/tests/nodes/gemm_default_vector_bias/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,33 +9,33 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 40337, sign: false }); - data.append(FP16x16 { mag: 29183, sign: false }); - data.append(FP16x16 { mag: 2662, sign: false }); - data.append(FP16x16 { mag: 26364, sign: false }); - data.append(FP16x16 { mag: 42934, sign: false }); - data.append(FP16x16 { mag: 65150, sign: false }); - data.append(FP16x16 { mag: 19395, sign: false }); - data.append(FP16x16 { mag: 39868, sign: false }); - data.append(FP16x16 { mag: 12023, sign: false }); - data.append(FP16x16 { mag: 28456, sign: false }); - data.append(FP16x16 { mag: 20310, sign: false }); - data.append(FP16x16 { mag: 33530, sign: false }); - data.append(FP16x16 { mag: 15549, sign: false }); - data.append(FP16x16 { mag: 37265, sign: false }); - data.append(FP16x16 { mag: 64596, sign: false }); - data.append(FP16x16 { mag: 58778, sign: false }); - data.append(FP16x16 { mag: 41122, sign: false }); - data.append(FP16x16 { mag: 29826, sign: false }); - data.append(FP16x16 { mag: 43424, sign: false }); - data.append(FP16x16 { mag: 47301, sign: false }); - data.append(FP16x16 { mag: 5420, sign: false }); - data.append(FP16x16 { mag: 54233, sign: false }); - data.append(FP16x16 { mag: 28313, sign: false }); - data.append(FP16x16 { mag: 12356, sign: false }); - data.append(FP16x16 { mag: 54540, sign: false }); - data.append(FP16x16 { mag: 42851, sign: false }); - data.append(FP16x16 { mag: 28457, sign: false }); - data.append(FP16x16 { mag: 16731, sign: false }); + data.append(FP16x16 { mag: 2655, sign: false }); + data.append(FP16x16 { mag: 27005, sign: false }); + data.append(FP16x16 { mag: 28670, sign: false }); + data.append(FP16x16 { mag: 49392, sign: false }); + data.append(FP16x16 { mag: 39855, sign: false }); + data.append(FP16x16 { mag: 37109, sign: false }); + data.append(FP16x16 { mag: 58515, sign: false }); + data.append(FP16x16 { mag: 40588, sign: false }); + data.append(FP16x16 { mag: 59543, sign: false }); + data.append(FP16x16 { mag: 58423, sign: false }); + data.append(FP16x16 { mag: 200, sign: false }); + data.append(FP16x16 { mag: 57208, sign: false }); + data.append(FP16x16 { mag: 10967, sign: false }); + data.append(FP16x16 { mag: 21516, sign: false }); + data.append(FP16x16 { mag: 4197, sign: false }); + data.append(FP16x16 { mag: 2419, sign: false }); + data.append(FP16x16 { mag: 15655, sign: false }); + data.append(FP16x16 { mag: 33193, sign: false }); + data.append(FP16x16 { mag: 40116, sign: false }); + data.append(FP16x16 { mag: 14725, sign: false }); + data.append(FP16x16 { mag: 37526, sign: false }); + data.append(FP16x16 { mag: 4098, sign: false }); + data.append(FP16x16 { mag: 45267, sign: false }); + data.append(FP16x16 { mag: 11802, sign: false }); + data.append(FP16x16 { mag: 53114, sign: false }); + data.append(FP16x16 { mag: 53602, sign: false }); + data.append(FP16x16 { mag: 23812, sign: false }); + data.append(FP16x16 { mag: 50714, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_vector_bias/input_2.cairo b/tests/nodes/gemm_default_vector_bias/input_2.cairo index c34063a3e..f340a6ea2 100644 --- a/tests/nodes/gemm_default_vector_bias/input_2.cairo +++ b/tests/nodes/gemm_default_vector_bias/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_2() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 42958, sign: false }); - data.append(FP16x16 { mag: 57252, sign: false }); - data.append(FP16x16 { mag: 44948, sign: false }); - data.append(FP16x16 { mag: 18261, sign: false }); + data.append(FP16x16 { mag: 43991, sign: false }); + data.append(FP16x16 { mag: 30927, sign: false }); + data.append(FP16x16 { mag: 35649, sign: false }); + data.append(FP16x16 { mag: 3973, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_default_vector_bias/output_0.cairo b/tests/nodes/gemm_default_vector_bias/output_0.cairo index 2e3368481..9859d8278 100644 --- a/tests/nodes/gemm_default_vector_bias/output_0.cairo +++ b/tests/nodes/gemm_default_vector_bias/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 141552, sign: false }); - data.append(FP16x16 { mag: 182056, sign: false }); - data.append(FP16x16 { mag: 169805, sign: false }); - data.append(FP16x16 { mag: 151525, sign: false }); - data.append(FP16x16 { mag: 138029, sign: false }); - data.append(FP16x16 { mag: 183035, sign: false }); - data.append(FP16x16 { mag: 124434, sign: false }); - data.append(FP16x16 { mag: 101476, sign: false }); + data.append(FP16x16 { mag: 184581, sign: false }); + data.append(FP16x16 { mag: 159946, sign: false }); + data.append(FP16x16 { mag: 169795, sign: false }); + data.append(FP16x16 { mag: 137561, sign: false }); + data.append(FP16x16 { mag: 153754, sign: false }); + data.append(FP16x16 { mag: 150739, sign: false }); + data.append(FP16x16 { mag: 87691, sign: false }); + data.append(FP16x16 { mag: 106281, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_transposeA.cairo b/tests/nodes/gemm_transposeA.cairo index 499fcef3a..c0b49d799 100644 --- a/tests/nodes/gemm_transposeA.cairo +++ b/tests/nodes/gemm_transposeA.cairo @@ -5,9 +5,9 @@ mod output_0; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -16,9 +16,7 @@ fn test_gemm_transposeA() { let input_1 = input_1::input_1(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, input_1, Option::None(()), Option::None(()), Option::None(()), true, false - ); + let y = NNTrait::gemm(input_0, input_1, Option::None(()), Option::None(()), Option::None(()), true, false); assert_eq(y, z); } diff --git a/tests/nodes/gemm_transposeA/input_0.cairo b/tests/nodes/gemm_transposeA/input_0.cairo index 1e4b64c09..4e2604848 100644 --- a/tests/nodes/gemm_transposeA/input_0.cairo +++ b/tests/nodes/gemm_transposeA/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 60981, sign: false }); - data.append(FP16x16 { mag: 58843, sign: false }); - data.append(FP16x16 { mag: 19404, sign: false }); - data.append(FP16x16 { mag: 56768, sign: false }); - data.append(FP16x16 { mag: 2442, sign: false }); - data.append(FP16x16 { mag: 45529, sign: false }); - data.append(FP16x16 { mag: 1800, sign: false }); - data.append(FP16x16 { mag: 38751, sign: false }); - data.append(FP16x16 { mag: 29332, sign: false }); - data.append(FP16x16 { mag: 17874, sign: false }); - data.append(FP16x16 { mag: 39405, sign: false }); - data.append(FP16x16 { mag: 7286, sign: false }); - data.append(FP16x16 { mag: 23687, sign: false }); - data.append(FP16x16 { mag: 7092, sign: false }); - data.append(FP16x16 { mag: 20015, sign: false }); - data.append(FP16x16 { mag: 26356, sign: false }); - data.append(FP16x16 { mag: 49636, sign: false }); - data.append(FP16x16 { mag: 54933, sign: false }); + data.append(FP16x16 { mag: 25712, sign: false }); + data.append(FP16x16 { mag: 33518, sign: false }); + data.append(FP16x16 { mag: 55900, sign: false }); + data.append(FP16x16 { mag: 17835, sign: false }); + data.append(FP16x16 { mag: 55991, sign: false }); + data.append(FP16x16 { mag: 49824, sign: false }); + data.append(FP16x16 { mag: 10885, sign: false }); + data.append(FP16x16 { mag: 46382, sign: false }); + data.append(FP16x16 { mag: 12037, sign: false }); + data.append(FP16x16 { mag: 54001, sign: false }); + data.append(FP16x16 { mag: 28270, sign: false }); + data.append(FP16x16 { mag: 53624, sign: false }); + data.append(FP16x16 { mag: 8973, sign: false }); + data.append(FP16x16 { mag: 57376, sign: false }); + data.append(FP16x16 { mag: 59443, sign: false }); + data.append(FP16x16 { mag: 20787, sign: false }); + data.append(FP16x16 { mag: 21410, sign: false }); + data.append(FP16x16 { mag: 30468, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_transposeA/input_1.cairo b/tests/nodes/gemm_transposeA/input_1.cairo index dc66548d4..13b9de31f 100644 --- a/tests/nodes/gemm_transposeA/input_1.cairo +++ b/tests/nodes/gemm_transposeA/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +9,29 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 14140, sign: false }); - data.append(FP16x16 { mag: 4427, sign: false }); - data.append(FP16x16 { mag: 61152, sign: false }); - data.append(FP16x16 { mag: 63478, sign: false }); - data.append(FP16x16 { mag: 46719, sign: false }); - data.append(FP16x16 { mag: 40516, sign: false }); - data.append(FP16x16 { mag: 5299, sign: false }); - data.append(FP16x16 { mag: 27500, sign: false }); - data.append(FP16x16 { mag: 22968, sign: false }); - data.append(FP16x16 { mag: 16628, sign: false }); - data.append(FP16x16 { mag: 14772, sign: false }); - data.append(FP16x16 { mag: 37261, sign: false }); - data.append(FP16x16 { mag: 62578, sign: false }); - data.append(FP16x16 { mag: 20150, sign: false }); - data.append(FP16x16 { mag: 38069, sign: false }); - data.append(FP16x16 { mag: 9702, sign: false }); - data.append(FP16x16 { mag: 12410, sign: false }); - data.append(FP16x16 { mag: 30336, sign: false }); - data.append(FP16x16 { mag: 65424, sign: false }); - data.append(FP16x16 { mag: 37187, sign: false }); - data.append(FP16x16 { mag: 28867, sign: false }); - data.append(FP16x16 { mag: 1671, sign: false }); - data.append(FP16x16 { mag: 57203, sign: false }); - data.append(FP16x16 { mag: 17320, sign: false }); + data.append(FP16x16 { mag: 38056, sign: false }); + data.append(FP16x16 { mag: 35209, sign: false }); + data.append(FP16x16 { mag: 55369, sign: false }); + data.append(FP16x16 { mag: 64248, sign: false }); + data.append(FP16x16 { mag: 16398, sign: false }); + data.append(FP16x16 { mag: 58129, sign: false }); + data.append(FP16x16 { mag: 46239, sign: false }); + data.append(FP16x16 { mag: 56435, sign: false }); + data.append(FP16x16 { mag: 25984, sign: false }); + data.append(FP16x16 { mag: 64809, sign: false }); + data.append(FP16x16 { mag: 65020, sign: false }); + data.append(FP16x16 { mag: 8759, sign: false }); + data.append(FP16x16 { mag: 50946, sign: false }); + data.append(FP16x16 { mag: 29640, sign: false }); + data.append(FP16x16 { mag: 12257, sign: false }); + data.append(FP16x16 { mag: 26776, sign: false }); + data.append(FP16x16 { mag: 20618, sign: false }); + data.append(FP16x16 { mag: 15242, sign: false }); + data.append(FP16x16 { mag: 5560, sign: false }); + data.append(FP16x16 { mag: 3669, sign: false }); + data.append(FP16x16 { mag: 64019, sign: false }); + data.append(FP16x16 { mag: 9851, sign: false }); + data.append(FP16x16 { mag: 26388, sign: false }); + data.append(FP16x16 { mag: 62343, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_transposeA/output_0.cairo b/tests/nodes/gemm_transposeA/output_0.cairo index 47ea16509..3f9558465 100644 --- a/tests/nodes/gemm_transposeA/output_0.cairo +++ b/tests/nodes/gemm_transposeA/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 87420, sign: false }); - data.append(FP16x16 { mag: 56805, sign: false }); - data.append(FP16x16 { mag: 118934, sign: false }); - data.append(FP16x16 { mag: 106965, sign: false }); - data.append(FP16x16 { mag: 88852, sign: false }); - data.append(FP16x16 { mag: 31983, sign: false }); - data.append(FP16x16 { mag: 137135, sign: false }); - data.append(FP16x16 { mag: 103030, sign: false }); - data.append(FP16x16 { mag: 81868, sign: false }); - data.append(FP16x16 { mag: 49808, sign: false }); - data.append(FP16x16 { mag: 100563, sign: false }); - data.append(FP16x16 { mag: 81533, sign: false }); + data.append(FP16x16 { mag: 88819, sign: false }); + data.append(FP16x16 { mag: 70034, sign: false }); + data.append(FP16x16 { mag: 64340, sign: false }); + data.append(FP16x16 { mag: 84362, sign: false }); + data.append(FP16x16 { mag: 112807, sign: false }); + data.append(FP16x16 { mag: 142888, sign: false }); + data.append(FP16x16 { mag: 132618, sign: false }); + data.append(FP16x16 { mag: 122405, sign: false }); + data.append(FP16x16 { mag: 139852, sign: false }); + data.append(FP16x16 { mag: 128789, sign: false }); + data.append(FP16x16 { mag: 121667, sign: false }); + data.append(FP16x16 { mag: 153539, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_transposeB.cairo b/tests/nodes/gemm_transposeB.cairo index 8eb5c8412..4c7ccbef4 100644 --- a/tests/nodes/gemm_transposeB.cairo +++ b/tests/nodes/gemm_transposeB.cairo @@ -5,9 +5,9 @@ mod output_0; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -16,9 +16,7 @@ fn test_gemm_transposeB() { let input_1 = input_1::input_1(); let z = output_0::output_0(); - let y = NNTrait::gemm( - input_0, input_1, Option::None(()), Option::None(()), Option::None(()), false, true - ); + let y = NNTrait::gemm(input_0, input_1, Option::None(()), Option::None(()), Option::None(()), false, true); assert_eq(y, z); } diff --git a/tests/nodes/gemm_transposeB/input_0.cairo b/tests/nodes/gemm_transposeB/input_0.cairo index 625594ceb..b29e9ceb0 100644 --- a/tests/nodes/gemm_transposeB/input_0.cairo +++ b/tests/nodes/gemm_transposeB/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(6); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 44827, sign: false }); - data.append(FP16x16 { mag: 53565, sign: false }); - data.append(FP16x16 { mag: 1198, sign: false }); - data.append(FP16x16 { mag: 31917, sign: false }); - data.append(FP16x16 { mag: 38005, sign: false }); - data.append(FP16x16 { mag: 22276, sign: false }); - data.append(FP16x16 { mag: 34928, sign: false }); - data.append(FP16x16 { mag: 28767, sign: false }); - data.append(FP16x16 { mag: 18918, sign: false }); - data.append(FP16x16 { mag: 40664, sign: false }); - data.append(FP16x16 { mag: 26252, sign: false }); - data.append(FP16x16 { mag: 26596, sign: false }); - data.append(FP16x16 { mag: 8752, sign: false }); - data.append(FP16x16 { mag: 15994, sign: false }); - data.append(FP16x16 { mag: 483, sign: false }); - data.append(FP16x16 { mag: 27831, sign: false }); - data.append(FP16x16 { mag: 28378, sign: false }); - data.append(FP16x16 { mag: 25924, sign: false }); + data.append(FP16x16 { mag: 43014, sign: false }); + data.append(FP16x16 { mag: 16802, sign: false }); + data.append(FP16x16 { mag: 52318, sign: false }); + data.append(FP16x16 { mag: 40979, sign: false }); + data.append(FP16x16 { mag: 277, sign: false }); + data.append(FP16x16 { mag: 29333, sign: false }); + data.append(FP16x16 { mag: 26593, sign: false }); + data.append(FP16x16 { mag: 41294, sign: false }); + data.append(FP16x16 { mag: 47646, sign: false }); + data.append(FP16x16 { mag: 2148, sign: false }); + data.append(FP16x16 { mag: 24564, sign: false }); + data.append(FP16x16 { mag: 18370, sign: false }); + data.append(FP16x16 { mag: 63747, sign: false }); + data.append(FP16x16 { mag: 10833, sign: false }); + data.append(FP16x16 { mag: 29301, sign: false }); + data.append(FP16x16 { mag: 20991, sign: false }); + data.append(FP16x16 { mag: 28040, sign: false }); + data.append(FP16x16 { mag: 133, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_transposeB/input_1.cairo b/tests/nodes/gemm_transposeB/input_1.cairo index 7fbc01149..55767055d 100644 --- a/tests/nodes/gemm_transposeB/input_1.cairo +++ b/tests/nodes/gemm_transposeB/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,29 +9,29 @@ fn input_1() -> Tensor { shape.append(6); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 28356, sign: false }); - data.append(FP16x16 { mag: 19354, sign: false }); - data.append(FP16x16 { mag: 2749, sign: false }); - data.append(FP16x16 { mag: 24026, sign: false }); - data.append(FP16x16 { mag: 11157, sign: false }); - data.append(FP16x16 { mag: 62112, sign: false }); - data.append(FP16x16 { mag: 8802, sign: false }); - data.append(FP16x16 { mag: 40701, sign: false }); - data.append(FP16x16 { mag: 11492, sign: false }); - data.append(FP16x16 { mag: 56717, sign: false }); - data.append(FP16x16 { mag: 12174, sign: false }); - data.append(FP16x16 { mag: 37607, sign: false }); - data.append(FP16x16 { mag: 18568, sign: false }); - data.append(FP16x16 { mag: 56759, sign: false }); - data.append(FP16x16 { mag: 17097, sign: false }); - data.append(FP16x16 { mag: 39335, sign: false }); - data.append(FP16x16 { mag: 50570, sign: false }); - data.append(FP16x16 { mag: 54411, sign: false }); - data.append(FP16x16 { mag: 25640, sign: false }); - data.append(FP16x16 { mag: 55921, sign: false }); - data.append(FP16x16 { mag: 37203, sign: false }); - data.append(FP16x16 { mag: 10548, sign: false }); - data.append(FP16x16 { mag: 48030, sign: false }); - data.append(FP16x16 { mag: 37338, sign: false }); + data.append(FP16x16 { mag: 9020, sign: false }); + data.append(FP16x16 { mag: 1508, sign: false }); + data.append(FP16x16 { mag: 17596, sign: false }); + data.append(FP16x16 { mag: 15725, sign: false }); + data.append(FP16x16 { mag: 17557, sign: false }); + data.append(FP16x16 { mag: 6286, sign: false }); + data.append(FP16x16 { mag: 33993, sign: false }); + data.append(FP16x16 { mag: 24966, sign: false }); + data.append(FP16x16 { mag: 18648, sign: false }); + data.append(FP16x16 { mag: 1482, sign: false }); + data.append(FP16x16 { mag: 56402, sign: false }); + data.append(FP16x16 { mag: 11205, sign: false }); + data.append(FP16x16 { mag: 59749, sign: false }); + data.append(FP16x16 { mag: 32628, sign: false }); + data.append(FP16x16 { mag: 51145, sign: false }); + data.append(FP16x16 { mag: 37477, sign: false }); + data.append(FP16x16 { mag: 14287, sign: false }); + data.append(FP16x16 { mag: 18084, sign: false }); + data.append(FP16x16 { mag: 13969, sign: false }); + data.append(FP16x16 { mag: 52688, sign: false }); + data.append(FP16x16 { mag: 40536, sign: false }); + data.append(FP16x16 { mag: 36430, sign: false }); + data.append(FP16x16 { mag: 17009, sign: false }); + data.append(FP16x16 { mag: 50657, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/gemm_transposeB/output_0.cairo b/tests/nodes/gemm_transposeB/output_0.cairo index 1b90bfaf5..3133024a1 100644 --- a/tests/nodes/gemm_transposeB/output_0.cairo +++ b/tests/nodes/gemm_transposeB/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 74549, sign: false }); - data.append(FP16x16 { mag: 86964, sign: false }); - data.append(FP16x16 { mag: 126384, sign: false }); - data.append(FP16x16 { mag: 109608, sign: false }); - data.append(FP16x16 { mag: 68987, sign: false }); - data.append(FP16x16 { mag: 81207, sign: false }); - data.append(FP16x16 { mag: 106493, sign: false }); - data.append(FP16x16 { mag: 89890, sign: false }); - data.append(FP16x16 { mag: 48135, sign: false }); - data.append(FP16x16 { mag: 55429, sign: false }); - data.append(FP16x16 { mag: 76585, sign: false }); - data.append(FP16x16 { mag: 57394, sign: false }); + data.append(FP16x16 { mag: 33076, sign: false }); + data.append(FP16x16 { mag: 49782, sign: false }); + data.append(FP16x16 { mag: 120002, sign: false }); + data.append(FP16x16 { mag: 100565, sign: false }); + data.append(FP16x16 { mag: 26262, sign: false }); + data.append(FP16x16 { mag: 67414, sign: false }); + data.append(FP16x16 { mag: 93642, sign: false }); + data.append(FP16x16 { mag: 90109, sign: false }); + data.append(FP16x16 { mag: 29452, sign: false }); + data.append(FP16x16 { mag: 70161, sign: false }); + data.append(FP16x16 { mag: 104534, sign: false }); + data.append(FP16x16 { mag: 59471, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp16x16.cairo b/tests/nodes/greater_equal_fp16x16.cairo index f0afda063..ade17fab9 100644 --- a/tests/nodes/greater_equal_fp16x16.cairo +++ b/tests/nodes/greater_equal_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_fp16x16/input_0.cairo b/tests/nodes/greater_equal_fp16x16/input_0.cairo index bf198fd66..2357065aa 100644 --- a/tests/nodes/greater_equal_fp16x16/input_0.cairo +++ b/tests/nodes/greater_equal_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp16x16/input_1.cairo b/tests/nodes/greater_equal_fp16x16/input_1.cairo index 784b0c5d9..2aca7c1e4 100644 --- a/tests/nodes/greater_equal_fp16x16/input_1.cairo +++ b/tests/nodes/greater_equal_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp16x16/output_0.cairo b/tests/nodes/greater_equal_fp16x16/output_0.cairo index 8828bc76c..3838fd015 100644 --- a/tests/nodes/greater_equal_fp16x16/output_0.cairo +++ b/tests/nodes/greater_equal_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); + data.append(0); + data.append(0); data.append(1); data.append(1); data.append(1); data.append(1); data.append(1); data.append(1); - data.append(0); - data.append(1); - data.append(1); data.append(1); data.append(1); data.append(1); - data.append(0); - data.append(0); data.append(1); data.append(0); data.append(1); data.append(1); + data.append(0); data.append(1); + data.append(0); + data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(0); data.append(1); data.append(0); - data.append(0); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp16x16_broadcast.cairo b/tests/nodes/greater_equal_fp16x16_broadcast.cairo index a71fdf540..88b0d8221 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo b/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo index a1781af54..d5b16c572 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo b/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo index 547c3f98e..2f4253292 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo b/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo index 1ed1b435e..0779d09f7 100644 --- a/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +10,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(0); data.append(1); @@ -19,13 +17,13 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); data.append(0); - data.append(1); - data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(0); data.append(0); @@ -35,6 +33,8 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(1); + data.append(0); + data.append(1); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp8x23.cairo b/tests/nodes/greater_equal_fp8x23.cairo index da0618960..fe69d50b0 100644 --- a/tests/nodes/greater_equal_fp8x23.cairo +++ b/tests/nodes/greater_equal_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_fp8x23/input_0.cairo b/tests/nodes/greater_equal_fp8x23/input_0.cairo index 5322df0a4..dc99936c5 100644 --- a/tests/nodes/greater_equal_fp8x23/input_0.cairo +++ b/tests/nodes/greater_equal_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp8x23/input_1.cairo b/tests/nodes/greater_equal_fp8x23/input_1.cairo index 10a309690..181dad555 100644 --- a/tests/nodes/greater_equal_fp8x23/input_1.cairo +++ b/tests/nodes/greater_equal_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,31 +10,31 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/greater_equal_fp8x23/output_0.cairo b/tests/nodes/greater_equal_fp8x23/output_0.cairo index f108a3c15..0102d6e42 100644 --- a/tests/nodes/greater_equal_fp8x23/output_0.cairo +++ b/tests/nodes/greater_equal_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,11 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); data.append(1); data.append(0); data.append(0); data.append(1); - data.append(0); data.append(1); data.append(1); data.append(0); @@ -23,17 +21,19 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(1); data.append(1); + data.append(1); data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/greater_equal_fp8x23_broadcast.cairo b/tests/nodes/greater_equal_fp8x23_broadcast.cairo index d5f0c8dc2..4cb89ba2a 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo b/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo index 9cc08936c..fc181dce7 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo b/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo index 835e80b43..b776b414a 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo b/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo index e9677b9cd..d8fc4b6d7 100644 --- a/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(1); data.append(1); - data.append(0); - data.append(0); data.append(1); data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(1); + data.append(1); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i32.cairo b/tests/nodes/greater_equal_i32.cairo index 06ebdd1b4..7fde407d8 100644 --- a/tests/nodes/greater_equal_i32.cairo +++ b/tests/nodes/greater_equal_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_i32/input_0.cairo b/tests/nodes/greater_equal_i32/input_0.cairo index ff43552f9..462799e9e 100644 --- a/tests/nodes/greater_equal_i32/input_0.cairo +++ b/tests/nodes/greater_equal_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(1); + data.append(-2); + data.append(-1); + data.append(0); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(-1); + data.append(2); + data.append(-1); + data.append(-2); + data.append(0); + data.append(2); + data.append(-3); + data.append(2); + data.append(-2); + data.append(1); + data.append(0); + data.append(-1); + data.append(0); + data.append(-3); + data.append(0); + data.append(-3); + data.append(-2); + data.append(1); + data.append(-1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i32/input_1.cairo b/tests/nodes/greater_equal_i32/input_1.cairo index f423235a3..71c047607 100644 --- a/tests/nodes/greater_equal_i32/input_1.cairo +++ b/tests/nodes/greater_equal_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(2); + data.append(-2); + data.append(-3); + data.append(1); + data.append(-3); + data.append(-2); + data.append(0); + data.append(-1); + data.append(1); + data.append(-3); + data.append(-3); + data.append(2); + data.append(1); + data.append(0); + data.append(-3); + data.append(-1); + data.append(-2); + data.append(2); + data.append(0); + data.append(-2); + data.append(2); + data.append(1); + data.append(-1); + data.append(0); + data.append(0); + data.append(0); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i32/output_0.cairo b/tests/nodes/greater_equal_i32/output_0.cairo index 023449525..f511f554d 100644 --- a/tests/nodes/greater_equal_i32/output_0.cairo +++ b/tests/nodes/greater_equal_i32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,7 +12,7 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(1); data.append(0); @@ -20,21 +20,21 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); + data.append(0); data.append(1); + data.append(0); data.append(1); - data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(1); data.append(0); - data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i32_broadcast.cairo b/tests/nodes/greater_equal_i32_broadcast.cairo index 595ea408c..3d5663ed1 100644 --- a/tests/nodes/greater_equal_i32_broadcast.cairo +++ b/tests/nodes/greater_equal_i32_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_i32_broadcast/input_0.cairo b/tests/nodes/greater_equal_i32_broadcast/input_0.cairo index 027701044..b65e8387d 100644 --- a/tests/nodes/greater_equal_i32_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(0); + data.append(0); + data.append(-1); + data.append(-1); + data.append(2); + data.append(2); + data.append(-1); + data.append(2); + data.append(0); + data.append(-1); + data.append(2); + data.append(-2); + data.append(1); + data.append(2); + data.append(1); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(-2); + data.append(-2); + data.append(1); + data.append(0); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(-2); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i32_broadcast/input_1.cairo b/tests/nodes/greater_equal_i32_broadcast/input_1.cairo index 4794a737c..05ca97a1c 100644 --- a/tests/nodes/greater_equal_i32_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i32_broadcast/output_0.cairo b/tests/nodes/greater_equal_i32_broadcast/output_0.cairo index 6bb4fc5a6..4b42da2bc 100644 --- a/tests/nodes/greater_equal_i32_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_i32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(0); - data.append(0); - data.append(0); - data.append(0); - data.append(0); data.append(1); - data.append(0); + data.append(1); data.append(1); data.append(1); data.append(1); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); data.append(1); data.append(1); + data.append(0); + data.append(0); + data.append(0); data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i8.cairo b/tests/nodes/greater_equal_i8.cairo index 5c498c9e1..7e408313f 100644 --- a/tests/nodes/greater_equal_i8.cairo +++ b/tests/nodes/greater_equal_i8.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_i8/input_0.cairo b/tests/nodes/greater_equal_i8/input_0.cairo index 8a99052f8..029abdd11 100644 --- a/tests/nodes/greater_equal_i8/input_0.cairo +++ b/tests/nodes/greater_equal_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(2); + data.append(-2); + data.append(2); + data.append(1); + data.append(0); + data.append(-3); + data.append(2); + data.append(-3); + data.append(-2); + data.append(-3); + data.append(2); + data.append(-1); + data.append(0); + data.append(-1); + data.append(0); + data.append(1); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(-2); + data.append(-2); + data.append(-3); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i8/input_1.cairo b/tests/nodes/greater_equal_i8/input_1.cairo index a73260702..a13f4e52b 100644 --- a/tests/nodes/greater_equal_i8/input_1.cairo +++ b/tests/nodes/greater_equal_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(1); + data.append(0); + data.append(-3); + data.append(0); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(-1); + data.append(2); + data.append(-3); + data.append(1); + data.append(1); + data.append(1); + data.append(-2); + data.append(2); + data.append(2); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(-1); + data.append(0); + data.append(-1); + data.append(2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i8/output_0.cairo b/tests/nodes/greater_equal_i8/output_0.cairo index 71533d4e8..6166962c9 100644 --- a/tests/nodes/greater_equal_i8/output_0.cairo +++ b/tests/nodes/greater_equal_i8/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(1); - data.append(0); data.append(1); - data.append(0); - data.append(0); data.append(1); data.append(1); data.append(1); data.append(0); + data.append(1); data.append(0); data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(1); data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(1); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i8_broadcast.cairo b/tests/nodes/greater_equal_i8_broadcast.cairo index 33f029d9c..53ffd4c26 100644 --- a/tests/nodes/greater_equal_i8_broadcast.cairo +++ b/tests/nodes/greater_equal_i8_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_i8_broadcast/input_0.cairo b/tests/nodes/greater_equal_i8_broadcast/input_0.cairo index a78a13ff4..721b747ee 100644 --- a/tests/nodes/greater_equal_i8_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(-2); + data.append(0); + data.append(-3); + data.append(-2); + data.append(0); + data.append(-3); + data.append(1); + data.append(-1); + data.append(0); + data.append(2); + data.append(0); + data.append(2); + data.append(2); + data.append(-3); + data.append(-1); + data.append(0); + data.append(0); + data.append(-3); + data.append(2); + data.append(-2); + data.append(-3); + data.append(2); + data.append(1); + data.append(-1); + data.append(-1); + data.append(1); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i8_broadcast/input_1.cairo b/tests/nodes/greater_equal_i8_broadcast/input_1.cairo index 91ddd0113..acb5683ff 100644 --- a/tests/nodes/greater_equal_i8_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(2); + data.append(2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_i8_broadcast/output_0.cairo b/tests/nodes/greater_equal_i8_broadcast/output_0.cairo index 00a04e9f6..d1b238ebc 100644 --- a/tests/nodes/greater_equal_i8_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_i8_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +9,10 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); data.append(0); data.append(0); data.append(1); @@ -20,21 +21,20 @@ fn output_0() -> Tensor { data.append(1); data.append(0); data.append(1); - data.append(0); - data.append(1); data.append(1); data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(1); - data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_u32.cairo b/tests/nodes/greater_equal_u32.cairo index 721287386..e548d6cd6 100644 --- a/tests/nodes/greater_equal_u32.cairo +++ b/tests/nodes/greater_equal_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_u32/input_0.cairo b/tests/nodes/greater_equal_u32/input_0.cairo index 014766b6f..5a6f968eb 100644 --- a/tests/nodes/greater_equal_u32/input_0.cairo +++ b/tests/nodes/greater_equal_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,30 +11,30 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(2); data.append(4); - data.append(1); - data.append(2); data.append(5); data.append(4); - data.append(2); - data.append(4); - data.append(5); + data.append(3); data.append(1); data.append(0); - data.append(2); - data.append(4); - data.append(2); data.append(0); - data.append(4); - data.append(1); - data.append(2); data.append(5); data.append(1); data.append(2); + data.append(4); + data.append(3); data.append(2); data.append(4); + data.append(5); data.append(4); + data.append(0); + data.append(1); data.append(2); + data.append(0); + data.append(5); data.append(1); + data.append(0); + data.append(5); + data.append(4); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_u32/input_1.cairo b/tests/nodes/greater_equal_u32/input_1.cairo index f8774b011..1130efb80 100644 --- a/tests/nodes/greater_equal_u32/input_1.cairo +++ b/tests/nodes/greater_equal_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(5); + data.append(0); + data.append(4); data.append(5); - data.append(3); data.append(5); + data.append(4); + data.append(1); data.append(1); data.append(5); - data.append(2); - data.append(5); - data.append(5); - data.append(2); + data.append(0); + data.append(3); data.append(3); - data.append(2); - data.append(5); data.append(1); - data.append(4); data.append(0); - data.append(1); data.append(0); - data.append(3); + data.append(5); data.append(0); - data.append(1); data.append(4); + data.append(1); + data.append(1); data.append(4); - data.append(0); - data.append(3); data.append(5); + data.append(1); + data.append(0); + data.append(4); + data.append(4); + data.append(4); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_u32/output_0.cairo b/tests/nodes/greater_equal_u32/output_0.cairo index 920661d52..3f8b7f407 100644 --- a/tests/nodes/greater_equal_u32/output_0.cairo +++ b/tests/nodes/greater_equal_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,15 +10,11 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(1); data.append(0); - data.append(1); - data.append(1); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); @@ -27,14 +23,18 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(1); data.append(0); data.append(1); data.append(1); + data.append(0); data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(1); data.append(0); + data.append(1); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_u32_broadcast.cairo b/tests/nodes/greater_equal_u32_broadcast.cairo index 7a072502d..5d40f386b 100644 --- a/tests/nodes/greater_equal_u32_broadcast.cairo +++ b/tests/nodes/greater_equal_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_equal_u32_broadcast/input_0.cairo b/tests/nodes/greater_equal_u32_broadcast/input_0.cairo index c8f994926..5bd64a3fa 100644 --- a/tests/nodes/greater_equal_u32_broadcast/input_0.cairo +++ b/tests/nodes/greater_equal_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); data.append(1); + data.append(2); data.append(4); - data.append(0); - data.append(4); - data.append(0); + data.append(5); + data.append(1); + data.append(5); data.append(4); + data.append(1); data.append(3); - data.append(4); - data.append(0); data.append(1); + data.append(3); + data.append(0); data.append(5); data.append(5); - data.append(5); + data.append(4); data.append(0); data.append(5); data.append(0); - data.append(3); data.append(5); - data.append(5); - data.append(3); - data.append(3); + data.append(2); + data.append(4); + data.append(4); + data.append(2); + data.append(1); data.append(3); - data.append(5); data.append(1); - data.append(5); - data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_u32_broadcast/input_1.cairo b/tests/nodes/greater_equal_u32_broadcast/input_1.cairo index 960403d36..365ec35ab 100644 --- a/tests/nodes/greater_equal_u32_broadcast/input_1.cairo +++ b/tests/nodes/greater_equal_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(3); - data.append(1); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_equal_u32_broadcast/output_0.cairo b/tests/nodes/greater_equal_u32_broadcast/output_0.cairo index d1b3a9aa7..d97dd0a71 100644 --- a/tests/nodes/greater_equal_u32_broadcast/output_0.cairo +++ b/tests/nodes/greater_equal_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,29 +12,29 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(0); data.append(1); data.append(1); - data.append(1); data.append(0); data.append(1); data.append(1); data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(0); data.append(1); data.append(1); + data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp16x16.cairo b/tests/nodes/greater_fp16x16.cairo index 9e6d726b1..2a7a03143 100644 --- a/tests/nodes/greater_fp16x16.cairo +++ b/tests/nodes/greater_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_fp16x16/input_0.cairo b/tests/nodes/greater_fp16x16/input_0.cairo index 5fed1595c..62da96aaf 100644 --- a/tests/nodes/greater_fp16x16/input_0.cairo +++ b/tests/nodes/greater_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp16x16/input_1.cairo b/tests/nodes/greater_fp16x16/input_1.cairo index 6e1b3c77b..ab8cd104f 100644 --- a/tests/nodes/greater_fp16x16/input_1.cairo +++ b/tests/nodes/greater_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp16x16/output_0.cairo b/tests/nodes/greater_fp16x16/output_0.cairo index f7a0f835b..48e9c4f38 100644 --- a/tests/nodes/greater_fp16x16/output_0.cairo +++ b/tests/nodes/greater_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,29 +12,29 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(0); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); + data.append(0); + data.append(0); data.append(1); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp16x16_broadcast.cairo b/tests/nodes/greater_fp16x16_broadcast.cairo index ff481e482..26a9933e4 100644 --- a/tests/nodes/greater_fp16x16_broadcast.cairo +++ b/tests/nodes/greater_fp16x16_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_fp16x16_broadcast/input_0.cairo b/tests/nodes/greater_fp16x16_broadcast/input_0.cairo index e34a4bb96..db67a5335 100644 --- a/tests/nodes/greater_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/greater_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp16x16_broadcast/input_1.cairo b/tests/nodes/greater_fp16x16_broadcast/input_1.cairo index 7e4a95f0b..1a7845d54 100644 --- a/tests/nodes/greater_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/greater_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +10,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp16x16_broadcast/output_0.cairo b/tests/nodes/greater_fp16x16_broadcast/output_0.cairo index 66356e88d..983d99cbd 100644 --- a/tests/nodes/greater_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/greater_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); + data.append(0); data.append(1); - data.append(1); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp8x23.cairo b/tests/nodes/greater_fp8x23.cairo index d67674cb4..235e35bb9 100644 --- a/tests/nodes/greater_fp8x23.cairo +++ b/tests/nodes/greater_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_fp8x23/input_0.cairo b/tests/nodes/greater_fp8x23/input_0.cairo index db84e47c5..ab05d7c9d 100644 --- a/tests/nodes/greater_fp8x23/input_0.cairo +++ b/tests/nodes/greater_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp8x23/input_1.cairo b/tests/nodes/greater_fp8x23/input_1.cairo index a7005bd49..583b859dd 100644 --- a/tests/nodes/greater_fp8x23/input_1.cairo +++ b/tests/nodes/greater_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp8x23/output_0.cairo b/tests/nodes/greater_fp8x23/output_0.cairo index e8d3597bd..2c4aa7864 100644 --- a/tests/nodes/greater_fp8x23/output_0.cairo +++ b/tests/nodes/greater_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); @@ -21,13 +21,13 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(1); - data.append(0); data.append(1); - data.append(0); data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(1); data.append(1); @@ -35,6 +35,6 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp8x23_broadcast.cairo b/tests/nodes/greater_fp8x23_broadcast.cairo index a2282273a..d7fa1d5a8 100644 --- a/tests/nodes/greater_fp8x23_broadcast.cairo +++ b/tests/nodes/greater_fp8x23_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_fp8x23_broadcast/input_0.cairo b/tests/nodes/greater_fp8x23_broadcast/input_0.cairo index 730c36016..a18362086 100644 --- a/tests/nodes/greater_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/greater_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp8x23_broadcast/input_1.cairo b/tests/nodes/greater_fp8x23_broadcast/input_1.cairo index 33263df32..2bb7abce1 100644 --- a/tests/nodes/greater_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/greater_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_fp8x23_broadcast/output_0.cairo b/tests/nodes/greater_fp8x23_broadcast/output_0.cairo index 5f2035f24..983d99cbd 100644 --- a/tests/nodes/greater_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/greater_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(0); - data.append(0); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i32.cairo b/tests/nodes/greater_i32.cairo index c0dac661d..4d1ce8975 100644 --- a/tests/nodes/greater_i32.cairo +++ b/tests/nodes/greater_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_i32/input_0.cairo b/tests/nodes/greater_i32/input_0.cairo index 0fede5882..c5a8c900a 100644 --- a/tests/nodes/greater_i32/input_0.cairo +++ b/tests/nodes/greater_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(-3); + data.append(0); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(2); + data.append(-1); + data.append(-3); + data.append(1); + data.append(-3); + data.append(2); + data.append(0); + data.append(-1); + data.append(1); + data.append(-1); + data.append(2); + data.append(1); + data.append(1); + data.append(-2); + data.append(2); + data.append(-1); + data.append(-2); + data.append(0); + data.append(-3); + data.append(-3); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i32/input_1.cairo b/tests/nodes/greater_i32/input_1.cairo index 3b485ba6a..7f2ac7cf6 100644 --- a/tests/nodes/greater_i32/input_1.cairo +++ b/tests/nodes/greater_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); + data.append(-1); + data.append(0); + data.append(-3); + data.append(1); + data.append(0); + data.append(0); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(-1); + data.append(2); + data.append(1); + data.append(2); + data.append(-3); + data.append(2); + data.append(2); + data.append(0); + data.append(2); + data.append(2); + data.append(0); + data.append(-3); + data.append(-1); + data.append(-3); + data.append(0); + data.append(-2); + data.append(1); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i32/output_0.cairo b/tests/nodes/greater_i32/output_0.cairo index fb7656dc0..5375527f6 100644 --- a/tests/nodes/greater_i32/output_0.cairo +++ b/tests/nodes/greater_i32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,30 +11,30 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(0); - data.append(0); data.append(1); data.append(0); data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(0); data.append(0); - data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); + data.append(0); data.append(1); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); - data.append(0); data.append(1); data.append(0); data.append(1); data.append(0); + data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i32_broadcast.cairo b/tests/nodes/greater_i32_broadcast.cairo index 8df600802..7ebe716df 100644 --- a/tests/nodes/greater_i32_broadcast.cairo +++ b/tests/nodes/greater_i32_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_i32_broadcast/input_0.cairo b/tests/nodes/greater_i32_broadcast/input_0.cairo index 6dafe7fed..ee130c085 100644 --- a/tests/nodes/greater_i32_broadcast/input_0.cairo +++ b/tests/nodes/greater_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(1); + data.append(0); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i32_broadcast/input_1.cairo b/tests/nodes/greater_i32_broadcast/input_1.cairo index 902cae30d..790fd4ff9 100644 --- a/tests/nodes/greater_i32_broadcast/input_1.cairo +++ b/tests/nodes/greater_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i32_broadcast/output_0.cairo b/tests/nodes/greater_i32_broadcast/output_0.cairo index 5991fffde..417a71252 100644 --- a/tests/nodes/greater_i32_broadcast/output_0.cairo +++ b/tests/nodes/greater_i32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(1); data.append(0); - data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i8.cairo b/tests/nodes/greater_i8.cairo index c6e6f53ec..1eec0cc13 100644 --- a/tests/nodes/greater_i8.cairo +++ b/tests/nodes/greater_i8.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_i8/input_0.cairo b/tests/nodes/greater_i8/input_0.cairo index 8a8773b46..0d74b0aee 100644 --- a/tests/nodes/greater_i8/input_0.cairo +++ b/tests/nodes/greater_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(1); + data.append(-2); + data.append(1); + data.append(-2); + data.append(-1); + data.append(1); + data.append(0); + data.append(-3); + data.append(-2); + data.append(2); + data.append(0); + data.append(-3); + data.append(-2); + data.append(2); + data.append(-1); + data.append(0); + data.append(-3); + data.append(1); + data.append(0); + data.append(-2); + data.append(0); + data.append(-3); + data.append(-2); + data.append(1); + data.append(1); + data.append(1); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i8/input_1.cairo b/tests/nodes/greater_i8/input_1.cairo index 2f55ab836..79831e085 100644 --- a/tests/nodes/greater_i8/input_1.cairo +++ b/tests/nodes/greater_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(-2); + data.append(0); + data.append(-1); + data.append(1); + data.append(1); + data.append(-1); + data.append(2); + data.append(2); + data.append(1); + data.append(1); + data.append(-2); + data.append(1); + data.append(-1); + data.append(-2); + data.append(1); + data.append(-1); + data.append(2); + data.append(1); + data.append(1); + data.append(-1); + data.append(2); + data.append(-1); + data.append(2); + data.append(-3); + data.append(2); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i8/output_0.cairo b/tests/nodes/greater_i8/output_0.cairo index 43460ce44..3864fbbe4 100644 --- a/tests/nodes/greater_i8/output_0.cairo +++ b/tests/nodes/greater_i8/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,20 +11,12 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(0); - data.append(0); data.append(1); data.append(0); - data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(0); data.append(1); data.append(0); @@ -32,9 +24,17 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); data.append(1); - data.append(1); + data.append(0); + data.append(0); + data.append(0); data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i8_broadcast.cairo b/tests/nodes/greater_i8_broadcast.cairo index f0ea676c8..c1acc3950 100644 --- a/tests/nodes/greater_i8_broadcast.cairo +++ b/tests/nodes/greater_i8_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_i8_broadcast/input_0.cairo b/tests/nodes/greater_i8_broadcast/input_0.cairo index 3943d537c..7fadef780 100644 --- a/tests/nodes/greater_i8_broadcast/input_0.cairo +++ b/tests/nodes/greater_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i8_broadcast/input_1.cairo b/tests/nodes/greater_i8_broadcast/input_1.cairo index c51fea406..2f8cf491d 100644 --- a/tests/nodes/greater_i8_broadcast/input_1.cairo +++ b/tests/nodes/greater_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(-3); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_i8_broadcast/output_0.cairo b/tests/nodes/greater_i8_broadcast/output_0.cairo index 5991fffde..d2fab9fd0 100644 --- a/tests/nodes/greater_i8_broadcast/output_0.cairo +++ b/tests/nodes/greater_i8_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); data.append(0); - data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_u32.cairo b/tests/nodes/greater_u32.cairo index 3f170092e..2eb538434 100644 --- a/tests/nodes/greater_u32.cairo +++ b/tests/nodes/greater_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_u32/input_0.cairo b/tests/nodes/greater_u32/input_0.cairo index fe30f5766..b2ec6068a 100644 --- a/tests/nodes/greater_u32/input_0.cairo +++ b/tests/nodes/greater_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); + data.append(4); + data.append(3); + data.append(3); data.append(5); + data.append(1); data.append(2); - data.append(0); + data.append(3); + data.append(1); data.append(5); + data.append(5); + data.append(5); + data.append(3); data.append(4); + data.append(0); data.append(2); - data.append(3); data.append(2); - data.append(3); + data.append(4); data.append(1); - data.append(0); data.append(2); - data.append(5); + data.append(2); data.append(0); - data.append(5); - data.append(4); - data.append(3); + data.append(1); data.append(3); - data.append(5); - data.append(0); + data.append(4); + data.append(4); data.append(3); data.append(5); - data.append(3); - data.append(1); - data.append(3); - data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_u32/input_1.cairo b/tests/nodes/greater_u32/input_1.cairo index 1ee85b9d5..2346c043c 100644 --- a/tests/nodes/greater_u32/input_1.cairo +++ b/tests/nodes/greater_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); + data.append(1); + data.append(4); data.append(0); - data.append(5); + data.append(2); + data.append(2); data.append(4); data.append(4); + data.append(1); data.append(0); data.append(0); - data.append(3); - data.append(5); - data.append(0); - data.append(3); + data.append(4); data.append(2); - data.append(3); - data.append(0); data.append(2); data.append(5); - data.append(5); - data.append(5); - data.append(0); + data.append(1); data.append(4); - data.append(2); + data.append(4); + data.append(1); data.append(5); data.append(5); - data.append(1); - data.append(0); + data.append(3); + data.append(3); data.append(2); - data.append(5); + data.append(4); + data.append(3); + data.append(3); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_u32/output_0.cairo b/tests/nodes/greater_u32/output_0.cairo index 9db256ca7..4ff4b7ffe 100644 --- a/tests/nodes/greater_u32/output_0.cairo +++ b/tests/nodes/greater_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); data.append(0); - data.append(0); - data.append(1); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_u32_broadcast.cairo b/tests/nodes/greater_u32_broadcast.cairo index 3ab016018..febcc1674 100644 --- a/tests/nodes/greater_u32_broadcast.cairo +++ b/tests/nodes/greater_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/greater_u32_broadcast/input_0.cairo b/tests/nodes/greater_u32_broadcast/input_0.cairo index a9d98723b..972de6b6b 100644 --- a/tests/nodes/greater_u32_broadcast/input_0.cairo +++ b/tests/nodes/greater_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(3); + data.append(4); data.append(5); - data.append(5); - data.append(3); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_u32_broadcast/input_1.cairo b/tests/nodes/greater_u32_broadcast/input_1.cairo index 331a82610..2831d01cc 100644 --- a/tests/nodes/greater_u32_broadcast/input_1.cairo +++ b/tests/nodes/greater_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(5); - data.append(4); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/greater_u32_broadcast/output_0.cairo b/tests/nodes/greater_u32_broadcast/output_0.cairo index 6a5b87888..7e2cee38d 100644 --- a/tests/nodes/greater_u32_broadcast/output_0.cairo +++ b/tests/nodes/greater_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); data.append(1); data.append(0); data.append(0); diff --git a/tests/nodes/hard_sigmoid_fp16x16.cairo b/tests/nodes/hard_sigmoid_fp16x16.cairo index e6293a929..8a8f8672a 100644 --- a/tests/nodes/hard_sigmoid_fp16x16.cairo +++ b/tests/nodes/hard_sigmoid_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; -use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] @@ -14,9 +14,7 @@ fn test_hard_sigmoid_fp16x16() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = NNTrait::hard_sigmoid( - @input_0, @FixedTrait::new(13107, false), @FixedTrait::new(32768, false) - ); + let y = NNTrait::hard_sigmoid(@input_0, @FixedTrait::new(13107, false), @FixedTrait::new(32768, false)); assert_eq(y, z); } diff --git a/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo b/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo index 2a094e84c..ce584f5c3 100644 --- a/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo +++ b/tests/nodes/hard_sigmoid_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 35866, sign: true }); - data.append(FP16x16 { mag: 152077, sign: false }); - data.append(FP16x16 { mag: 17807, sign: true }); - data.append(FP16x16 { mag: 93701, sign: false }); + data.append(FP16x16 { mag: 163137, sign: false }); + data.append(FP16x16 { mag: 109300, sign: true }); + data.append(FP16x16 { mag: 28237, sign: false }); + data.append(FP16x16 { mag: 20376, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo b/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo index b8a91a7bb..9f3b43666 100644 --- a/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo +++ b/tests/nodes/hard_sigmoid_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 25594, sign: false }); - data.append(FP16x16 { mag: 63183, sign: false }); - data.append(FP16x16 { mag: 29206, sign: false }); - data.append(FP16x16 { mag: 51508, sign: false }); + data.append(FP16x16 { mag: 65395, sign: false }); + data.append(FP16x16 { mag: 10907, sign: false }); + data.append(FP16x16 { mag: 38415, sign: false }); + data.append(FP16x16 { mag: 28692, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/hard_sigmoid_fp8x23.cairo b/tests/nodes/hard_sigmoid_fp8x23.cairo index df7312259..317c25425 100644 --- a/tests/nodes/hard_sigmoid_fp8x23.cairo +++ b/tests/nodes/hard_sigmoid_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::nn::FP8x23NN; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; -use orion::operators::nn::FP8x23NN; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -14,9 +14,7 @@ fn test_hard_sigmoid_fp8x23() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = NNTrait::hard_sigmoid( - @input_0, @FixedTrait::new(1677721, false), @FixedTrait::new(4194304, false) - ); + let y = NNTrait::hard_sigmoid(@input_0, @FixedTrait::new(1677721, false), @FixedTrait::new(4194304, false)); assert_eq(y, z); } diff --git a/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo b/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo index 03b9af996..f3864c4be 100644 --- a/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo +++ b/tests/nodes/hard_sigmoid_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 12689105, sign: true }); - data.append(FP8x23 { mag: 6909640, sign: false }); - data.append(FP8x23 { mag: 13798595, sign: true }); - data.append(FP8x23 { mag: 9114792, sign: true }); + data.append(FP8x23 { mag: 1488696, sign: true }); + data.append(FP8x23 { mag: 14193978, sign: true }); + data.append(FP8x23 { mag: 23668532, sign: true }); + data.append(FP8x23 { mag: 19142362, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo b/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo index 2deedd4b9..df000b815 100644 --- a/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo +++ b/tests/nodes/hard_sigmoid_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1656483, sign: false }); - data.append(FP8x23 { mag: 5576232, sign: false }); - data.append(FP8x23 { mag: 1434585, sign: false }); - data.append(FP8x23 { mag: 2371345, sign: false }); + data.append(FP8x23 { mag: 3896564, sign: false }); + data.append(FP8x23 { mag: 1355508, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8022776, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/identity_fP16x16.cairo b/tests/nodes/identity_fP16x16.cairo index 448a029f5..5120726ab 100644 --- a/tests/nodes/identity_fP16x16.cairo +++ b/tests/nodes/identity_fP16x16.cairo @@ -1,11 +1,12 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; + +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/identity_fP16x16/input_0.cairo b/tests/nodes/identity_fP16x16/input_0.cairo index be028fbab..9c32039d0 100644 --- a/tests/nodes/identity_fP16x16/input_0.cairo +++ b/tests/nodes/identity_fP16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/identity_fP16x16/output_0.cairo b/tests/nodes/identity_fP16x16/output_0.cairo index 1cb9fc882..868166811 100644 --- a/tests/nodes/identity_fP16x16/output_0.cairo +++ b/tests/nodes/identity_fP16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/identity_fP8x23.cairo b/tests/nodes/identity_fP8x23.cairo index 55fa92a01..87cc7a89f 100644 --- a/tests/nodes/identity_fP8x23.cairo +++ b/tests/nodes/identity_fP8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/identity_fP8x23/input_0.cairo b/tests/nodes/identity_fP8x23/input_0.cairo index 19764c2d3..4d7f1fd46 100644 --- a/tests/nodes/identity_fP8x23/input_0.cairo +++ b/tests/nodes/identity_fP8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/identity_fP8x23/output_0.cairo b/tests/nodes/identity_fP8x23/output_0.cairo index c92690f6f..4dcd25fa0 100644 --- a/tests/nodes/identity_fP8x23/output_0.cairo +++ b/tests/nodes/identity_fP8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/identity_i32.cairo b/tests/nodes/identity_i32.cairo index 44396f29c..4171f88f9 100644 --- a/tests/nodes/identity_i32.cairo +++ b/tests/nodes/identity_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/identity_i32/input_0.cairo b/tests/nodes/identity_i32/input_0.cairo index c6da77722..790ca9a2d 100644 --- a/tests/nodes/identity_i32/input_0.cairo +++ b/tests/nodes/identity_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/identity_i32/output_0.cairo b/tests/nodes/identity_i32/output_0.cairo index 3470023c2..4ed877841 100644 --- a/tests/nodes/identity_i32/output_0.cairo +++ b/tests/nodes/identity_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/identity_i8.cairo b/tests/nodes/identity_i8.cairo index 00584d028..c75bb5854 100644 --- a/tests/nodes/identity_i8.cairo +++ b/tests/nodes/identity_i8.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/identity_i8/input_0.cairo b/tests/nodes/identity_i8/input_0.cairo index 39f8f4878..eb0415c93 100644 --- a/tests/nodes/identity_i8/input_0.cairo +++ b/tests/nodes/identity_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/identity_i8/output_0.cairo b/tests/nodes/identity_i8/output_0.cairo index 5da3d2515..07c6c44c8 100644 --- a/tests/nodes/identity_i8/output_0.cairo +++ b/tests/nodes/identity_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/identity_u32.cairo b/tests/nodes/identity_u32.cairo index 22a57dc1e..f0c8cbb46 100644 --- a/tests/nodes/identity_u32.cairo +++ b/tests/nodes/identity_u32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/identity_u32/input_0.cairo b/tests/nodes/identity_u32/input_0.cairo index 6bd55636d..40dffeb12 100644 --- a/tests/nodes/identity_u32/input_0.cairo +++ b/tests/nodes/identity_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/identity_u32/output_0.cairo b/tests/nodes/identity_u32/output_0.cairo index d6c564a09..6fa8dccfb 100644 --- a/tests/nodes/identity_u32/output_0.cairo +++ b/tests/nodes/identity_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/is_inf_fp16x16.cairo b/tests/nodes/is_inf_fp16x16.cairo index 14b40bc70..d09a4a6f8 100644 --- a/tests/nodes/is_inf_fp16x16.cairo +++ b/tests/nodes/is_inf_fp16x16.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_inf_fp16x16/input_0.cairo b/tests/nodes/is_inf_fp16x16/input_0.cairo index d186b795c..439f44bf1 100644 --- a/tests/nodes/is_inf_fp16x16/input_0.cairo +++ b/tests/nodes/is_inf_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/is_inf_fp8x23.cairo b/tests/nodes/is_inf_fp8x23.cairo index 065bce555..a65951dd7 100644 --- a/tests/nodes/is_inf_fp8x23.cairo +++ b/tests/nodes/is_inf_fp8x23.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_inf_fp8x23/input_0.cairo b/tests/nodes/is_inf_fp8x23/input_0.cairo index 68da15efd..29b4c52e7 100644 --- a/tests/nodes/is_inf_fp8x23/input_0.cairo +++ b/tests/nodes/is_inf_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/is_inf_i32.cairo b/tests/nodes/is_inf_i32.cairo index 4fbda80b2..3dd3b234d 100644 --- a/tests/nodes/is_inf_i32.cairo +++ b/tests/nodes/is_inf_i32.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::BoolTensorPartialEq; -use orion::operators::tensor::I32Tensor; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_inf_i32/input_0.cairo b/tests/nodes/is_inf_i32/input_0.cairo index 3fec998f5..7b44e2c7c 100644 --- a/tests/nodes/is_inf_i32/input_0.cairo +++ b/tests/nodes/is_inf_i32/input_0.cairo @@ -1,18 +1,18 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::{NumberTrait}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(IntegerTrait::NEG_INF()); - data.append(i32 { mag: 8, sign: false }); - data.append(IntegerTrait::POS_INF()); - data.append(IntegerTrait::NEG_INF()); + data.append(-1); + data.append(0); + data.append(NumberTrait::INF()); + data.append(8); + data.append(NumberTrait::INF() * -1); + data.append(NumberTrait::INF()); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_inf_i8.cairo b/tests/nodes/is_inf_i8.cairo index 7d665562c..251e01480 100644 --- a/tests/nodes/is_inf_i8.cairo +++ b/tests/nodes/is_inf_i8.cairo @@ -2,12 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::BoolTensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I8TensorPartialEq; #[test] diff --git a/tests/nodes/is_inf_i8/input_0.cairo b/tests/nodes/is_inf_i8/input_0.cairo index dfed54f82..e9af358c2 100644 --- a/tests/nodes/is_inf_i8/input_0.cairo +++ b/tests/nodes/is_inf_i8/input_0.cairo @@ -1,18 +1,18 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::{NumberTrait}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(IntegerTrait::NEG_INF()); - data.append(i8 { mag: 8, sign: false }); - data.append(IntegerTrait::POS_INF()); - data.append(IntegerTrait::NEG_INF()); + data.append(-1); + data.append(0); + data.append(NumberTrait::INF()); + data.append(8); + data.append(NumberTrait::INF() * -1); + data.append(NumberTrait::INF()); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_inf_u32.cairo b/tests/nodes/is_inf_u32.cairo index 4fceb67ad..21cd1a9fc 100644 --- a/tests/nodes/is_inf_u32.cairo +++ b/tests/nodes/is_inf_u32.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::BoolTensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_inf_u32/input_0.cairo b/tests/nodes/is_inf_u32/input_0.cairo index ff38cb066..a7bc9ea61 100644 --- a/tests/nodes/is_inf_u32/input_0.cairo +++ b/tests/nodes/is_inf_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; use orion::numbers::NumberTrait; fn input_0() -> Tensor { diff --git a/tests/nodes/is_nan_fp16x16.cairo b/tests/nodes/is_nan_fp16x16.cairo index 14f8269c1..4b5de16f4 100644 --- a/tests/nodes/is_nan_fp16x16.cairo +++ b/tests/nodes/is_nan_fp16x16.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::BoolTensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::BoolTensor; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::BoolTensorPartialEq; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_nan_fp16x16/input_0.cairo b/tests/nodes/is_nan_fp16x16/input_0.cairo index b7ff36a92..576456503 100644 --- a/tests/nodes/is_nan_fp16x16/input_0.cairo +++ b/tests/nodes/is_nan_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -15,4 +15,4 @@ fn input_0() -> Tensor { data.append(FixedTrait::NaN()); data.append(FixedTrait::NaN()); TensorTrait::new(shape.span(), data.span()) -} +} \ No newline at end of file diff --git a/tests/nodes/is_nan_fp8x23.cairo b/tests/nodes/is_nan_fp8x23.cairo index bbfc883a9..7f1d9682b 100644 --- a/tests/nodes/is_nan_fp8x23.cairo +++ b/tests/nodes/is_nan_fp8x23.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::BoolTensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::BoolTensor; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::BoolTensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_nan_fp8x23/input_0.cairo b/tests/nodes/is_nan_fp8x23/input_0.cairo index 97c45ac8f..9dadb488f 100644 --- a/tests/nodes/is_nan_fp8x23/input_0.cairo +++ b/tests/nodes/is_nan_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/is_neg_inf_fp16x16.cairo b/tests/nodes/is_neg_inf_fp16x16.cairo index d0096bf54..99417cdae 100644 --- a/tests/nodes/is_neg_inf_fp16x16.cairo +++ b/tests/nodes/is_neg_inf_fp16x16.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_neg_inf_fp16x16/input_0.cairo b/tests/nodes/is_neg_inf_fp16x16/input_0.cairo index d575773d6..3da48092e 100644 --- a/tests/nodes/is_neg_inf_fp16x16/input_0.cairo +++ b/tests/nodes/is_neg_inf_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/is_neg_inf_fp8x23.cairo b/tests/nodes/is_neg_inf_fp8x23.cairo index de6e66b23..fd053abab 100644 --- a/tests/nodes/is_neg_inf_fp8x23.cairo +++ b/tests/nodes/is_neg_inf_fp8x23.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_neg_inf_fp8x23/input_0.cairo b/tests/nodes/is_neg_inf_fp8x23/input_0.cairo index b458676a1..9b60362be 100644 --- a/tests/nodes/is_neg_inf_fp8x23/input_0.cairo +++ b/tests/nodes/is_neg_inf_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/is_neg_inf_i32.cairo b/tests/nodes/is_neg_inf_i32.cairo index 91119510a..4cdad3051 100644 --- a/tests/nodes/is_neg_inf_i32.cairo +++ b/tests/nodes/is_neg_inf_i32.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::BoolTensorPartialEq; -use orion::operators::tensor::I32Tensor; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_neg_inf_i32/input_0.cairo b/tests/nodes/is_neg_inf_i32/input_0.cairo index 3fec998f5..7b44e2c7c 100644 --- a/tests/nodes/is_neg_inf_i32/input_0.cairo +++ b/tests/nodes/is_neg_inf_i32/input_0.cairo @@ -1,18 +1,18 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::{NumberTrait}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(IntegerTrait::NEG_INF()); - data.append(i32 { mag: 8, sign: false }); - data.append(IntegerTrait::POS_INF()); - data.append(IntegerTrait::NEG_INF()); + data.append(-1); + data.append(0); + data.append(NumberTrait::INF()); + data.append(8); + data.append(NumberTrait::INF() * -1); + data.append(NumberTrait::INF()); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_neg_inf_i32/output_0.cairo b/tests/nodes/is_neg_inf_i32/output_0.cairo index 08be59d64..0e3c52449 100644 --- a/tests/nodes/is_neg_inf_i32/output_0.cairo +++ b/tests/nodes/is_neg_inf_i32/output_0.cairo @@ -9,9 +9,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(false); data.append(false); - data.append(true); data.append(false); data.append(false); data.append(true); + data.append(false); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_neg_inf_i8.cairo b/tests/nodes/is_neg_inf_i8.cairo index 937f27d52..3bde58b79 100644 --- a/tests/nodes/is_neg_inf_i8.cairo +++ b/tests/nodes/is_neg_inf_i8.cairo @@ -2,12 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::BoolTensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I8TensorPartialEq; #[test] diff --git a/tests/nodes/is_neg_inf_i8/input_0.cairo b/tests/nodes/is_neg_inf_i8/input_0.cairo index dfed54f82..e9af358c2 100644 --- a/tests/nodes/is_neg_inf_i8/input_0.cairo +++ b/tests/nodes/is_neg_inf_i8/input_0.cairo @@ -1,18 +1,18 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::{NumberTrait}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(IntegerTrait::NEG_INF()); - data.append(i8 { mag: 8, sign: false }); - data.append(IntegerTrait::POS_INF()); - data.append(IntegerTrait::NEG_INF()); + data.append(-1); + data.append(0); + data.append(NumberTrait::INF()); + data.append(8); + data.append(NumberTrait::INF() * -1); + data.append(NumberTrait::INF()); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_neg_inf_i8/output_0.cairo b/tests/nodes/is_neg_inf_i8/output_0.cairo index 08be59d64..0e3c52449 100644 --- a/tests/nodes/is_neg_inf_i8/output_0.cairo +++ b/tests/nodes/is_neg_inf_i8/output_0.cairo @@ -9,9 +9,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(false); data.append(false); - data.append(true); data.append(false); data.append(false); data.append(true); + data.append(false); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_pos_inf_fp16x16.cairo b/tests/nodes/is_pos_inf_fp16x16.cairo index aa3eb2e1b..2d669088c 100644 --- a/tests/nodes/is_pos_inf_fp16x16.cairo +++ b/tests/nodes/is_pos_inf_fp16x16.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_pos_inf_fp16x16/input_0.cairo b/tests/nodes/is_pos_inf_fp16x16/input_0.cairo index d575773d6..68441d517 100644 --- a/tests/nodes/is_pos_inf_fp16x16/input_0.cairo +++ b/tests/nodes/is_pos_inf_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,9 +10,9 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 1, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FixedTrait::POS_INF()); + data.append(FP16x16 { mag: 4294967295, sign: false }); data.append(FP16x16 { mag: 2, sign: false }); - data.append(FixedTrait::NEG_INF()); - data.append(FixedTrait::POS_INF()); + data.append(FP16x16 { mag: 4294967295, sign: true }); + data.append(FP16x16 { mag: 4294967295, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_pos_inf_fp8x23.cairo b/tests/nodes/is_pos_inf_fp8x23.cairo index 43fa59e37..85f70322a 100644 --- a/tests/nodes/is_pos_inf_fp8x23.cairo +++ b/tests/nodes/is_pos_inf_fp8x23.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::BoolTensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_pos_inf_fp8x23/input_0.cairo b/tests/nodes/is_pos_inf_fp8x23/input_0.cairo index b458676a1..cc50787fb 100644 --- a/tests/nodes/is_pos_inf_fp8x23/input_0.cairo +++ b/tests/nodes/is_pos_inf_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -10,9 +10,9 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 1, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FixedTrait::POS_INF()); + data.append(FP8x23 { mag: 4294967295, sign: false }); data.append(FP8x23 { mag: 2, sign: false }); - data.append(FixedTrait::NEG_INF()); - data.append(FixedTrait::POS_INF()); + data.append(FP8x23 { mag: 4294967295, sign: true }); + data.append(FP8x23 { mag: 4294967295, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_pos_inf_i32.cairo b/tests/nodes/is_pos_inf_i32.cairo index ab388b941..35eea6426 100644 --- a/tests/nodes/is_pos_inf_i32.cairo +++ b/tests/nodes/is_pos_inf_i32.cairo @@ -2,13 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::BoolTensorPartialEq; -use orion::operators::tensor::I32Tensor; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/is_pos_inf_i32/input_0.cairo b/tests/nodes/is_pos_inf_i32/input_0.cairo index 3fec998f5..7b44e2c7c 100644 --- a/tests/nodes/is_pos_inf_i32/input_0.cairo +++ b/tests/nodes/is_pos_inf_i32/input_0.cairo @@ -1,18 +1,18 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::{NumberTrait}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(IntegerTrait::NEG_INF()); - data.append(i32 { mag: 8, sign: false }); - data.append(IntegerTrait::POS_INF()); - data.append(IntegerTrait::NEG_INF()); + data.append(-1); + data.append(0); + data.append(NumberTrait::INF()); + data.append(8); + data.append(NumberTrait::INF() * -1); + data.append(NumberTrait::INF()); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_pos_inf_i32/output_0.cairo b/tests/nodes/is_pos_inf_i32/output_0.cairo index 0e3c52449..08be59d64 100644 --- a/tests/nodes/is_pos_inf_i32/output_0.cairo +++ b/tests/nodes/is_pos_inf_i32/output_0.cairo @@ -9,9 +9,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(false); data.append(false); + data.append(true); data.append(false); data.append(false); data.append(true); - data.append(false); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_pos_inf_i8.cairo b/tests/nodes/is_pos_inf_i8.cairo index 552ced787..5dc40cce1 100644 --- a/tests/nodes/is_pos_inf_i8.cairo +++ b/tests/nodes/is_pos_inf_i8.cairo @@ -2,12 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::BoolTensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::BoolTensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::BoolTensor; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::BoolTensorPartialEq; use orion::operators::tensor::I8TensorPartialEq; #[test] diff --git a/tests/nodes/is_pos_inf_i8/input_0.cairo b/tests/nodes/is_pos_inf_i8/input_0.cairo index dfed54f82..e9af358c2 100644 --- a/tests/nodes/is_pos_inf_i8/input_0.cairo +++ b/tests/nodes/is_pos_inf_i8/input_0.cairo @@ -1,18 +1,18 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::{NumberTrait}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(IntegerTrait::NEG_INF()); - data.append(i8 { mag: 8, sign: false }); - data.append(IntegerTrait::POS_INF()); - data.append(IntegerTrait::NEG_INF()); + data.append(-1); + data.append(0); + data.append(NumberTrait::INF()); + data.append(8); + data.append(NumberTrait::INF() * -1); + data.append(NumberTrait::INF()); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/is_pos_inf_i8/output_0.cairo b/tests/nodes/is_pos_inf_i8/output_0.cairo index 0e3c52449..08be59d64 100644 --- a/tests/nodes/is_pos_inf_i8/output_0.cairo +++ b/tests/nodes/is_pos_inf_i8/output_0.cairo @@ -9,9 +9,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(false); data.append(false); + data.append(true); data.append(false); data.append(false); data.append(true); - data.append(false); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis0_epsilon.cairo b/tests/nodes/layer_normalization_3d_axis0_epsilon.cairo index 9f0a27f1a..6931c44ec 100644 --- a/tests/nodes/layer_normalization_3d_axis0_epsilon.cairo +++ b/tests/nodes/layer_normalization_3d_axis0_epsilon.cairo @@ -4,13 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; - -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -20,14 +19,7 @@ fn test_layer_normalization_3d_axis0_epsilon() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(0, false)), - Option::Some(FixedTrait::new(6554, false)), - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(0),Option::Some(FixedTrait::new(6554, false)),Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_3d_axis0_epsilon/input_0.cairo b/tests/nodes/layer_normalization_3d_axis0_epsilon/input_0.cairo index 2f4da77ea..a06bdacb4 100644 --- a/tests/nodes/layer_normalization_3d_axis0_epsilon/input_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis0_epsilon/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,35 +10,35 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 73220, sign: false }); - data.append(FP16x16 { mag: 15621, sign: false }); - data.append(FP16x16 { mag: 26862, sign: true }); - data.append(FP16x16 { mag: 63971, sign: false }); - data.append(FP16x16 { mag: 64826, sign: false }); - data.append(FP16x16 { mag: 18837, sign: false }); - data.append(FP16x16 { mag: 66021, sign: true }); - data.append(FP16x16 { mag: 42181, sign: true }); - data.append(FP16x16 { mag: 69342, sign: true }); - data.append(FP16x16 { mag: 72001, sign: true }); - data.append(FP16x16 { mag: 99818, sign: true }); - data.append(FP16x16 { mag: 63088, sign: false }); - data.append(FP16x16 { mag: 17845, sign: true }); - data.append(FP16x16 { mag: 37020, sign: true }); - data.append(FP16x16 { mag: 20567, sign: false }); - data.append(FP16x16 { mag: 1924, sign: true }); - data.append(FP16x16 { mag: 13154, sign: true }); - data.append(FP16x16 { mag: 88735, sign: false }); - data.append(FP16x16 { mag: 40464, sign: false }); - data.append(FP16x16 { mag: 96907, sign: false }); - data.append(FP16x16 { mag: 79699, sign: false }); - data.append(FP16x16 { mag: 91862, sign: true }); - data.append(FP16x16 { mag: 97396, sign: false }); - data.append(FP16x16 { mag: 23929, sign: false }); - data.append(FP16x16 { mag: 11785, sign: true }); - data.append(FP16x16 { mag: 7747, sign: false }); - data.append(FP16x16 { mag: 91889, sign: true }); - data.append(FP16x16 { mag: 16735, sign: true }); - data.append(FP16x16 { mag: 120303, sign: true }); - data.append(FP16x16 { mag: 116144, sign: false }); + data.append(FP16x16 { mag: 176084, sign: true }); + data.append(FP16x16 { mag: 134870, sign: false }); + data.append(FP16x16 { mag: 11194, sign: true }); + data.append(FP16x16 { mag: 34834, sign: true }); + data.append(FP16x16 { mag: 6625, sign: true }); + data.append(FP16x16 { mag: 99311, sign: true }); + data.append(FP16x16 { mag: 84659, sign: true }); + data.append(FP16x16 { mag: 37723, sign: false }); + data.append(FP16x16 { mag: 78508, sign: true }); + data.append(FP16x16 { mag: 31024, sign: false }); + data.append(FP16x16 { mag: 72988, sign: true }); + data.append(FP16x16 { mag: 9818, sign: true }); + data.append(FP16x16 { mag: 34996, sign: false }); + data.append(FP16x16 { mag: 87265, sign: true }); + data.append(FP16x16 { mag: 45795, sign: true }); + data.append(FP16x16 { mag: 45583, sign: true }); + data.append(FP16x16 { mag: 10423, sign: true }); + data.append(FP16x16 { mag: 71376, sign: true }); + data.append(FP16x16 { mag: 31238, sign: true }); + data.append(FP16x16 { mag: 84702, sign: false }); + data.append(FP16x16 { mag: 18617, sign: true }); + data.append(FP16x16 { mag: 90788, sign: false }); + data.append(FP16x16 { mag: 32546, sign: true }); + data.append(FP16x16 { mag: 43302, sign: true }); + data.append(FP16x16 { mag: 90009, sign: true }); + data.append(FP16x16 { mag: 19958, sign: true }); + data.append(FP16x16 { mag: 161585, sign: false }); + data.append(FP16x16 { mag: 40607, sign: false }); + data.append(FP16x16 { mag: 34601, sign: true }); + data.append(FP16x16 { mag: 7286, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis0_epsilon/input_1.cairo b/tests/nodes/layer_normalization_3d_axis0_epsilon/input_1.cairo index f169c9adb..76e54b916 100644 --- a/tests/nodes/layer_normalization_3d_axis0_epsilon/input_1.cairo +++ b/tests/nodes/layer_normalization_3d_axis0_epsilon/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -10,35 +10,35 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 53884, sign: false }); - data.append(FP16x16 { mag: 80807, sign: true }); - data.append(FP16x16 { mag: 17881, sign: true }); - data.append(FP16x16 { mag: 18476, sign: true }); - data.append(FP16x16 { mag: 36283, sign: true }); - data.append(FP16x16 { mag: 61330, sign: true }); - data.append(FP16x16 { mag: 41039, sign: false }); - data.append(FP16x16 { mag: 82065, sign: false }); - data.append(FP16x16 { mag: 45401, sign: false }); - data.append(FP16x16 { mag: 128118, sign: true }); - data.append(FP16x16 { mag: 214898, sign: true }); - data.append(FP16x16 { mag: 16418, sign: false }); - data.append(FP16x16 { mag: 82143, sign: false }); - data.append(FP16x16 { mag: 573, sign: true }); - data.append(FP16x16 { mag: 48898, sign: false }); - data.append(FP16x16 { mag: 14511, sign: false }); - data.append(FP16x16 { mag: 11366, sign: false }); - data.append(FP16x16 { mag: 53881, sign: false }); - data.append(FP16x16 { mag: 27317, sign: true }); - data.append(FP16x16 { mag: 88557, sign: false }); - data.append(FP16x16 { mag: 14203, sign: false }); - data.append(FP16x16 { mag: 1404, sign: true }); - data.append(FP16x16 { mag: 30266, sign: false }); - data.append(FP16x16 { mag: 83574, sign: true }); - data.append(FP16x16 { mag: 82692, sign: false }); - data.append(FP16x16 { mag: 86496, sign: false }); - data.append(FP16x16 { mag: 101363, sign: true }); - data.append(FP16x16 { mag: 30107, sign: true }); - data.append(FP16x16 { mag: 40283, sign: true }); - data.append(FP16x16 { mag: 54260, sign: true }); + data.append(FP16x16 { mag: 41116, sign: true }); + data.append(FP16x16 { mag: 33345, sign: false }); + data.append(FP16x16 { mag: 16035, sign: true }); + data.append(FP16x16 { mag: 66324, sign: true }); + data.append(FP16x16 { mag: 65521, sign: false }); + data.append(FP16x16 { mag: 44567, sign: false }); + data.append(FP16x16 { mag: 12343, sign: true }); + data.append(FP16x16 { mag: 22182, sign: false }); + data.append(FP16x16 { mag: 68006, sign: false }); + data.append(FP16x16 { mag: 18564, sign: true }); + data.append(FP16x16 { mag: 159060, sign: true }); + data.append(FP16x16 { mag: 41449, sign: false }); + data.append(FP16x16 { mag: 21502, sign: true }); + data.append(FP16x16 { mag: 23583, sign: true }); + data.append(FP16x16 { mag: 10004, sign: true }); + data.append(FP16x16 { mag: 111077, sign: true }); + data.append(FP16x16 { mag: 51023, sign: true }); + data.append(FP16x16 { mag: 27845, sign: false }); + data.append(FP16x16 { mag: 548, sign: false }); + data.append(FP16x16 { mag: 51940, sign: true }); + data.append(FP16x16 { mag: 4135, sign: false }); + data.append(FP16x16 { mag: 77167, sign: false }); + data.append(FP16x16 { mag: 27642, sign: true }); + data.append(FP16x16 { mag: 50063, sign: true }); + data.append(FP16x16 { mag: 60555, sign: true }); + data.append(FP16x16 { mag: 34923, sign: true }); + data.append(FP16x16 { mag: 66185, sign: false }); + data.append(FP16x16 { mag: 1845, sign: true }); + data.append(FP16x16 { mag: 63811, sign: true }); + data.append(FP16x16 { mag: 30524, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis0_epsilon/input_2.cairo b/tests/nodes/layer_normalization_3d_axis0_epsilon/input_2.cairo index 68ddc02f9..41dc10716 100644 --- a/tests/nodes/layer_normalization_3d_axis0_epsilon/input_2.cairo +++ b/tests/nodes/layer_normalization_3d_axis0_epsilon/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -10,35 +10,35 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 12782, sign: true }); - data.append(FP16x16 { mag: 34829, sign: true }); - data.append(FP16x16 { mag: 85769, sign: true }); - data.append(FP16x16 { mag: 76891, sign: true }); - data.append(FP16x16 { mag: 52049, sign: true }); - data.append(FP16x16 { mag: 129289, sign: true }); - data.append(FP16x16 { mag: 92309, sign: true }); - data.append(FP16x16 { mag: 48090, sign: true }); - data.append(FP16x16 { mag: 1390, sign: false }); - data.append(FP16x16 { mag: 10093, sign: true }); - data.append(FP16x16 { mag: 6373, sign: true }); - data.append(FP16x16 { mag: 91002, sign: true }); - data.append(FP16x16 { mag: 9698, sign: false }); - data.append(FP16x16 { mag: 103992, sign: true }); - data.append(FP16x16 { mag: 26897, sign: true }); - data.append(FP16x16 { mag: 67478, sign: true }); - data.append(FP16x16 { mag: 5546, sign: false }); - data.append(FP16x16 { mag: 55870, sign: true }); - data.append(FP16x16 { mag: 35113, sign: true }); - data.append(FP16x16 { mag: 267167, sign: true }); - data.append(FP16x16 { mag: 51438, sign: true }); - data.append(FP16x16 { mag: 13667, sign: false }); - data.append(FP16x16 { mag: 17845, sign: false }); - data.append(FP16x16 { mag: 92263, sign: false }); - data.append(FP16x16 { mag: 114550, sign: true }); - data.append(FP16x16 { mag: 31510, sign: false }); - data.append(FP16x16 { mag: 24263, sign: true }); - data.append(FP16x16 { mag: 68737, sign: true }); - data.append(FP16x16 { mag: 61297, sign: true }); - data.append(FP16x16 { mag: 33386, sign: false }); + data.append(FP16x16 { mag: 53067, sign: false }); + data.append(FP16x16 { mag: 12598, sign: false }); + data.append(FP16x16 { mag: 22071, sign: true }); + data.append(FP16x16 { mag: 185160, sign: true }); + data.append(FP16x16 { mag: 71946, sign: true }); + data.append(FP16x16 { mag: 109757, sign: false }); + data.append(FP16x16 { mag: 53829, sign: true }); + data.append(FP16x16 { mag: 61215, sign: true }); + data.append(FP16x16 { mag: 112863, sign: false }); + data.append(FP16x16 { mag: 64576, sign: true }); + data.append(FP16x16 { mag: 14400, sign: true }); + data.append(FP16x16 { mag: 47376, sign: false }); + data.append(FP16x16 { mag: 42132, sign: false }); + data.append(FP16x16 { mag: 15521, sign: true }); + data.append(FP16x16 { mag: 19564, sign: false }); + data.append(FP16x16 { mag: 17481, sign: true }); + data.append(FP16x16 { mag: 1740, sign: true }); + data.append(FP16x16 { mag: 111657, sign: false }); + data.append(FP16x16 { mag: 112934, sign: false }); + data.append(FP16x16 { mag: 19870, sign: true }); + data.append(FP16x16 { mag: 122950, sign: true }); + data.append(FP16x16 { mag: 92754, sign: false }); + data.append(FP16x16 { mag: 3247, sign: false }); + data.append(FP16x16 { mag: 74346, sign: true }); + data.append(FP16x16 { mag: 98767, sign: false }); + data.append(FP16x16 { mag: 8702, sign: true }); + data.append(FP16x16 { mag: 40643, sign: true }); + data.append(FP16x16 { mag: 138135, sign: true }); + data.append(FP16x16 { mag: 22240, sign: false }); + data.append(FP16x16 { mag: 1595, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis0_epsilon/output_0.cairo b/tests/nodes/layer_normalization_3d_axis0_epsilon/output_0.cairo index 8ff9e98aa..18e146884 100644 --- a/tests/nodes/layer_normalization_3d_axis0_epsilon/output_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis0_epsilon/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,35 +10,35 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 42429, sign: false }); - data.append(FP16x16 { mag: 49634, sign: true }); - data.append(FP16x16 { mag: 77948, sign: true }); - data.append(FP16x16 { mag: 93325, sign: true }); - data.append(FP16x16 { mag: 84777, sign: true }); - data.append(FP16x16 { mag: 143407, sign: true }); - data.append(FP16x16 { mag: 133737, sign: true }); - data.append(FP16x16 { mag: 102353, sign: true }); - data.append(FP16x16 { mag: 46642, sign: true }); - data.append(FP16x16 { mag: 130431, sign: false }); - data.append(FP16x16 { mag: 316659, sign: false }); - data.append(FP16x16 { mag: 76609, sign: true }); - data.append(FP16x16 { mag: 15411, sign: true }); - data.append(FP16x16 { mag: 103656, sign: true }); - data.append(FP16x16 { mag: 14405, sign: true }); - data.append(FP16x16 { mag: 68539, sign: true }); - data.append(FP16x16 { mag: 2850, sign: false }); - data.append(FP16x16 { mag: 11550, sign: false }); - data.append(FP16x16 { mag: 50032, sign: true }); - data.append(FP16x16 { mag: 145784, sign: true }); - data.append(FP16x16 { mag: 35540, sign: true }); - data.append(FP16x16 { mag: 15615, sign: false }); - data.append(FP16x16 { mag: 59548, sign: false }); - data.append(FP16x16 { mag: 66808, sign: false }); - data.append(FP16x16 { mag: 132508, sign: true }); - data.append(FP16x16 { mag: 37408, sign: false }); - data.append(FP16x16 { mag: 116363, sign: false }); - data.append(FP16x16 { mag: 60021, sign: true }); - data.append(FP16x16 { mag: 11310, sign: false }); - data.append(FP16x16 { mag: 56233, sign: true }); + data.append(FP16x16 { mag: 142574, sign: false }); + data.append(FP16x16 { mag: 81046, sign: false }); + data.append(FP16x16 { mag: 23127, sign: true }); + data.append(FP16x16 { mag: 168203, sign: true }); + data.append(FP16x16 { mag: 63557, sign: true }); + data.append(FP16x16 { mag: 59277, sign: false }); + data.append(FP16x16 { mag: 42308, sign: true }); + data.append(FP16x16 { mag: 44993, sign: true }); + data.append(FP16x16 { mag: 55077, sign: false }); + data.append(FP16x16 { mag: 76461, sign: true }); + data.append(FP16x16 { mag: 108813, sign: false }); + data.append(FP16x16 { mag: 50883, sign: false }); + data.append(FP16x16 { mag: 27205, sign: false }); + data.append(FP16x16 { mag: 7326, sign: false }); + data.append(FP16x16 { mag: 23613, sign: false }); + data.append(FP16x16 { mag: 27157, sign: false }); + data.append(FP16x16 { mag: 5637, sign: true }); + data.append(FP16x16 { mag: 90697, sign: false }); + data.append(FP16x16 { mag: 112821, sign: false }); + data.append(FP16x16 { mag: 91044, sign: true }); + data.append(FP16x16 { mag: 123095, sign: true }); + data.append(FP16x16 { mag: 204883, sign: false }); + data.append(FP16x16 { mag: 9454, sign: false }); + data.append(FP16x16 { mag: 55780, sign: true }); + data.append(FP16x16 { mag: 159695, sign: false }); + data.append(FP16x16 { mag: 6840, sign: true }); + data.append(FP16x16 { mag: 119261, sign: false }); + data.append(FP16x16 { mag: 139557, sign: true }); + data.append(FP16x16 { mag: 38352, sign: false }); + data.append(FP16x16 { mag: 8088, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis1_epsilon.cairo b/tests/nodes/layer_normalization_3d_axis1_epsilon.cairo index d2c6400b6..1bdb8700d 100644 --- a/tests/nodes/layer_normalization_3d_axis1_epsilon.cairo +++ b/tests/nodes/layer_normalization_3d_axis1_epsilon.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_3d_axis1_epsilon() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(1, false)), - Option::Some(FixedTrait::new(6554, false)), - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(1),Option::Some(FixedTrait::new(6554, false)),Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_3d_axis1_epsilon/input_0.cairo b/tests/nodes/layer_normalization_3d_axis1_epsilon/input_0.cairo index 2f4da77ea..a06bdacb4 100644 --- a/tests/nodes/layer_normalization_3d_axis1_epsilon/input_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis1_epsilon/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,35 +10,35 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 73220, sign: false }); - data.append(FP16x16 { mag: 15621, sign: false }); - data.append(FP16x16 { mag: 26862, sign: true }); - data.append(FP16x16 { mag: 63971, sign: false }); - data.append(FP16x16 { mag: 64826, sign: false }); - data.append(FP16x16 { mag: 18837, sign: false }); - data.append(FP16x16 { mag: 66021, sign: true }); - data.append(FP16x16 { mag: 42181, sign: true }); - data.append(FP16x16 { mag: 69342, sign: true }); - data.append(FP16x16 { mag: 72001, sign: true }); - data.append(FP16x16 { mag: 99818, sign: true }); - data.append(FP16x16 { mag: 63088, sign: false }); - data.append(FP16x16 { mag: 17845, sign: true }); - data.append(FP16x16 { mag: 37020, sign: true }); - data.append(FP16x16 { mag: 20567, sign: false }); - data.append(FP16x16 { mag: 1924, sign: true }); - data.append(FP16x16 { mag: 13154, sign: true }); - data.append(FP16x16 { mag: 88735, sign: false }); - data.append(FP16x16 { mag: 40464, sign: false }); - data.append(FP16x16 { mag: 96907, sign: false }); - data.append(FP16x16 { mag: 79699, sign: false }); - data.append(FP16x16 { mag: 91862, sign: true }); - data.append(FP16x16 { mag: 97396, sign: false }); - data.append(FP16x16 { mag: 23929, sign: false }); - data.append(FP16x16 { mag: 11785, sign: true }); - data.append(FP16x16 { mag: 7747, sign: false }); - data.append(FP16x16 { mag: 91889, sign: true }); - data.append(FP16x16 { mag: 16735, sign: true }); - data.append(FP16x16 { mag: 120303, sign: true }); - data.append(FP16x16 { mag: 116144, sign: false }); + data.append(FP16x16 { mag: 176084, sign: true }); + data.append(FP16x16 { mag: 134870, sign: false }); + data.append(FP16x16 { mag: 11194, sign: true }); + data.append(FP16x16 { mag: 34834, sign: true }); + data.append(FP16x16 { mag: 6625, sign: true }); + data.append(FP16x16 { mag: 99311, sign: true }); + data.append(FP16x16 { mag: 84659, sign: true }); + data.append(FP16x16 { mag: 37723, sign: false }); + data.append(FP16x16 { mag: 78508, sign: true }); + data.append(FP16x16 { mag: 31024, sign: false }); + data.append(FP16x16 { mag: 72988, sign: true }); + data.append(FP16x16 { mag: 9818, sign: true }); + data.append(FP16x16 { mag: 34996, sign: false }); + data.append(FP16x16 { mag: 87265, sign: true }); + data.append(FP16x16 { mag: 45795, sign: true }); + data.append(FP16x16 { mag: 45583, sign: true }); + data.append(FP16x16 { mag: 10423, sign: true }); + data.append(FP16x16 { mag: 71376, sign: true }); + data.append(FP16x16 { mag: 31238, sign: true }); + data.append(FP16x16 { mag: 84702, sign: false }); + data.append(FP16x16 { mag: 18617, sign: true }); + data.append(FP16x16 { mag: 90788, sign: false }); + data.append(FP16x16 { mag: 32546, sign: true }); + data.append(FP16x16 { mag: 43302, sign: true }); + data.append(FP16x16 { mag: 90009, sign: true }); + data.append(FP16x16 { mag: 19958, sign: true }); + data.append(FP16x16 { mag: 161585, sign: false }); + data.append(FP16x16 { mag: 40607, sign: false }); + data.append(FP16x16 { mag: 34601, sign: true }); + data.append(FP16x16 { mag: 7286, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis1_epsilon/input_1.cairo b/tests/nodes/layer_normalization_3d_axis1_epsilon/input_1.cairo index 6db5b252a..73df9febd 100644 --- a/tests/nodes/layer_normalization_3d_axis1_epsilon/input_1.cairo +++ b/tests/nodes/layer_normalization_3d_axis1_epsilon/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -9,20 +9,20 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 71268, sign: false }); - data.append(FP16x16 { mag: 7868, sign: false }); - data.append(FP16x16 { mag: 95401, sign: true }); - data.append(FP16x16 { mag: 1087, sign: true }); - data.append(FP16x16 { mag: 1166, sign: false }); - data.append(FP16x16 { mag: 10185, sign: false }); - data.append(FP16x16 { mag: 52837, sign: true }); - data.append(FP16x16 { mag: 5760, sign: true }); - data.append(FP16x16 { mag: 21502, sign: true }); - data.append(FP16x16 { mag: 44185, sign: true }); - data.append(FP16x16 { mag: 39539, sign: false }); - data.append(FP16x16 { mag: 113293, sign: false }); - data.append(FP16x16 { mag: 24873, sign: false }); - data.append(FP16x16 { mag: 124246, sign: false }); - data.append(FP16x16 { mag: 20310, sign: false }); + data.append(FP16x16 { mag: 19493, sign: true }); + data.append(FP16x16 { mag: 6259, sign: true }); + data.append(FP16x16 { mag: 35118, sign: true }); + data.append(FP16x16 { mag: 2823, sign: false }); + data.append(FP16x16 { mag: 34210, sign: false }); + data.append(FP16x16 { mag: 7012, sign: false }); + data.append(FP16x16 { mag: 52120, sign: true }); + data.append(FP16x16 { mag: 51293, sign: true }); + data.append(FP16x16 { mag: 23181, sign: false }); + data.append(FP16x16 { mag: 54682, sign: false }); + data.append(FP16x16 { mag: 34168, sign: false }); + data.append(FP16x16 { mag: 54896, sign: false }); + data.append(FP16x16 { mag: 94902, sign: false }); + data.append(FP16x16 { mag: 35974, sign: true }); + data.append(FP16x16 { mag: 96972, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis1_epsilon/input_2.cairo b/tests/nodes/layer_normalization_3d_axis1_epsilon/input_2.cairo index 86501b55a..d44fc815f 100644 --- a/tests/nodes/layer_normalization_3d_axis1_epsilon/input_2.cairo +++ b/tests/nodes/layer_normalization_3d_axis1_epsilon/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -9,20 +9,20 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 37055, sign: true }); - data.append(FP16x16 { mag: 26922, sign: false }); - data.append(FP16x16 { mag: 155904, sign: false }); - data.append(FP16x16 { mag: 33841, sign: true }); - data.append(FP16x16 { mag: 53256, sign: false }); - data.append(FP16x16 { mag: 22490, sign: false }); - data.append(FP16x16 { mag: 110070, sign: false }); - data.append(FP16x16 { mag: 90061, sign: true }); - data.append(FP16x16 { mag: 44130, sign: true }); - data.append(FP16x16 { mag: 8720, sign: true }); - data.append(FP16x16 { mag: 61513, sign: true }); - data.append(FP16x16 { mag: 42238, sign: true }); - data.append(FP16x16 { mag: 18154, sign: false }); - data.append(FP16x16 { mag: 88282, sign: false }); - data.append(FP16x16 { mag: 29231, sign: true }); + data.append(FP16x16 { mag: 37910, sign: true }); + data.append(FP16x16 { mag: 18888, sign: true }); + data.append(FP16x16 { mag: 42890, sign: false }); + data.append(FP16x16 { mag: 47165, sign: false }); + data.append(FP16x16 { mag: 63877, sign: true }); + data.append(FP16x16 { mag: 88993, sign: true }); + data.append(FP16x16 { mag: 41540, sign: true }); + data.append(FP16x16 { mag: 68862, sign: true }); + data.append(FP16x16 { mag: 21940, sign: false }); + data.append(FP16x16 { mag: 5420, sign: true }); + data.append(FP16x16 { mag: 101888, sign: true }); + data.append(FP16x16 { mag: 13856, sign: false }); + data.append(FP16x16 { mag: 55772, sign: false }); + data.append(FP16x16 { mag: 21988, sign: false }); + data.append(FP16x16 { mag: 63379, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis1_epsilon/output_0.cairo b/tests/nodes/layer_normalization_3d_axis1_epsilon/output_0.cairo index ac2abb924..641a6226f 100644 --- a/tests/nodes/layer_normalization_3d_axis1_epsilon/output_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis1_epsilon/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,35 +10,35 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 59799, sign: false }); - data.append(FP16x16 { mag: 29975, sign: false }); - data.append(FP16x16 { mag: 187208, sign: false }); - data.append(FP16x16 { mag: 35149, sign: true }); - data.append(FP16x16 { mag: 54676, sign: false }); - data.append(FP16x16 { mag: 26994, sign: false }); - data.append(FP16x16 { mag: 162286, sign: false }); - data.append(FP16x16 { mag: 86683, sign: true }); - data.append(FP16x16 { mag: 21676, sign: true }); - data.append(FP16x16 { mag: 39399, sign: false }); - data.append(FP16x16 { mag: 123115, sign: true }); - data.append(FP16x16 { mag: 92377, sign: false }); - data.append(FP16x16 { mag: 13773, sign: false }); - data.append(FP16x16 { mag: 26238, sign: false }); - data.append(FP16x16 { mag: 19656, sign: true }); - data.append(FP16x16 { mag: 51756, sign: true }); - data.append(FP16x16 { mag: 24121, sign: false }); - data.append(FP16x16 { mag: 60347, sign: false }); - data.append(FP16x16 { mag: 34230, sign: true }); - data.append(FP16x16 { mag: 54552, sign: false }); - data.append(FP16x16 { mag: 31465, sign: false }); - data.append(FP16x16 { mag: 184284, sign: false }); - data.append(FP16x16 { mag: 96496, sign: true }); - data.append(FP16x16 { mag: 47101, sign: true }); - data.append(FP16x16 { mag: 6198, sign: false }); - data.append(FP16x16 { mag: 64574, sign: true }); - data.append(FP16x16 { mag: 201408, sign: true }); - data.append(FP16x16 { mag: 8115, sign: false }); - data.append(FP16x16 { mag: 133313, sign: true }); - data.append(FP16x16 { mag: 1471, sign: true }); + data.append(FP16x16 { mag: 251, sign: true }); + data.append(FP16x16 { mag: 32754, sign: true }); + data.append(FP16x16 { mag: 33505, sign: false }); + data.append(FP16x16 { mag: 47029, sign: false }); + data.append(FP16x16 { mag: 52651, sign: true }); + data.append(FP16x16 { mag: 95360, sign: true }); + data.append(FP16x16 { mag: 4402, sign: true }); + data.append(FP16x16 { mag: 116033, sign: true }); + data.append(FP16x16 { mag: 7323, sign: false }); + data.append(FP16x16 { mag: 39982, sign: false }); + data.append(FP16x16 { mag: 120917, sign: true }); + data.append(FP16x16 { mag: 29534, sign: false }); + data.append(FP16x16 { mag: 139597, sign: false }); + data.append(FP16x16 { mag: 48872, sign: false }); + data.append(FP16x16 { mag: 44543, sign: false }); + data.append(FP16x16 { mag: 25225, sign: true }); + data.append(FP16x16 { mag: 18016, sign: true }); + data.append(FP16x16 { mag: 78919, sign: false }); + data.append(FP16x16 { mag: 45917, sign: false }); + data.append(FP16x16 { mag: 21307, sign: true }); + data.append(FP16x16 { mag: 90805, sign: true }); + data.append(FP16x16 { mag: 111010, sign: true }); + data.append(FP16x16 { mag: 45210, sign: true }); + data.append(FP16x16 { mag: 7624, sign: false }); + data.append(FP16x16 { mag: 76340, sign: true }); + data.append(FP16x16 { mag: 111388, sign: true }); + data.append(FP16x16 { mag: 143559, sign: false }); + data.append(FP16x16 { mag: 112995, sign: false }); + data.append(FP16x16 { mag: 39651, sign: false }); + data.append(FP16x16 { mag: 74850, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis2_epsilon.cairo b/tests/nodes/layer_normalization_3d_axis2_epsilon.cairo index 2d3fe7a76..06505280b 100644 --- a/tests/nodes/layer_normalization_3d_axis2_epsilon.cairo +++ b/tests/nodes/layer_normalization_3d_axis2_epsilon.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_3d_axis2_epsilon() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(2, false)), - Option::Some(FixedTrait::new(6554, false)), - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(2),Option::Some(FixedTrait::new(6554, false)),Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_3d_axis2_epsilon/input_0.cairo b/tests/nodes/layer_normalization_3d_axis2_epsilon/input_0.cairo index 2f4da77ea..a06bdacb4 100644 --- a/tests/nodes/layer_normalization_3d_axis2_epsilon/input_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis2_epsilon/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,35 +10,35 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 73220, sign: false }); - data.append(FP16x16 { mag: 15621, sign: false }); - data.append(FP16x16 { mag: 26862, sign: true }); - data.append(FP16x16 { mag: 63971, sign: false }); - data.append(FP16x16 { mag: 64826, sign: false }); - data.append(FP16x16 { mag: 18837, sign: false }); - data.append(FP16x16 { mag: 66021, sign: true }); - data.append(FP16x16 { mag: 42181, sign: true }); - data.append(FP16x16 { mag: 69342, sign: true }); - data.append(FP16x16 { mag: 72001, sign: true }); - data.append(FP16x16 { mag: 99818, sign: true }); - data.append(FP16x16 { mag: 63088, sign: false }); - data.append(FP16x16 { mag: 17845, sign: true }); - data.append(FP16x16 { mag: 37020, sign: true }); - data.append(FP16x16 { mag: 20567, sign: false }); - data.append(FP16x16 { mag: 1924, sign: true }); - data.append(FP16x16 { mag: 13154, sign: true }); - data.append(FP16x16 { mag: 88735, sign: false }); - data.append(FP16x16 { mag: 40464, sign: false }); - data.append(FP16x16 { mag: 96907, sign: false }); - data.append(FP16x16 { mag: 79699, sign: false }); - data.append(FP16x16 { mag: 91862, sign: true }); - data.append(FP16x16 { mag: 97396, sign: false }); - data.append(FP16x16 { mag: 23929, sign: false }); - data.append(FP16x16 { mag: 11785, sign: true }); - data.append(FP16x16 { mag: 7747, sign: false }); - data.append(FP16x16 { mag: 91889, sign: true }); - data.append(FP16x16 { mag: 16735, sign: true }); - data.append(FP16x16 { mag: 120303, sign: true }); - data.append(FP16x16 { mag: 116144, sign: false }); + data.append(FP16x16 { mag: 176084, sign: true }); + data.append(FP16x16 { mag: 134870, sign: false }); + data.append(FP16x16 { mag: 11194, sign: true }); + data.append(FP16x16 { mag: 34834, sign: true }); + data.append(FP16x16 { mag: 6625, sign: true }); + data.append(FP16x16 { mag: 99311, sign: true }); + data.append(FP16x16 { mag: 84659, sign: true }); + data.append(FP16x16 { mag: 37723, sign: false }); + data.append(FP16x16 { mag: 78508, sign: true }); + data.append(FP16x16 { mag: 31024, sign: false }); + data.append(FP16x16 { mag: 72988, sign: true }); + data.append(FP16x16 { mag: 9818, sign: true }); + data.append(FP16x16 { mag: 34996, sign: false }); + data.append(FP16x16 { mag: 87265, sign: true }); + data.append(FP16x16 { mag: 45795, sign: true }); + data.append(FP16x16 { mag: 45583, sign: true }); + data.append(FP16x16 { mag: 10423, sign: true }); + data.append(FP16x16 { mag: 71376, sign: true }); + data.append(FP16x16 { mag: 31238, sign: true }); + data.append(FP16x16 { mag: 84702, sign: false }); + data.append(FP16x16 { mag: 18617, sign: true }); + data.append(FP16x16 { mag: 90788, sign: false }); + data.append(FP16x16 { mag: 32546, sign: true }); + data.append(FP16x16 { mag: 43302, sign: true }); + data.append(FP16x16 { mag: 90009, sign: true }); + data.append(FP16x16 { mag: 19958, sign: true }); + data.append(FP16x16 { mag: 161585, sign: false }); + data.append(FP16x16 { mag: 40607, sign: false }); + data.append(FP16x16 { mag: 34601, sign: true }); + data.append(FP16x16 { mag: 7286, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis2_epsilon/input_1.cairo b/tests/nodes/layer_normalization_3d_axis2_epsilon/input_1.cairo index 4bb7a1456..6f771f259 100644 --- a/tests/nodes/layer_normalization_3d_axis2_epsilon/input_1.cairo +++ b/tests/nodes/layer_normalization_3d_axis2_epsilon/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -8,10 +8,10 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 49614, sign: false }); - data.append(FP16x16 { mag: 39079, sign: true }); - data.append(FP16x16 { mag: 59684, sign: true }); - data.append(FP16x16 { mag: 44628, sign: false }); - data.append(FP16x16 { mag: 45415, sign: false }); + data.append(FP16x16 { mag: 39349, sign: true }); + data.append(FP16x16 { mag: 89048, sign: false }); + data.append(FP16x16 { mag: 26497, sign: false }); + data.append(FP16x16 { mag: 76393, sign: false }); + data.append(FP16x16 { mag: 89741, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis2_epsilon/input_2.cairo b/tests/nodes/layer_normalization_3d_axis2_epsilon/input_2.cairo index 797fd7460..b615a79e6 100644 --- a/tests/nodes/layer_normalization_3d_axis2_epsilon/input_2.cairo +++ b/tests/nodes/layer_normalization_3d_axis2_epsilon/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -8,10 +8,10 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 93216, sign: true }); - data.append(FP16x16 { mag: 37735, sign: false }); - data.append(FP16x16 { mag: 93039, sign: false }); - data.append(FP16x16 { mag: 65618, sign: false }); - data.append(FP16x16 { mag: 52063, sign: false }); + data.append(FP16x16 { mag: 7433, sign: true }); + data.append(FP16x16 { mag: 119887, sign: true }); + data.append(FP16x16 { mag: 18199, sign: true }); + data.append(FP16x16 { mag: 19666, sign: true }); + data.append(FP16x16 { mag: 12164, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis2_epsilon/output_0.cairo b/tests/nodes/layer_normalization_3d_axis2_epsilon/output_0.cairo index aa884adae..b6452d015 100644 --- a/tests/nodes/layer_normalization_3d_axis2_epsilon/output_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis2_epsilon/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,35 +10,35 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 53283, sign: true }); - data.append(FP16x16 { mag: 57948, sign: false }); - data.append(FP16x16 { mag: 182112, sign: false }); - data.append(FP16x16 { mag: 92064, sign: false }); - data.append(FP16x16 { mag: 79866, sign: false }); - data.append(FP16x16 { mag: 12556, sign: true }); - data.append(FP16x16 { mag: 57172, sign: false }); - data.append(FP16x16 { mag: 87126, sign: false }); - data.append(FP16x16 { mag: 39713, sign: false }); - data.append(FP16x16 { mag: 22679, sign: false }); - data.append(FP16x16 { mag: 165649, sign: true }); - data.append(FP16x16 { mag: 13773, sign: true }); - data.append(FP16x16 { mag: 96744, sign: false }); - data.append(FP16x16 { mag: 48255, sign: false }); - data.append(FP16x16 { mag: 78994, sign: false }); - data.append(FP16x16 { mag: 137324, sign: true }); - data.append(FP16x16 { mag: 81318, sign: false }); - data.append(FP16x16 { mag: 37094, sign: false }); - data.append(FP16x16 { mag: 64052, sign: false }); - data.append(FP16x16 { mag: 102111, sign: false }); - data.append(FP16x16 { mag: 51160, sign: true }); - data.append(FP16x16 { mag: 98975, sign: false }); - data.append(FP16x16 { mag: 27582, sign: false }); - data.append(FP16x16 { mag: 68415, sign: false }); - data.append(FP16x16 { mag: 32080, sign: false }); - data.append(FP16x16 { mag: 76560, sign: true }); - data.append(FP16x16 { mag: 70073, sign: false }); - data.append(FP16x16 { mag: 90063, sign: false }); - data.append(FP16x16 { mag: 13883, sign: false }); - data.append(FP16x16 { mag: 124780, sign: false }); + data.append(FP16x16 { mag: 53879, sign: false }); + data.append(FP16x16 { mag: 15631, sign: false }); + data.append(FP16x16 { mag: 16210, sign: true }); + data.append(FP16x16 { mag: 31819, sign: true }); + data.append(FP16x16 { mag: 1365, sign: false }); + data.append(FP16x16 { mag: 30042, sign: false }); + data.append(FP16x16 { mag: 184179, sign: true }); + data.append(FP16x16 { mag: 13663, sign: false }); + data.append(FP16x16 { mag: 67432, sign: true }); + data.append(FP16x16 { mag: 86296, sign: true }); + data.append(FP16x16 { mag: 22179, sign: false }); + data.append(FP16x16 { mag: 71910, sign: true }); + data.append(FP16x16 { mag: 20350, sign: false }); + data.append(FP16x16 { mag: 99451, sign: true }); + data.append(FP16x16 { mag: 29814, sign: false }); + data.append(FP16x16 { mag: 13673, sign: false }); + data.append(FP16x16 { mag: 113125, sign: true }); + data.append(FP16x16 { mag: 44314, sign: true }); + data.append(FP16x16 { mag: 41557, sign: true }); + data.append(FP16x16 { mag: 143319, sign: true }); + data.append(FP16x16 { mag: 7507, sign: true }); + data.append(FP16x16 { mag: 34257, sign: false }); + data.append(FP16x16 { mag: 23982, sign: true }); + data.append(FP16x16 { mag: 49325, sign: true }); + data.append(FP16x16 { mag: 113251, sign: false }); + data.append(FP16x16 { mag: 19969, sign: false }); + data.append(FP16x16 { mag: 39099, sign: false }); + data.append(FP16x16 { mag: 14713, sign: true }); + data.append(FP16x16 { mag: 88159, sign: true }); + data.append(FP16x16 { mag: 41236, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon.cairo b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon.cairo index f197b1609..4c095bf62 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_3d_axis_negative_1_epsilon() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(1, true)), - Option::Some(FixedTrait::new(6554, false)), - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(-1),Option::Some(FixedTrait::new(6554, false)),Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_0.cairo b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_0.cairo index 2f4da77ea..a06bdacb4 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,35 +10,35 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 73220, sign: false }); - data.append(FP16x16 { mag: 15621, sign: false }); - data.append(FP16x16 { mag: 26862, sign: true }); - data.append(FP16x16 { mag: 63971, sign: false }); - data.append(FP16x16 { mag: 64826, sign: false }); - data.append(FP16x16 { mag: 18837, sign: false }); - data.append(FP16x16 { mag: 66021, sign: true }); - data.append(FP16x16 { mag: 42181, sign: true }); - data.append(FP16x16 { mag: 69342, sign: true }); - data.append(FP16x16 { mag: 72001, sign: true }); - data.append(FP16x16 { mag: 99818, sign: true }); - data.append(FP16x16 { mag: 63088, sign: false }); - data.append(FP16x16 { mag: 17845, sign: true }); - data.append(FP16x16 { mag: 37020, sign: true }); - data.append(FP16x16 { mag: 20567, sign: false }); - data.append(FP16x16 { mag: 1924, sign: true }); - data.append(FP16x16 { mag: 13154, sign: true }); - data.append(FP16x16 { mag: 88735, sign: false }); - data.append(FP16x16 { mag: 40464, sign: false }); - data.append(FP16x16 { mag: 96907, sign: false }); - data.append(FP16x16 { mag: 79699, sign: false }); - data.append(FP16x16 { mag: 91862, sign: true }); - data.append(FP16x16 { mag: 97396, sign: false }); - data.append(FP16x16 { mag: 23929, sign: false }); - data.append(FP16x16 { mag: 11785, sign: true }); - data.append(FP16x16 { mag: 7747, sign: false }); - data.append(FP16x16 { mag: 91889, sign: true }); - data.append(FP16x16 { mag: 16735, sign: true }); - data.append(FP16x16 { mag: 120303, sign: true }); - data.append(FP16x16 { mag: 116144, sign: false }); + data.append(FP16x16 { mag: 176084, sign: true }); + data.append(FP16x16 { mag: 134870, sign: false }); + data.append(FP16x16 { mag: 11194, sign: true }); + data.append(FP16x16 { mag: 34834, sign: true }); + data.append(FP16x16 { mag: 6625, sign: true }); + data.append(FP16x16 { mag: 99311, sign: true }); + data.append(FP16x16 { mag: 84659, sign: true }); + data.append(FP16x16 { mag: 37723, sign: false }); + data.append(FP16x16 { mag: 78508, sign: true }); + data.append(FP16x16 { mag: 31024, sign: false }); + data.append(FP16x16 { mag: 72988, sign: true }); + data.append(FP16x16 { mag: 9818, sign: true }); + data.append(FP16x16 { mag: 34996, sign: false }); + data.append(FP16x16 { mag: 87265, sign: true }); + data.append(FP16x16 { mag: 45795, sign: true }); + data.append(FP16x16 { mag: 45583, sign: true }); + data.append(FP16x16 { mag: 10423, sign: true }); + data.append(FP16x16 { mag: 71376, sign: true }); + data.append(FP16x16 { mag: 31238, sign: true }); + data.append(FP16x16 { mag: 84702, sign: false }); + data.append(FP16x16 { mag: 18617, sign: true }); + data.append(FP16x16 { mag: 90788, sign: false }); + data.append(FP16x16 { mag: 32546, sign: true }); + data.append(FP16x16 { mag: 43302, sign: true }); + data.append(FP16x16 { mag: 90009, sign: true }); + data.append(FP16x16 { mag: 19958, sign: true }); + data.append(FP16x16 { mag: 161585, sign: false }); + data.append(FP16x16 { mag: 40607, sign: false }); + data.append(FP16x16 { mag: 34601, sign: true }); + data.append(FP16x16 { mag: 7286, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_1.cairo b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_1.cairo index 908e17fa1..46ca883d3 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_1.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -8,10 +8,10 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 9463, sign: false }); - data.append(FP16x16 { mag: 34110, sign: true }); - data.append(FP16x16 { mag: 50067, sign: false }); - data.append(FP16x16 { mag: 4048, sign: false }); - data.append(FP16x16 { mag: 19840, sign: false }); + data.append(FP16x16 { mag: 95136, sign: true }); + data.append(FP16x16 { mag: 46210, sign: false }); + data.append(FP16x16 { mag: 95007, sign: false }); + data.append(FP16x16 { mag: 13976, sign: false }); + data.append(FP16x16 { mag: 59189, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_2.cairo b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_2.cairo index cf65126ba..d282a77e1 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_2.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -8,10 +8,10 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 41329, sign: true }); - data.append(FP16x16 { mag: 41872, sign: true }); - data.append(FP16x16 { mag: 18851, sign: true }); - data.append(FP16x16 { mag: 38714, sign: true }); - data.append(FP16x16 { mag: 67617, sign: true }); + data.append(FP16x16 { mag: 55378, sign: false }); + data.append(FP16x16 { mag: 119900, sign: false }); + data.append(FP16x16 { mag: 48314, sign: true }); + data.append(FP16x16 { mag: 9945, sign: false }); + data.append(FP16x16 { mag: 75929, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/output_0.cairo b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/output_0.cairo index ed4491dc1..e5d738c45 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/output_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_1_epsilon/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,35 +10,35 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 33712, sign: true }); - data.append(FP16x16 { mag: 24229, sign: true }); - data.append(FP16x16 { mag: 93572, sign: true }); - data.append(FP16x16 { mag: 36316, sign: true }); - data.append(FP16x16 { mag: 55471, sign: true }); - data.append(FP16x16 { mag: 25943, sign: true }); - data.append(FP16x16 { mag: 24906, sign: true }); - data.append(FP16x16 { mag: 13890, sign: true }); - data.append(FP16x16 { mag: 41064, sign: true }); - data.append(FP16x16 { mag: 80454, sign: true }); - data.append(FP16x16 { mag: 55145, sign: true }); - data.append(FP16x16 { mag: 86832, sign: true }); - data.append(FP16x16 { mag: 21959, sign: true }); - data.append(FP16x16 { mag: 40289, sign: true }); - data.append(FP16x16 { mag: 55852, sign: true }); - data.append(FP16x16 { mag: 49742, sign: true }); - data.append(FP16x16 { mag: 3830, sign: true }); - data.append(FP16x16 { mag: 28080, sign: false }); - data.append(FP16x16 { mag: 38856, sign: true }); - data.append(FP16x16 { mag: 45753, sign: true }); - data.append(FP16x16 { mag: 33307, sign: true }); - data.append(FP16x16 { mag: 11580, sign: false }); - data.append(FP16x16 { mag: 36059, sign: false }); - data.append(FP16x16 { mag: 38461, sign: true }); - data.append(FP16x16 { mag: 76347, sign: true }); - data.append(FP16x16 { mag: 38152, sign: true }); - data.append(FP16x16 { mag: 13646, sign: true }); - data.append(FP16x16 { mag: 16354, sign: true }); - data.append(FP16x16 { mag: 43407, sign: true }); - data.append(FP16x16 { mag: 35849, sign: true }); + data.append(FP16x16 { mag: 203617, sign: false }); + data.append(FP16x16 { mag: 190225, sign: false }); + data.append(FP16x16 { mag: 41182, sign: true }); + data.append(FP16x16 { mag: 7721, sign: false }); + data.append(FP16x16 { mag: 83051, sign: false }); + data.append(FP16x16 { mag: 145985, sign: false }); + data.append(FP16x16 { mag: 86537, sign: false }); + data.append(FP16x16 { mag: 65930, sign: false }); + data.append(FP16x16 { mag: 1205, sign: false }); + data.append(FP16x16 { mag: 140868, sign: false }); + data.append(FP16x16 { mag: 126973, sign: false }); + data.append(FP16x16 { mag: 144796, sign: false }); + data.append(FP16x16 { mag: 89906, sign: false }); + data.append(FP16x16 { mag: 4652, sign: true }); + data.append(FP16x16 { mag: 64288, sign: false }); + data.append(FP16x16 { mag: 106407, sign: false }); + data.append(FP16x16 { mag: 123409, sign: false }); + data.append(FP16x16 { mag: 141950, sign: true }); + data.append(FP16x16 { mag: 5939, sign: false }); + data.append(FP16x16 { mag: 178478, sign: false }); + data.append(FP16x16 { mag: 55197, sign: false }); + data.append(FP16x16 { mag: 199890, sign: false }); + data.append(FP16x16 { mag: 69050, sign: true }); + data.append(FP16x16 { mag: 4518, sign: false }); + data.append(FP16x16 { mag: 9257, sign: false }); + data.append(FP16x16 { mag: 121631, sign: false }); + data.append(FP16x16 { mag: 202403, sign: false }); + data.append(FP16x16 { mag: 35816, sign: true }); + data.append(FP16x16 { mag: 2586, sign: true }); + data.append(FP16x16 { mag: 56755, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon.cairo b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon.cairo index 0abf1233d..0be005ddd 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon.cairo @@ -4,13 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; - -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -20,14 +19,7 @@ fn test_layer_normalization_3d_axis_negative_2_epsilon() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(2, true)), - Option::Some(FixedTrait::new(6554, false)), - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(-2),Option::Some(FixedTrait::new(6554, false)),Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_0.cairo b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_0.cairo index 2f4da77ea..a06bdacb4 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,35 +10,35 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 73220, sign: false }); - data.append(FP16x16 { mag: 15621, sign: false }); - data.append(FP16x16 { mag: 26862, sign: true }); - data.append(FP16x16 { mag: 63971, sign: false }); - data.append(FP16x16 { mag: 64826, sign: false }); - data.append(FP16x16 { mag: 18837, sign: false }); - data.append(FP16x16 { mag: 66021, sign: true }); - data.append(FP16x16 { mag: 42181, sign: true }); - data.append(FP16x16 { mag: 69342, sign: true }); - data.append(FP16x16 { mag: 72001, sign: true }); - data.append(FP16x16 { mag: 99818, sign: true }); - data.append(FP16x16 { mag: 63088, sign: false }); - data.append(FP16x16 { mag: 17845, sign: true }); - data.append(FP16x16 { mag: 37020, sign: true }); - data.append(FP16x16 { mag: 20567, sign: false }); - data.append(FP16x16 { mag: 1924, sign: true }); - data.append(FP16x16 { mag: 13154, sign: true }); - data.append(FP16x16 { mag: 88735, sign: false }); - data.append(FP16x16 { mag: 40464, sign: false }); - data.append(FP16x16 { mag: 96907, sign: false }); - data.append(FP16x16 { mag: 79699, sign: false }); - data.append(FP16x16 { mag: 91862, sign: true }); - data.append(FP16x16 { mag: 97396, sign: false }); - data.append(FP16x16 { mag: 23929, sign: false }); - data.append(FP16x16 { mag: 11785, sign: true }); - data.append(FP16x16 { mag: 7747, sign: false }); - data.append(FP16x16 { mag: 91889, sign: true }); - data.append(FP16x16 { mag: 16735, sign: true }); - data.append(FP16x16 { mag: 120303, sign: true }); - data.append(FP16x16 { mag: 116144, sign: false }); + data.append(FP16x16 { mag: 176084, sign: true }); + data.append(FP16x16 { mag: 134870, sign: false }); + data.append(FP16x16 { mag: 11194, sign: true }); + data.append(FP16x16 { mag: 34834, sign: true }); + data.append(FP16x16 { mag: 6625, sign: true }); + data.append(FP16x16 { mag: 99311, sign: true }); + data.append(FP16x16 { mag: 84659, sign: true }); + data.append(FP16x16 { mag: 37723, sign: false }); + data.append(FP16x16 { mag: 78508, sign: true }); + data.append(FP16x16 { mag: 31024, sign: false }); + data.append(FP16x16 { mag: 72988, sign: true }); + data.append(FP16x16 { mag: 9818, sign: true }); + data.append(FP16x16 { mag: 34996, sign: false }); + data.append(FP16x16 { mag: 87265, sign: true }); + data.append(FP16x16 { mag: 45795, sign: true }); + data.append(FP16x16 { mag: 45583, sign: true }); + data.append(FP16x16 { mag: 10423, sign: true }); + data.append(FP16x16 { mag: 71376, sign: true }); + data.append(FP16x16 { mag: 31238, sign: true }); + data.append(FP16x16 { mag: 84702, sign: false }); + data.append(FP16x16 { mag: 18617, sign: true }); + data.append(FP16x16 { mag: 90788, sign: false }); + data.append(FP16x16 { mag: 32546, sign: true }); + data.append(FP16x16 { mag: 43302, sign: true }); + data.append(FP16x16 { mag: 90009, sign: true }); + data.append(FP16x16 { mag: 19958, sign: true }); + data.append(FP16x16 { mag: 161585, sign: false }); + data.append(FP16x16 { mag: 40607, sign: false }); + data.append(FP16x16 { mag: 34601, sign: true }); + data.append(FP16x16 { mag: 7286, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_1.cairo b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_1.cairo index ed3eccc4c..63657826c 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_1.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -9,20 +9,20 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 76875, sign: true }); - data.append(FP16x16 { mag: 70595, sign: true }); - data.append(FP16x16 { mag: 48362, sign: true }); - data.append(FP16x16 { mag: 114023, sign: false }); - data.append(FP16x16 { mag: 68398, sign: true }); - data.append(FP16x16 { mag: 90609, sign: false }); - data.append(FP16x16 { mag: 11920, sign: false }); - data.append(FP16x16 { mag: 83372, sign: true }); - data.append(FP16x16 { mag: 131126, sign: false }); - data.append(FP16x16 { mag: 36226, sign: false }); - data.append(FP16x16 { mag: 15255, sign: true }); - data.append(FP16x16 { mag: 97966, sign: false }); - data.append(FP16x16 { mag: 156224, sign: false }); - data.append(FP16x16 { mag: 92550, sign: true }); - data.append(FP16x16 { mag: 120464, sign: false }); + data.append(FP16x16 { mag: 69151, sign: false }); + data.append(FP16x16 { mag: 49647, sign: true }); + data.append(FP16x16 { mag: 25308, sign: false }); + data.append(FP16x16 { mag: 49767, sign: true }); + data.append(FP16x16 { mag: 17913, sign: false }); + data.append(FP16x16 { mag: 10090, sign: false }); + data.append(FP16x16 { mag: 4364, sign: true }); + data.append(FP16x16 { mag: 41827, sign: false }); + data.append(FP16x16 { mag: 12848, sign: true }); + data.append(FP16x16 { mag: 137417, sign: false }); + data.append(FP16x16 { mag: 70720, sign: true }); + data.append(FP16x16 { mag: 76109, sign: false }); + data.append(FP16x16 { mag: 66590, sign: true }); + data.append(FP16x16 { mag: 50658, sign: false }); + data.append(FP16x16 { mag: 107949, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_2.cairo b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_2.cairo index 27b6c770b..ef38e3945 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_2.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -9,20 +9,20 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 93757, sign: false }); - data.append(FP16x16 { mag: 4959, sign: true }); - data.append(FP16x16 { mag: 26505, sign: false }); - data.append(FP16x16 { mag: 1530, sign: false }); - data.append(FP16x16 { mag: 75165, sign: true }); - data.append(FP16x16 { mag: 97790, sign: true }); - data.append(FP16x16 { mag: 16969, sign: true }); - data.append(FP16x16 { mag: 61662, sign: false }); - data.append(FP16x16 { mag: 110907, sign: true }); - data.append(FP16x16 { mag: 17227, sign: true }); - data.append(FP16x16 { mag: 14091, sign: false }); - data.append(FP16x16 { mag: 52957, sign: true }); - data.append(FP16x16 { mag: 41342, sign: false }); - data.append(FP16x16 { mag: 34186, sign: false }); - data.append(FP16x16 { mag: 17811, sign: false }); + data.append(FP16x16 { mag: 18752, sign: false }); + data.append(FP16x16 { mag: 19935, sign: false }); + data.append(FP16x16 { mag: 20182, sign: true }); + data.append(FP16x16 { mag: 65500, sign: false }); + data.append(FP16x16 { mag: 3405, sign: true }); + data.append(FP16x16 { mag: 43973, sign: true }); + data.append(FP16x16 { mag: 45323, sign: true }); + data.append(FP16x16 { mag: 24495, sign: false }); + data.append(FP16x16 { mag: 27923, sign: true }); + data.append(FP16x16 { mag: 149149, sign: false }); + data.append(FP16x16 { mag: 3341, sign: true }); + data.append(FP16x16 { mag: 17501, sign: false }); + data.append(FP16x16 { mag: 38949, sign: true }); + data.append(FP16x16 { mag: 85674, sign: false }); + data.append(FP16x16 { mag: 3401, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/output_0.cairo b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/output_0.cairo index 5da7eb6ac..56a144927 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/output_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_2_epsilon/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,35 +10,35 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 10716, sign: true }); - data.append(FP16x16 { mag: 32353, sign: true }); - data.append(FP16x16 { mag: 42375, sign: false }); - data.append(FP16x16 { mag: 138711, sign: false }); - data.append(FP16x16 { mag: 158441, sign: true }); - data.append(FP16x16 { mag: 57718, sign: true }); - data.append(FP16x16 { mag: 28750, sign: true }); - data.append(FP16x16 { mag: 110550, sign: false }); - data.append(FP16x16 { mag: 247834, sign: true }); - data.append(FP16x16 { mag: 56680, sign: true }); - data.append(FP16x16 { mag: 37859, sign: false }); - data.append(FP16x16 { mag: 63446, sign: false }); - data.append(FP16x16 { mag: 13827, sign: false }); - data.append(FP16x16 { mag: 80402, sign: false }); - data.append(FP16x16 { mag: 74600, sign: false }); - data.append(FP16x16 { mag: 109615, sign: false }); - data.append(FP16x16 { mag: 20165, sign: false }); - data.append(FP16x16 { mag: 21935, sign: true }); - data.append(FP16x16 { mag: 42407, sign: false }); - data.append(FP16x16 { mag: 151122, sign: true }); - data.append(FP16x16 { mag: 17941, sign: true }); - data.append(FP16x16 { mag: 33712, sign: true }); - data.append(FP16x16 { mag: 31466, sign: true }); - data.append(FP16x16 { mag: 92787, sign: true }); - data.append(FP16x16 { mag: 29459, sign: true }); - data.append(FP16x16 { mag: 15272, sign: false }); - data.append(FP16x16 { mag: 190594, sign: true }); - data.append(FP16x16 { mag: 21712, sign: true }); - data.append(FP16x16 { mag: 199251, sign: false }); - data.append(FP16x16 { mag: 182464, sign: false }); + data.append(FP16x16 { mag: 114840, sign: true }); + data.append(FP16x16 { mag: 90046, sign: true }); + data.append(FP16x16 { mag: 13419, sign: true }); + data.append(FP16x16 { mag: 67891, sign: false }); + data.append(FP16x16 { mag: 2473, sign: false }); + data.append(FP16x16 { mag: 53134, sign: true }); + data.append(FP16x16 { mag: 42214, sign: true }); + data.append(FP16x16 { mag: 62961, sign: false }); + data.append(FP16x16 { mag: 19822, sign: true }); + data.append(FP16x16 { mag: 263248, sign: false }); + data.append(FP16x16 { mag: 36043, sign: false }); + data.append(FP16x16 { mag: 39237, sign: false }); + data.append(FP16x16 { mag: 97766, sign: true }); + data.append(FP16x16 { mag: 47816, sign: false }); + data.append(FP16x16 { mag: 17567, sign: true }); + data.append(FP16x16 { mag: 26247, sign: true }); + data.append(FP16x16 { mag: 26852, sign: false }); + data.append(FP16x16 { mag: 46147, sign: true }); + data.append(FP16x16 { mag: 87501, sign: false }); + data.append(FP16x16 { mag: 18885, sign: false }); + data.append(FP16x16 { mag: 46581, sign: true }); + data.append(FP16x16 { mag: 51141, sign: true }); + data.append(FP16x16 { mag: 5208, sign: false }); + data.append(FP16x16 { mag: 19988, sign: true }); + data.append(FP16x16 { mag: 29072, sign: true }); + data.append(FP16x16 { mag: 16318, sign: false }); + data.append(FP16x16 { mag: 197324, sign: false }); + data.append(FP16x16 { mag: 79100, sign: true }); + data.append(FP16x16 { mag: 60801, sign: false }); + data.append(FP16x16 { mag: 16170, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon.cairo b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon.cairo index 2c56a29de..e3c602e1f 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon.cairo @@ -4,13 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; - -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -20,14 +19,7 @@ fn test_layer_normalization_3d_axis_negative_3_epsilon() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(3, true)), - Option::Some(FixedTrait::new(6554, false)), - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(-3),Option::Some(FixedTrait::new(6554, false)),Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_0.cairo b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_0.cairo index 2f4da77ea..a06bdacb4 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,35 +10,35 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 73220, sign: false }); - data.append(FP16x16 { mag: 15621, sign: false }); - data.append(FP16x16 { mag: 26862, sign: true }); - data.append(FP16x16 { mag: 63971, sign: false }); - data.append(FP16x16 { mag: 64826, sign: false }); - data.append(FP16x16 { mag: 18837, sign: false }); - data.append(FP16x16 { mag: 66021, sign: true }); - data.append(FP16x16 { mag: 42181, sign: true }); - data.append(FP16x16 { mag: 69342, sign: true }); - data.append(FP16x16 { mag: 72001, sign: true }); - data.append(FP16x16 { mag: 99818, sign: true }); - data.append(FP16x16 { mag: 63088, sign: false }); - data.append(FP16x16 { mag: 17845, sign: true }); - data.append(FP16x16 { mag: 37020, sign: true }); - data.append(FP16x16 { mag: 20567, sign: false }); - data.append(FP16x16 { mag: 1924, sign: true }); - data.append(FP16x16 { mag: 13154, sign: true }); - data.append(FP16x16 { mag: 88735, sign: false }); - data.append(FP16x16 { mag: 40464, sign: false }); - data.append(FP16x16 { mag: 96907, sign: false }); - data.append(FP16x16 { mag: 79699, sign: false }); - data.append(FP16x16 { mag: 91862, sign: true }); - data.append(FP16x16 { mag: 97396, sign: false }); - data.append(FP16x16 { mag: 23929, sign: false }); - data.append(FP16x16 { mag: 11785, sign: true }); - data.append(FP16x16 { mag: 7747, sign: false }); - data.append(FP16x16 { mag: 91889, sign: true }); - data.append(FP16x16 { mag: 16735, sign: true }); - data.append(FP16x16 { mag: 120303, sign: true }); - data.append(FP16x16 { mag: 116144, sign: false }); + data.append(FP16x16 { mag: 176084, sign: true }); + data.append(FP16x16 { mag: 134870, sign: false }); + data.append(FP16x16 { mag: 11194, sign: true }); + data.append(FP16x16 { mag: 34834, sign: true }); + data.append(FP16x16 { mag: 6625, sign: true }); + data.append(FP16x16 { mag: 99311, sign: true }); + data.append(FP16x16 { mag: 84659, sign: true }); + data.append(FP16x16 { mag: 37723, sign: false }); + data.append(FP16x16 { mag: 78508, sign: true }); + data.append(FP16x16 { mag: 31024, sign: false }); + data.append(FP16x16 { mag: 72988, sign: true }); + data.append(FP16x16 { mag: 9818, sign: true }); + data.append(FP16x16 { mag: 34996, sign: false }); + data.append(FP16x16 { mag: 87265, sign: true }); + data.append(FP16x16 { mag: 45795, sign: true }); + data.append(FP16x16 { mag: 45583, sign: true }); + data.append(FP16x16 { mag: 10423, sign: true }); + data.append(FP16x16 { mag: 71376, sign: true }); + data.append(FP16x16 { mag: 31238, sign: true }); + data.append(FP16x16 { mag: 84702, sign: false }); + data.append(FP16x16 { mag: 18617, sign: true }); + data.append(FP16x16 { mag: 90788, sign: false }); + data.append(FP16x16 { mag: 32546, sign: true }); + data.append(FP16x16 { mag: 43302, sign: true }); + data.append(FP16x16 { mag: 90009, sign: true }); + data.append(FP16x16 { mag: 19958, sign: true }); + data.append(FP16x16 { mag: 161585, sign: false }); + data.append(FP16x16 { mag: 40607, sign: false }); + data.append(FP16x16 { mag: 34601, sign: true }); + data.append(FP16x16 { mag: 7286, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_1.cairo b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_1.cairo index 07b6687de..3714dc3b6 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_1.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -10,35 +10,35 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 51329, sign: true }); - data.append(FP16x16 { mag: 47264, sign: true }); - data.append(FP16x16 { mag: 78049, sign: false }); - data.append(FP16x16 { mag: 31332, sign: true }); - data.append(FP16x16 { mag: 64228, sign: false }); - data.append(FP16x16 { mag: 50183, sign: false }); - data.append(FP16x16 { mag: 111933, sign: true }); - data.append(FP16x16 { mag: 37549, sign: true }); - data.append(FP16x16 { mag: 48542, sign: true }); - data.append(FP16x16 { mag: 13252, sign: true }); - data.append(FP16x16 { mag: 63185, sign: true }); - data.append(FP16x16 { mag: 2871, sign: false }); - data.append(FP16x16 { mag: 57251, sign: false }); - data.append(FP16x16 { mag: 15125, sign: true }); - data.append(FP16x16 { mag: 75974, sign: false }); - data.append(FP16x16 { mag: 29448, sign: true }); - data.append(FP16x16 { mag: 118787, sign: false }); - data.append(FP16x16 { mag: 85238, sign: true }); - data.append(FP16x16 { mag: 6392, sign: true }); - data.append(FP16x16 { mag: 32667, sign: true }); - data.append(FP16x16 { mag: 306, sign: false }); - data.append(FP16x16 { mag: 53902, sign: true }); - data.append(FP16x16 { mag: 25940, sign: true }); - data.append(FP16x16 { mag: 38753, sign: true }); - data.append(FP16x16 { mag: 73289, sign: true }); - data.append(FP16x16 { mag: 47552, sign: false }); - data.append(FP16x16 { mag: 27826, sign: false }); - data.append(FP16x16 { mag: 47550, sign: false }); - data.append(FP16x16 { mag: 36199, sign: true }); - data.append(FP16x16 { mag: 43172, sign: false }); + data.append(FP16x16 { mag: 1396, sign: true }); + data.append(FP16x16 { mag: 91738, sign: false }); + data.append(FP16x16 { mag: 22354, sign: false }); + data.append(FP16x16 { mag: 40925, sign: true }); + data.append(FP16x16 { mag: 70890, sign: false }); + data.append(FP16x16 { mag: 64955, sign: false }); + data.append(FP16x16 { mag: 25324, sign: false }); + data.append(FP16x16 { mag: 25230, sign: false }); + data.append(FP16x16 { mag: 142906, sign: true }); + data.append(FP16x16 { mag: 68962, sign: true }); + data.append(FP16x16 { mag: 20940, sign: false }); + data.append(FP16x16 { mag: 107327, sign: true }); + data.append(FP16x16 { mag: 52698, sign: false }); + data.append(FP16x16 { mag: 17542, sign: true }); + data.append(FP16x16 { mag: 125557, sign: false }); + data.append(FP16x16 { mag: 3282, sign: false }); + data.append(FP16x16 { mag: 32752, sign: false }); + data.append(FP16x16 { mag: 38674, sign: false }); + data.append(FP16x16 { mag: 16699, sign: false }); + data.append(FP16x16 { mag: 20489, sign: false }); + data.append(FP16x16 { mag: 24738, sign: true }); + data.append(FP16x16 { mag: 21702, sign: false }); + data.append(FP16x16 { mag: 32990, sign: true }); + data.append(FP16x16 { mag: 73557, sign: false }); + data.append(FP16x16 { mag: 24845, sign: false }); + data.append(FP16x16 { mag: 48972, sign: false }); + data.append(FP16x16 { mag: 23684, sign: false }); + data.append(FP16x16 { mag: 168361, sign: false }); + data.append(FP16x16 { mag: 32800, sign: false }); + data.append(FP16x16 { mag: 66808, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_2.cairo b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_2.cairo index 85700c760..a171b75fd 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_2.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -10,35 +10,35 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6143, sign: false }); - data.append(FP16x16 { mag: 4674, sign: false }); - data.append(FP16x16 { mag: 48051, sign: true }); - data.append(FP16x16 { mag: 18813, sign: false }); - data.append(FP16x16 { mag: 46995, sign: false }); - data.append(FP16x16 { mag: 20870, sign: true }); - data.append(FP16x16 { mag: 56843, sign: false }); - data.append(FP16x16 { mag: 81615, sign: false }); - data.append(FP16x16 { mag: 92340, sign: false }); - data.append(FP16x16 { mag: 84516, sign: false }); - data.append(FP16x16 { mag: 82019, sign: false }); - data.append(FP16x16 { mag: 51674, sign: false }); - data.append(FP16x16 { mag: 52303, sign: false }); - data.append(FP16x16 { mag: 7441, sign: true }); - data.append(FP16x16 { mag: 35138, sign: false }); - data.append(FP16x16 { mag: 78581, sign: false }); - data.append(FP16x16 { mag: 6660, sign: false }); - data.append(FP16x16 { mag: 137669, sign: true }); - data.append(FP16x16 { mag: 12790, sign: true }); - data.append(FP16x16 { mag: 144767, sign: false }); - data.append(FP16x16 { mag: 10893, sign: true }); - data.append(FP16x16 { mag: 26226, sign: true }); - data.append(FP16x16 { mag: 64470, sign: false }); - data.append(FP16x16 { mag: 22466, sign: false }); - data.append(FP16x16 { mag: 101996, sign: true }); - data.append(FP16x16 { mag: 46134, sign: true }); - data.append(FP16x16 { mag: 81851, sign: true }); - data.append(FP16x16 { mag: 176946, sign: false }); - data.append(FP16x16 { mag: 6446, sign: true }); - data.append(FP16x16 { mag: 77193, sign: true }); + data.append(FP16x16 { mag: 47175, sign: false }); + data.append(FP16x16 { mag: 48068, sign: false }); + data.append(FP16x16 { mag: 72715, sign: true }); + data.append(FP16x16 { mag: 40805, sign: true }); + data.append(FP16x16 { mag: 97387, sign: true }); + data.append(FP16x16 { mag: 52917, sign: false }); + data.append(FP16x16 { mag: 16842, sign: false }); + data.append(FP16x16 { mag: 48741, sign: false }); + data.append(FP16x16 { mag: 114144, sign: false }); + data.append(FP16x16 { mag: 5783, sign: false }); + data.append(FP16x16 { mag: 24320, sign: true }); + data.append(FP16x16 { mag: 1477, sign: true }); + data.append(FP16x16 { mag: 101470, sign: false }); + data.append(FP16x16 { mag: 126422, sign: true }); + data.append(FP16x16 { mag: 5733, sign: true }); + data.append(FP16x16 { mag: 97314, sign: true }); + data.append(FP16x16 { mag: 65247, sign: false }); + data.append(FP16x16 { mag: 3443, sign: true }); + data.append(FP16x16 { mag: 16494, sign: true }); + data.append(FP16x16 { mag: 107377, sign: true }); + data.append(FP16x16 { mag: 63019, sign: false }); + data.append(FP16x16 { mag: 2523, sign: false }); + data.append(FP16x16 { mag: 111859, sign: true }); + data.append(FP16x16 { mag: 26857, sign: true }); + data.append(FP16x16 { mag: 19691, sign: true }); + data.append(FP16x16 { mag: 83436, sign: true }); + data.append(FP16x16 { mag: 176674, sign: true }); + data.append(FP16x16 { mag: 21073, sign: true }); + data.append(FP16x16 { mag: 114640, sign: false }); + data.append(FP16x16 { mag: 26239, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/output_0.cairo b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/output_0.cairo index 7d9e964c0..1e902c239 100644 --- a/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/output_0.cairo +++ b/tests/nodes/layer_normalization_3d_axis_negative_3_epsilon/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,35 +10,35 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 46451, sign: true }); - data.append(FP16x16 { mag: 3984, sign: true }); - data.append(FP16x16 { mag: 82191, sign: true }); - data.append(FP16x16 { mag: 9056, sign: true }); - data.append(FP16x16 { mag: 104929, sign: false }); - data.append(FP16x16 { mag: 9318, sign: true }); - data.append(FP16x16 { mag: 169836, sign: false }); - data.append(FP16x16 { mag: 106443, sign: false }); - data.append(FP16x16 { mag: 143696, sign: false }); - data.append(FP16x16 { mag: 99052, sign: false }); - data.append(FP16x16 { mag: 176999, sign: false }); - data.append(FP16x16 { mag: 54192, sign: false }); - data.append(FP16x16 { mag: 34801, sign: false }); - data.append(FP16x16 { mag: 1418, sign: false }); - data.append(FP16x16 { mag: 54547, sign: false }); - data.append(FP16x16 { mag: 80734, sign: false }); - data.append(FP16x16 { mag: 21511, sign: true }); - data.append(FP16x16 { mag: 244326, sign: true }); - data.append(FP16x16 { mag: 16281, sign: true }); - data.append(FP16x16 { mag: 99990, sign: false }); - data.append(FP16x16 { mag: 10550, sign: true }); - data.append(FP16x16 { mag: 48534, sign: false }); - data.append(FP16x16 { mag: 28730, sign: false }); - data.append(FP16x16 { mag: 10662, sign: false }); - data.append(FP16x16 { mag: 86081, sign: true }); - data.append(FP16x16 { mag: 42891, sign: true }); - data.append(FP16x16 { mag: 120456, sign: true }); - data.append(FP16x16 { mag: 163181, sign: false }); - data.append(FP16x16 { mag: 58800, sign: false }); - data.append(FP16x16 { mag: 5886, sign: true }); + data.append(FP16x16 { mag: 50215, sign: false }); + data.append(FP16x16 { mag: 236376, sign: false }); + data.append(FP16x16 { mag: 71242, sign: true }); + data.append(FP16x16 { mag: 30342, sign: true }); + data.append(FP16x16 { mag: 88310, sign: true }); + data.append(FP16x16 { mag: 20655, sign: true }); + data.append(FP16x16 { mag: 6794, sign: true }); + data.append(FP16x16 { mag: 67191, sign: false }); + data.append(FP16x16 { mag: 235574, sign: false }); + data.append(FP16x16 { mag: 38362, sign: true }); + data.append(FP16x16 { mag: 40541, sign: true }); + data.append(FP16x16 { mag: 10558, sign: true }); + data.append(FP16x16 { mag: 138052, sign: false }); + data.append(FP16x16 { mag: 109426, sign: true }); + data.append(FP16x16 { mag: 56553, sign: true }); + data.append(FP16x16 { mag: 98633, sign: true }); + data.append(FP16x16 { mag: 67749, sign: false }); + data.append(FP16x16 { mag: 32554, sign: true }); + data.append(FP16x16 { mag: 19947, sign: true }); + data.append(FP16x16 { mag: 79300, sign: true }); + data.append(FP16x16 { mag: 63887, sign: false }); + data.append(FP16x16 { mag: 34057, sign: false }); + data.append(FP16x16 { mag: 104451, sign: true }); + data.append(FP16x16 { mag: 54136, sign: true }); + data.append(FP16x16 { mag: 44689, sign: true }); + data.append(FP16x16 { mag: 86047, sign: true }); + data.append(FP16x16 { mag: 119451, sign: true }); + data.append(FP16x16 { mag: 108647, sign: false }); + data.append(FP16x16 { mag: 106358, sign: false }); + data.append(FP16x16 { mag: 47435, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis0.cairo b/tests/nodes/layer_normalization_4d_axis0.cairo index 2a3b930ec..45a825cd5 100644 --- a/tests/nodes/layer_normalization_4d_axis0.cairo +++ b/tests/nodes/layer_normalization_4d_axis0.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis0() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(0, false)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(0),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis0/input_0.cairo b/tests/nodes/layer_normalization_4d_axis0/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis0/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis0/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis0/input_1.cairo b/tests/nodes/layer_normalization_4d_axis0/input_1.cairo index d5d19269f..73ee87cac 100644 --- a/tests/nodes/layer_normalization_4d_axis0/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis0/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -11,125 +11,125 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 7856434, sign: false }); - data.append(FP8x23 { mag: 6559353, sign: false }); - data.append(FP8x23 { mag: 2374243, sign: true }); - data.append(FP8x23 { mag: 9038396, sign: true }); - data.append(FP8x23 { mag: 4891209, sign: false }); - data.append(FP8x23 { mag: 10531353, sign: false }); - data.append(FP8x23 { mag: 2374580, sign: false }); - data.append(FP8x23 { mag: 15815884, sign: false }); - data.append(FP8x23 { mag: 8516677, sign: true }); - data.append(FP8x23 { mag: 812409, sign: false }); - data.append(FP8x23 { mag: 17686618, sign: false }); - data.append(FP8x23 { mag: 7197725, sign: false }); - data.append(FP8x23 { mag: 10954258, sign: false }); - data.append(FP8x23 { mag: 8350298, sign: false }); - data.append(FP8x23 { mag: 4666106, sign: true }); - data.append(FP8x23 { mag: 7256064, sign: false }); - data.append(FP8x23 { mag: 8635308, sign: false }); - data.append(FP8x23 { mag: 5024989, sign: false }); - data.append(FP8x23 { mag: 1263377, sign: true }); - data.append(FP8x23 { mag: 10669786, sign: false }); - data.append(FP8x23 { mag: 12365659, sign: true }); - data.append(FP8x23 { mag: 9240214, sign: true }); - data.append(FP8x23 { mag: 6033435, sign: true }); - data.append(FP8x23 { mag: 2813974, sign: false }); - data.append(FP8x23 { mag: 2864389, sign: true }); - data.append(FP8x23 { mag: 7531822, sign: true }); - data.append(FP8x23 { mag: 14534796, sign: false }); - data.append(FP8x23 { mag: 12879313, sign: false }); - data.append(FP8x23 { mag: 23143788, sign: true }); - data.append(FP8x23 { mag: 956451, sign: true }); - data.append(FP8x23 { mag: 140224, sign: false }); - data.append(FP8x23 { mag: 3524534, sign: false }); - data.append(FP8x23 { mag: 9520969, sign: true }); - data.append(FP8x23 { mag: 13151858, sign: true }); - data.append(FP8x23 { mag: 7994295, sign: false }); - data.append(FP8x23 { mag: 5842236, sign: false }); - data.append(FP8x23 { mag: 6780944, sign: false }); - data.append(FP8x23 { mag: 2066721, sign: false }); - data.append(FP8x23 { mag: 2105799, sign: true }); - data.append(FP8x23 { mag: 1298593, sign: true }); - data.append(FP8x23 { mag: 4229235, sign: true }); - data.append(FP8x23 { mag: 7262550, sign: true }); - data.append(FP8x23 { mag: 6216754, sign: false }); - data.append(FP8x23 { mag: 10747679, sign: true }); - data.append(FP8x23 { mag: 6150248, sign: true }); - data.append(FP8x23 { mag: 11662506, sign: true }); - data.append(FP8x23 { mag: 2114116, sign: false }); - data.append(FP8x23 { mag: 3345752, sign: false }); - data.append(FP8x23 { mag: 10971260, sign: false }); - data.append(FP8x23 { mag: 1397404, sign: true }); - data.append(FP8x23 { mag: 7777503, sign: false }); - data.append(FP8x23 { mag: 614354, sign: true }); - data.append(FP8x23 { mag: 2547461, sign: true }); - data.append(FP8x23 { mag: 9306342, sign: false }); - data.append(FP8x23 { mag: 8136902, sign: true }); - data.append(FP8x23 { mag: 2523700, sign: false }); - data.append(FP8x23 { mag: 5851470, sign: true }); - data.append(FP8x23 { mag: 2397709, sign: true }); - data.append(FP8x23 { mag: 2791362, sign: true }); - data.append(FP8x23 { mag: 11438024, sign: true }); - data.append(FP8x23 { mag: 2376167, sign: false }); - data.append(FP8x23 { mag: 11929178, sign: true }); - data.append(FP8x23 { mag: 2334309, sign: false }); - data.append(FP8x23 { mag: 11396586, sign: false }); - data.append(FP8x23 { mag: 9273483, sign: true }); - data.append(FP8x23 { mag: 5663225, sign: true }); - data.append(FP8x23 { mag: 7022748, sign: false }); - data.append(FP8x23 { mag: 3415334, sign: true }); - data.append(FP8x23 { mag: 5583578, sign: false }); - data.append(FP8x23 { mag: 3376007, sign: false }); - data.append(FP8x23 { mag: 9800954, sign: true }); - data.append(FP8x23 { mag: 557269, sign: true }); - data.append(FP8x23 { mag: 1332713, sign: false }); - data.append(FP8x23 { mag: 16394277, sign: false }); - data.append(FP8x23 { mag: 2404128, sign: false }); - data.append(FP8x23 { mag: 7264511, sign: true }); - data.append(FP8x23 { mag: 2959914, sign: false }); - data.append(FP8x23 { mag: 8465123, sign: false }); - data.append(FP8x23 { mag: 2179246, sign: false }); - data.append(FP8x23 { mag: 1403755, sign: true }); - data.append(FP8x23 { mag: 8841557, sign: true }); - data.append(FP8x23 { mag: 714874, sign: true }); - data.append(FP8x23 { mag: 3087264, sign: true }); - data.append(FP8x23 { mag: 3259074, sign: true }); - data.append(FP8x23 { mag: 10403024, sign: true }); - data.append(FP8x23 { mag: 9207515, sign: false }); - data.append(FP8x23 { mag: 10106154, sign: true }); - data.append(FP8x23 { mag: 22441932, sign: false }); - data.append(FP8x23 { mag: 2506462, sign: false }); - data.append(FP8x23 { mag: 7772606, sign: true }); - data.append(FP8x23 { mag: 10066387, sign: false }); - data.append(FP8x23 { mag: 13018190, sign: false }); - data.append(FP8x23 { mag: 551564, sign: true }); - data.append(FP8x23 { mag: 15173981, sign: false }); - data.append(FP8x23 { mag: 537916, sign: true }); - data.append(FP8x23 { mag: 1144261, sign: true }); - data.append(FP8x23 { mag: 10201860, sign: false }); - data.append(FP8x23 { mag: 14629321, sign: false }); - data.append(FP8x23 { mag: 10980985, sign: true }); - data.append(FP8x23 { mag: 8271637, sign: false }); - data.append(FP8x23 { mag: 12637380, sign: false }); - data.append(FP8x23 { mag: 7736607, sign: true }); - data.append(FP8x23 { mag: 1168929, sign: false }); - data.append(FP8x23 { mag: 7719282, sign: false }); - data.append(FP8x23 { mag: 8013562, sign: true }); - data.append(FP8x23 { mag: 1909398, sign: false }); - data.append(FP8x23 { mag: 7909437, sign: false }); - data.append(FP8x23 { mag: 9358508, sign: true }); - data.append(FP8x23 { mag: 2679626, sign: true }); - data.append(FP8x23 { mag: 10816482, sign: false }); - data.append(FP8x23 { mag: 5938359, sign: true }); - data.append(FP8x23 { mag: 3868879, sign: true }); - data.append(FP8x23 { mag: 17720398, sign: false }); - data.append(FP8x23 { mag: 8780306, sign: false }); - data.append(FP8x23 { mag: 8182772, sign: true }); - data.append(FP8x23 { mag: 8474158, sign: true }); - data.append(FP8x23 { mag: 10484711, sign: false }); - data.append(FP8x23 { mag: 6278095, sign: false }); - data.append(FP8x23 { mag: 13616979, sign: false }); - data.append(FP8x23 { mag: 683891, sign: false }); + data.append(FP8x23 { mag: 4232019, sign: false }); + data.append(FP8x23 { mag: 9414959, sign: false }); + data.append(FP8x23 { mag: 5324792, sign: true }); + data.append(FP8x23 { mag: 128763, sign: true }); + data.append(FP8x23 { mag: 11769934, sign: true }); + data.append(FP8x23 { mag: 5782115, sign: true }); + data.append(FP8x23 { mag: 5288267, sign: false }); + data.append(FP8x23 { mag: 2114632, sign: true }); + data.append(FP8x23 { mag: 17281796, sign: true }); + data.append(FP8x23 { mag: 4231838, sign: false }); + data.append(FP8x23 { mag: 8315803, sign: true }); + data.append(FP8x23 { mag: 3959008, sign: true }); + data.append(FP8x23 { mag: 8316806, sign: false }); + data.append(FP8x23 { mag: 10504447, sign: false }); + data.append(FP8x23 { mag: 11309414, sign: false }); + data.append(FP8x23 { mag: 4354704, sign: false }); + data.append(FP8x23 { mag: 11441280, sign: false }); + data.append(FP8x23 { mag: 1670098, sign: false }); + data.append(FP8x23 { mag: 5359432, sign: false }); + data.append(FP8x23 { mag: 9566567, sign: false }); + data.append(FP8x23 { mag: 862169, sign: false }); + data.append(FP8x23 { mag: 3592849, sign: true }); + data.append(FP8x23 { mag: 6354821, sign: false }); + data.append(FP8x23 { mag: 15286515, sign: true }); + data.append(FP8x23 { mag: 6568954, sign: false }); + data.append(FP8x23 { mag: 8783522, sign: true }); + data.append(FP8x23 { mag: 13773893, sign: true }); + data.append(FP8x23 { mag: 492845, sign: true }); + data.append(FP8x23 { mag: 4346782, sign: true }); + data.append(FP8x23 { mag: 13743203, sign: false }); + data.append(FP8x23 { mag: 18494036, sign: true }); + data.append(FP8x23 { mag: 698252, sign: false }); + data.append(FP8x23 { mag: 1015292, sign: false }); + data.append(FP8x23 { mag: 24111832, sign: true }); + data.append(FP8x23 { mag: 9435828, sign: false }); + data.append(FP8x23 { mag: 314313, sign: true }); + data.append(FP8x23 { mag: 1064978, sign: false }); + data.append(FP8x23 { mag: 5250829, sign: true }); + data.append(FP8x23 { mag: 12141758, sign: false }); + data.append(FP8x23 { mag: 10504567, sign: false }); + data.append(FP8x23 { mag: 3704533, sign: true }); + data.append(FP8x23 { mag: 2768767, sign: false }); + data.append(FP8x23 { mag: 2231142, sign: true }); + data.append(FP8x23 { mag: 463985, sign: true }); + data.append(FP8x23 { mag: 3370932, sign: false }); + data.append(FP8x23 { mag: 7362219, sign: true }); + data.append(FP8x23 { mag: 764387, sign: false }); + data.append(FP8x23 { mag: 1457716, sign: false }); + data.append(FP8x23 { mag: 126049, sign: true }); + data.append(FP8x23 { mag: 3918899, sign: true }); + data.append(FP8x23 { mag: 270524, sign: true }); + data.append(FP8x23 { mag: 11137441, sign: true }); + data.append(FP8x23 { mag: 1444337, sign: true }); + data.append(FP8x23 { mag: 8488962, sign: true }); + data.append(FP8x23 { mag: 7123331, sign: false }); + data.append(FP8x23 { mag: 8201855, sign: false }); + data.append(FP8x23 { mag: 6222805, sign: true }); + data.append(FP8x23 { mag: 6386507, sign: true }); + data.append(FP8x23 { mag: 290309, sign: true }); + data.append(FP8x23 { mag: 11420835, sign: true }); + data.append(FP8x23 { mag: 13222036, sign: true }); + data.append(FP8x23 { mag: 9057537, sign: true }); + data.append(FP8x23 { mag: 8642815, sign: true }); + data.append(FP8x23 { mag: 4838046, sign: false }); + data.append(FP8x23 { mag: 1764850, sign: false }); + data.append(FP8x23 { mag: 3928761, sign: true }); + data.append(FP8x23 { mag: 7064763, sign: true }); + data.append(FP8x23 { mag: 892586, sign: false }); + data.append(FP8x23 { mag: 1449, sign: true }); + data.append(FP8x23 { mag: 3997728, sign: true }); + data.append(FP8x23 { mag: 1617748, sign: true }); + data.append(FP8x23 { mag: 6798862, sign: true }); + data.append(FP8x23 { mag: 5931349, sign: true }); + data.append(FP8x23 { mag: 3729811, sign: false }); + data.append(FP8x23 { mag: 855198, sign: false }); + data.append(FP8x23 { mag: 8389855, sign: false }); + data.append(FP8x23 { mag: 26774346, sign: false }); + data.append(FP8x23 { mag: 2663191, sign: true }); + data.append(FP8x23 { mag: 478906, sign: true }); + data.append(FP8x23 { mag: 3544579, sign: true }); + data.append(FP8x23 { mag: 4402933, sign: true }); + data.append(FP8x23 { mag: 1577028, sign: false }); + data.append(FP8x23 { mag: 7590409, sign: true }); + data.append(FP8x23 { mag: 5962040, sign: false }); + data.append(FP8x23 { mag: 3561389, sign: true }); + data.append(FP8x23 { mag: 2575361, sign: true }); + data.append(FP8x23 { mag: 12645527, sign: false }); + data.append(FP8x23 { mag: 1847218, sign: false }); + data.append(FP8x23 { mag: 2636782, sign: false }); + data.append(FP8x23 { mag: 4503268, sign: true }); + data.append(FP8x23 { mag: 10772561, sign: false }); + data.append(FP8x23 { mag: 2286333, sign: false }); + data.append(FP8x23 { mag: 5685346, sign: true }); + data.append(FP8x23 { mag: 2568535, sign: false }); + data.append(FP8x23 { mag: 2808778, sign: false }); + data.append(FP8x23 { mag: 6059521, sign: true }); + data.append(FP8x23 { mag: 5806019, sign: false }); + data.append(FP8x23 { mag: 3326381, sign: false }); + data.append(FP8x23 { mag: 11284680, sign: true }); + data.append(FP8x23 { mag: 3394, sign: true }); + data.append(FP8x23 { mag: 6295530, sign: false }); + data.append(FP8x23 { mag: 676486, sign: false }); + data.append(FP8x23 { mag: 3288573, sign: false }); + data.append(FP8x23 { mag: 9587575, sign: false }); + data.append(FP8x23 { mag: 5976725, sign: false }); + data.append(FP8x23 { mag: 3165322, sign: false }); + data.append(FP8x23 { mag: 14451783, sign: false }); + data.append(FP8x23 { mag: 957597, sign: true }); + data.append(FP8x23 { mag: 9305994, sign: true }); + data.append(FP8x23 { mag: 9337821, sign: false }); + data.append(FP8x23 { mag: 11604104, sign: true }); + data.append(FP8x23 { mag: 12009648, sign: false }); + data.append(FP8x23 { mag: 11962518, sign: false }); + data.append(FP8x23 { mag: 9762105, sign: false }); + data.append(FP8x23 { mag: 16290091, sign: false }); + data.append(FP8x23 { mag: 2582084, sign: true }); + data.append(FP8x23 { mag: 11396864, sign: false }); + data.append(FP8x23 { mag: 2647521, sign: true }); + data.append(FP8x23 { mag: 5459088, sign: true }); + data.append(FP8x23 { mag: 6242592, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis0/input_2.cairo b/tests/nodes/layer_normalization_4d_axis0/input_2.cairo index 576e62784..e7a659c10 100644 --- a/tests/nodes/layer_normalization_4d_axis0/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis0/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -11,125 +11,125 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 2658357, sign: true }); - data.append(FP8x23 { mag: 1102321, sign: true }); - data.append(FP8x23 { mag: 9403754, sign: false }); - data.append(FP8x23 { mag: 6280169, sign: true }); - data.append(FP8x23 { mag: 322990, sign: true }); - data.append(FP8x23 { mag: 1855990, sign: false }); - data.append(FP8x23 { mag: 7959357, sign: false }); - data.append(FP8x23 { mag: 3813579, sign: true }); - data.append(FP8x23 { mag: 17190620, sign: false }); - data.append(FP8x23 { mag: 7625388, sign: false }); - data.append(FP8x23 { mag: 6326665, sign: true }); - data.append(FP8x23 { mag: 2144242, sign: false }); - data.append(FP8x23 { mag: 1652040, sign: true }); - data.append(FP8x23 { mag: 1708413, sign: true }); - data.append(FP8x23 { mag: 5577434, sign: false }); - data.append(FP8x23 { mag: 12958978, sign: false }); - data.append(FP8x23 { mag: 14472776, sign: true }); - data.append(FP8x23 { mag: 12142315, sign: true }); - data.append(FP8x23 { mag: 5004137, sign: true }); - data.append(FP8x23 { mag: 10687620, sign: false }); - data.append(FP8x23 { mag: 11911291, sign: true }); - data.append(FP8x23 { mag: 10598514, sign: true }); - data.append(FP8x23 { mag: 2129772, sign: true }); - data.append(FP8x23 { mag: 6883996, sign: false }); - data.append(FP8x23 { mag: 4546950, sign: true }); - data.append(FP8x23 { mag: 3450860, sign: true }); - data.append(FP8x23 { mag: 1775511, sign: true }); - data.append(FP8x23 { mag: 512918, sign: false }); - data.append(FP8x23 { mag: 3693486, sign: false }); - data.append(FP8x23 { mag: 4656135, sign: true }); - data.append(FP8x23 { mag: 5018284, sign: false }); - data.append(FP8x23 { mag: 17579972, sign: false }); - data.append(FP8x23 { mag: 5429984, sign: true }); - data.append(FP8x23 { mag: 3455574, sign: false }); - data.append(FP8x23 { mag: 2776885, sign: false }); - data.append(FP8x23 { mag: 12394373, sign: false }); - data.append(FP8x23 { mag: 12252363, sign: true }); - data.append(FP8x23 { mag: 9655402, sign: false }); - data.append(FP8x23 { mag: 11694762, sign: false }); - data.append(FP8x23 { mag: 2352758, sign: false }); - data.append(FP8x23 { mag: 14214209, sign: false }); - data.append(FP8x23 { mag: 4904045, sign: true }); - data.append(FP8x23 { mag: 750954, sign: false }); - data.append(FP8x23 { mag: 5521106, sign: true }); - data.append(FP8x23 { mag: 8124032, sign: true }); - data.append(FP8x23 { mag: 3155244, sign: true }); - data.append(FP8x23 { mag: 2794749, sign: true }); - data.append(FP8x23 { mag: 11913728, sign: true }); - data.append(FP8x23 { mag: 3406536, sign: false }); - data.append(FP8x23 { mag: 17572360, sign: false }); - data.append(FP8x23 { mag: 3846474, sign: false }); - data.append(FP8x23 { mag: 4679753, sign: true }); - data.append(FP8x23 { mag: 3526965, sign: false }); - data.append(FP8x23 { mag: 2361175, sign: true }); - data.append(FP8x23 { mag: 6800555, sign: false }); - data.append(FP8x23 { mag: 8765096, sign: false }); - data.append(FP8x23 { mag: 2069919, sign: true }); - data.append(FP8x23 { mag: 10541365, sign: false }); - data.append(FP8x23 { mag: 5702066, sign: false }); - data.append(FP8x23 { mag: 1901244, sign: true }); - data.append(FP8x23 { mag: 4795815, sign: true }); - data.append(FP8x23 { mag: 5440175, sign: true }); - data.append(FP8x23 { mag: 6145038, sign: true }); - data.append(FP8x23 { mag: 8155758, sign: true }); - data.append(FP8x23 { mag: 12882916, sign: false }); - data.append(FP8x23 { mag: 8512317, sign: true }); - data.append(FP8x23 { mag: 8827800, sign: false }); - data.append(FP8x23 { mag: 4780680, sign: true }); - data.append(FP8x23 { mag: 10233073, sign: false }); - data.append(FP8x23 { mag: 3987405, sign: false }); - data.append(FP8x23 { mag: 9797702, sign: true }); - data.append(FP8x23 { mag: 11709163, sign: true }); - data.append(FP8x23 { mag: 5010523, sign: false }); - data.append(FP8x23 { mag: 5898579, sign: false }); - data.append(FP8x23 { mag: 3610233, sign: false }); - data.append(FP8x23 { mag: 4366597, sign: true }); - data.append(FP8x23 { mag: 4121505, sign: false }); - data.append(FP8x23 { mag: 1386837, sign: true }); - data.append(FP8x23 { mag: 2197332, sign: false }); - data.append(FP8x23 { mag: 1583611, sign: false }); - data.append(FP8x23 { mag: 1204922, sign: false }); - data.append(FP8x23 { mag: 1731995, sign: true }); - data.append(FP8x23 { mag: 1196413, sign: true }); - data.append(FP8x23 { mag: 11399971, sign: true }); - data.append(FP8x23 { mag: 1303591, sign: true }); - data.append(FP8x23 { mag: 1306507, sign: true }); - data.append(FP8x23 { mag: 8296480, sign: false }); - data.append(FP8x23 { mag: 6644877, sign: true }); - data.append(FP8x23 { mag: 7522441, sign: false }); - data.append(FP8x23 { mag: 13195509, sign: false }); - data.append(FP8x23 { mag: 5912413, sign: false }); - data.append(FP8x23 { mag: 6827008, sign: true }); - data.append(FP8x23 { mag: 6046144, sign: true }); - data.append(FP8x23 { mag: 8475255, sign: true }); - data.append(FP8x23 { mag: 15398520, sign: false }); - data.append(FP8x23 { mag: 2626721, sign: false }); - data.append(FP8x23 { mag: 4142304, sign: true }); - data.append(FP8x23 { mag: 6868178, sign: false }); - data.append(FP8x23 { mag: 1537408, sign: true }); - data.append(FP8x23 { mag: 4760507, sign: true }); - data.append(FP8x23 { mag: 16526955, sign: false }); - data.append(FP8x23 { mag: 4766056, sign: false }); - data.append(FP8x23 { mag: 4099142, sign: true }); - data.append(FP8x23 { mag: 2694894, sign: false }); - data.append(FP8x23 { mag: 6008844, sign: true }); - data.append(FP8x23 { mag: 15054491, sign: false }); - data.append(FP8x23 { mag: 2926959, sign: true }); - data.append(FP8x23 { mag: 4325199, sign: false }); - data.append(FP8x23 { mag: 1262017, sign: false }); - data.append(FP8x23 { mag: 8352226, sign: false }); - data.append(FP8x23 { mag: 5432226, sign: true }); - data.append(FP8x23 { mag: 7565847, sign: true }); - data.append(FP8x23 { mag: 1398099, sign: true }); - data.append(FP8x23 { mag: 10744126, sign: false }); - data.append(FP8x23 { mag: 10154080, sign: false }); - data.append(FP8x23 { mag: 543398, sign: true }); - data.append(FP8x23 { mag: 4199815, sign: false }); - data.append(FP8x23 { mag: 3981547, sign: false }); - data.append(FP8x23 { mag: 3843559, sign: true }); - data.append(FP8x23 { mag: 2002995, sign: false }); + data.append(FP8x23 { mag: 182533, sign: false }); + data.append(FP8x23 { mag: 4606354, sign: false }); + data.append(FP8x23 { mag: 2606279, sign: false }); + data.append(FP8x23 { mag: 1836291, sign: true }); + data.append(FP8x23 { mag: 776462, sign: true }); + data.append(FP8x23 { mag: 4201430, sign: true }); + data.append(FP8x23 { mag: 8864747, sign: true }); + data.append(FP8x23 { mag: 21878440, sign: false }); + data.append(FP8x23 { mag: 19190702, sign: false }); + data.append(FP8x23 { mag: 11081136, sign: true }); + data.append(FP8x23 { mag: 1846544, sign: true }); + data.append(FP8x23 { mag: 2650079, sign: false }); + data.append(FP8x23 { mag: 10380200, sign: true }); + data.append(FP8x23 { mag: 16036666, sign: false }); + data.append(FP8x23 { mag: 1787011, sign: true }); + data.append(FP8x23 { mag: 5182057, sign: true }); + data.append(FP8x23 { mag: 4948965, sign: false }); + data.append(FP8x23 { mag: 1044138, sign: true }); + data.append(FP8x23 { mag: 8227229, sign: false }); + data.append(FP8x23 { mag: 6051373, sign: false }); + data.append(FP8x23 { mag: 11195256, sign: true }); + data.append(FP8x23 { mag: 5163053, sign: true }); + data.append(FP8x23 { mag: 6205135, sign: true }); + data.append(FP8x23 { mag: 1407165, sign: true }); + data.append(FP8x23 { mag: 9476520, sign: true }); + data.append(FP8x23 { mag: 4988598, sign: false }); + data.append(FP8x23 { mag: 2193447, sign: false }); + data.append(FP8x23 { mag: 1745083, sign: true }); + data.append(FP8x23 { mag: 1212564, sign: true }); + data.append(FP8x23 { mag: 4135245, sign: false }); + data.append(FP8x23 { mag: 17634618, sign: true }); + data.append(FP8x23 { mag: 10822064, sign: true }); + data.append(FP8x23 { mag: 1364135, sign: true }); + data.append(FP8x23 { mag: 3398124, sign: false }); + data.append(FP8x23 { mag: 6510555, sign: false }); + data.append(FP8x23 { mag: 2305050, sign: true }); + data.append(FP8x23 { mag: 5031243, sign: true }); + data.append(FP8x23 { mag: 7136078, sign: false }); + data.append(FP8x23 { mag: 13141474, sign: false }); + data.append(FP8x23 { mag: 4393622, sign: true }); + data.append(FP8x23 { mag: 19109898, sign: true }); + data.append(FP8x23 { mag: 1560166, sign: false }); + data.append(FP8x23 { mag: 19533432, sign: true }); + data.append(FP8x23 { mag: 3037078, sign: false }); + data.append(FP8x23 { mag: 3096676, sign: false }); + data.append(FP8x23 { mag: 738457, sign: true }); + data.append(FP8x23 { mag: 3674711, sign: false }); + data.append(FP8x23 { mag: 5430008, sign: false }); + data.append(FP8x23 { mag: 736298, sign: true }); + data.append(FP8x23 { mag: 2054313, sign: false }); + data.append(FP8x23 { mag: 12914497, sign: false }); + data.append(FP8x23 { mag: 13798454, sign: false }); + data.append(FP8x23 { mag: 5461689, sign: false }); + data.append(FP8x23 { mag: 4431607, sign: true }); + data.append(FP8x23 { mag: 3866629, sign: false }); + data.append(FP8x23 { mag: 7574228, sign: false }); + data.append(FP8x23 { mag: 5892835, sign: true }); + data.append(FP8x23 { mag: 5213653, sign: false }); + data.append(FP8x23 { mag: 13585100, sign: true }); + data.append(FP8x23 { mag: 5868984, sign: true }); + data.append(FP8x23 { mag: 10449856, sign: true }); + data.append(FP8x23 { mag: 21849164, sign: true }); + data.append(FP8x23 { mag: 794675, sign: false }); + data.append(FP8x23 { mag: 1398016, sign: true }); + data.append(FP8x23 { mag: 3721883, sign: true }); + data.append(FP8x23 { mag: 8554286, sign: false }); + data.append(FP8x23 { mag: 8999503, sign: true }); + data.append(FP8x23 { mag: 1477321, sign: true }); + data.append(FP8x23 { mag: 1134818, sign: true }); + data.append(FP8x23 { mag: 16218611, sign: true }); + data.append(FP8x23 { mag: 3781667, sign: true }); + data.append(FP8x23 { mag: 6030933, sign: true }); + data.append(FP8x23 { mag: 7143546, sign: false }); + data.append(FP8x23 { mag: 2401444, sign: false }); + data.append(FP8x23 { mag: 9745432, sign: true }); + data.append(FP8x23 { mag: 8637640, sign: true }); + data.append(FP8x23 { mag: 3338635, sign: true }); + data.append(FP8x23 { mag: 5511234, sign: true }); + data.append(FP8x23 { mag: 8132204, sign: false }); + data.append(FP8x23 { mag: 11108457, sign: false }); + data.append(FP8x23 { mag: 8013075, sign: true }); + data.append(FP8x23 { mag: 5479938, sign: true }); + data.append(FP8x23 { mag: 135261, sign: true }); + data.append(FP8x23 { mag: 4611320, sign: false }); + data.append(FP8x23 { mag: 14790095, sign: false }); + data.append(FP8x23 { mag: 524231, sign: false }); + data.append(FP8x23 { mag: 6893361, sign: false }); + data.append(FP8x23 { mag: 7042414, sign: true }); + data.append(FP8x23 { mag: 3401594, sign: true }); + data.append(FP8x23 { mag: 8037410, sign: true }); + data.append(FP8x23 { mag: 18738864, sign: true }); + data.append(FP8x23 { mag: 4145636, sign: true }); + data.append(FP8x23 { mag: 15480272, sign: false }); + data.append(FP8x23 { mag: 1088523, sign: false }); + data.append(FP8x23 { mag: 13142920, sign: true }); + data.append(FP8x23 { mag: 16094435, sign: true }); + data.append(FP8x23 { mag: 9691265, sign: true }); + data.append(FP8x23 { mag: 2069802, sign: false }); + data.append(FP8x23 { mag: 3346902, sign: true }); + data.append(FP8x23 { mag: 6260557, sign: false }); + data.append(FP8x23 { mag: 2084721, sign: false }); + data.append(FP8x23 { mag: 5605861, sign: true }); + data.append(FP8x23 { mag: 7801239, sign: true }); + data.append(FP8x23 { mag: 14879763, sign: false }); + data.append(FP8x23 { mag: 11315182, sign: false }); + data.append(FP8x23 { mag: 21418632, sign: true }); + data.append(FP8x23 { mag: 2158442, sign: true }); + data.append(FP8x23 { mag: 12606992, sign: false }); + data.append(FP8x23 { mag: 11320753, sign: true }); + data.append(FP8x23 { mag: 5226692, sign: true }); + data.append(FP8x23 { mag: 13332767, sign: true }); + data.append(FP8x23 { mag: 10821589, sign: true }); + data.append(FP8x23 { mag: 17468832, sign: true }); + data.append(FP8x23 { mag: 4250356, sign: false }); + data.append(FP8x23 { mag: 2191593, sign: false }); + data.append(FP8x23 { mag: 11413254, sign: false }); + data.append(FP8x23 { mag: 3410953, sign: false }); + data.append(FP8x23 { mag: 7124555, sign: true }); + data.append(FP8x23 { mag: 5373506, sign: false }); + data.append(FP8x23 { mag: 1372494, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis0/output_0.cairo b/tests/nodes/layer_normalization_4d_axis0/output_0.cairo index ecfa40d38..f934071d5 100644 --- a/tests/nodes/layer_normalization_4d_axis0/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis0/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 11485245, sign: true }); - data.append(FP8x23 { mag: 8639736, sign: false }); - data.append(FP8x23 { mag: 9066761, sign: false }); - data.append(FP8x23 { mag: 1246285, sign: false }); - data.append(FP8x23 { mag: 8785751, sign: false }); - data.append(FP8x23 { mag: 22458580, sign: false }); - data.append(FP8x23 { mag: 7798869, sign: false }); - data.append(FP8x23 { mag: 9335609, sign: true }); - data.append(FP8x23 { mag: 8762101, sign: false }); - data.append(FP8x23 { mag: 7044940, sign: false }); - data.append(FP8x23 { mag: 17548656, sign: true }); - data.append(FP8x23 { mag: 1433318, sign: true }); - data.append(FP8x23 { mag: 29332314, sign: false }); - data.append(FP8x23 { mag: 9109826, sign: true }); - data.append(FP8x23 { mag: 2201931, sign: false }); - data.append(FP8x23 { mag: 8615226, sign: false }); - data.append(FP8x23 { mag: 10650534, sign: true }); - data.append(FP8x23 { mag: 13610117, sign: true }); - data.append(FP8x23 { mag: 5870152, sign: true }); - data.append(FP8x23 { mag: 282205, sign: true }); - data.append(FP8x23 { mag: 8192649, sign: true }); - data.append(FP8x23 { mag: 19142176, sign: true }); - data.append(FP8x23 { mag: 2631691, sign: true }); - data.append(FP8x23 { mag: 12334894, sign: false }); - data.append(FP8x23 { mag: 7174919, sign: true }); - data.append(FP8x23 { mag: 7215017, sign: false }); - data.append(FP8x23 { mag: 3412223, sign: false }); - data.append(FP8x23 { mag: 1059551, sign: false }); - data.append(FP8x23 { mag: 11556768, sign: false }); - data.append(FP8x23 { mag: 4721233, sign: true }); - data.append(FP8x23 { mag: 4836688, sign: false }); - data.append(FP8x23 { mag: 18053380, sign: false }); - data.append(FP8x23 { mag: 8322237, sign: true }); - data.append(FP8x23 { mag: 4030251, sign: true }); - data.append(FP8x23 { mag: 11736265, sign: false }); - data.append(FP8x23 { mag: 4467248, sign: false }); - data.append(FP8x23 { mag: 21199784, sign: true }); - data.append(FP8x23 { mag: 8911549, sign: false }); - data.append(FP8x23 { mag: 13309004, sign: false }); - data.append(FP8x23 { mag: 1906941, sign: false }); - data.append(FP8x23 { mag: 16291191, sign: false }); - data.append(FP8x23 { mag: 9102967, sign: true }); - data.append(FP8x23 { mag: 6868689, sign: false }); - data.append(FP8x23 { mag: 1406769, sign: false }); - data.append(FP8x23 { mag: 15510274, sign: true }); - data.append(FP8x23 { mag: 12477229, sign: false }); - data.append(FP8x23 { mag: 1801263, sign: true }); - data.append(FP8x23 { mag: 12190927, sign: true }); - data.append(FP8x23 { mag: 8150830, sign: true }); - data.append(FP8x23 { mag: 16296984, sign: false }); - data.append(FP8x23 { mag: 151497, sign: true }); - data.append(FP8x23 { mag: 4624143, sign: true }); - data.append(FP8x23 { mag: 4093028, sign: false }); - data.append(FP8x23 { mag: 3575281, sign: true }); - data.append(FP8x23 { mag: 3333834, sign: true }); - data.append(FP8x23 { mag: 10688711, sign: false }); - data.append(FP8x23 { mag: 3136147, sign: true }); - data.append(FP8x23 { mag: 13927308, sign: false }); - data.append(FP8x23 { mag: 5320165, sign: false }); - data.append(FP8x23 { mag: 4522953, sign: true }); - data.append(FP8x23 { mag: 6562536, sign: true }); - data.append(FP8x23 { mag: 302568, sign: false }); - data.append(FP8x23 { mag: 365858, sign: true }); - data.append(FP8x23 { mag: 8333322, sign: true }); - data.append(FP8x23 { mag: 24012324, sign: false }); - data.append(FP8x23 { mag: 3941235, sign: true }); - data.append(FP8x23 { mag: 12585527, sign: false }); - data.append(FP8x23 { mag: 2108236, sign: false }); - data.append(FP8x23 { mag: 2180042, sign: false }); - data.append(FP8x23 { mag: 809995, sign: false }); - data.append(FP8x23 { mag: 10706503, sign: true }); - data.append(FP8x23 { mag: 11768835, sign: true }); - data.append(FP8x23 { mag: 4368724, sign: false }); - data.append(FP8x23 { mag: 37121360, sign: false }); - data.append(FP8x23 { mag: 1690481, sign: false }); - data.append(FP8x23 { mag: 12472568, sign: true }); - data.append(FP8x23 { mag: 5896973, sign: false }); - data.append(FP8x23 { mag: 3128197, sign: true }); - data.append(FP8x23 { mag: 2706830, sign: false }); - data.append(FP8x23 { mag: 3121650, sign: false }); - data.append(FP8x23 { mag: 11032154, sign: true }); - data.append(FP8x23 { mag: 1400313, sign: true }); - data.append(FP8x23 { mag: 9391938, sign: true }); - data.append(FP8x23 { mag: 14493685, sign: true }); - data.append(FP8x23 { mag: 7510374, sign: false }); - data.append(FP8x23 { mag: 8488401, sign: false }); - data.append(FP8x23 { mag: 11134086, sign: false }); - data.append(FP8x23 { mag: 20440816, sign: true }); - data.append(FP8x23 { mag: 4187458, sign: false }); - data.append(FP8x23 { mag: 15662241, sign: false }); - data.append(FP8x23 { mag: 1227645, sign: true }); - data.append(FP8x23 { mag: 20756332, sign: true }); - data.append(FP8x23 { mag: 6096698, sign: true }); - data.append(FP8x23 { mag: 32393544, sign: true }); - data.append(FP8x23 { mag: 16110731, sign: false }); - data.append(FP8x23 { mag: 2419478, sign: false }); - data.append(FP8x23 { mag: 5840805, sign: true }); - data.append(FP8x23 { mag: 30053754, sign: false }); - data.append(FP8x23 { mag: 2156172, sign: false }); - data.append(FP8x23 { mag: 4688839, sign: true }); - data.append(FP8x23 { mag: 2943892, sign: false }); - data.append(FP8x23 { mag: 2536186, sign: false }); - data.append(FP8x23 { mag: 2204937, sign: true }); - data.append(FP8x23 { mag: 3688586, sign: false }); - data.append(FP8x23 { mag: 4819133, sign: true }); - data.append(FP8x23 { mag: 12194435, sign: false }); - data.append(FP8x23 { mag: 2196191, sign: true }); - data.append(FP8x23 { mag: 11984318, sign: false }); - data.append(FP8x23 { mag: 3501392, sign: true }); - data.append(FP8x23 { mag: 19567274, sign: false }); - data.append(FP8x23 { mag: 7228652, sign: true }); - data.append(FP8x23 { mag: 6148920, sign: true }); - data.append(FP8x23 { mag: 9655568, sign: true }); - data.append(FP8x23 { mag: 8030332, sign: false }); - data.append(FP8x23 { mag: 8497492, sign: false }); - data.append(FP8x23 { mag: 18119870, sign: true }); - data.append(FP8x23 { mag: 11121997, sign: true }); - data.append(FP8x23 { mag: 6433851, sign: false }); - data.append(FP8x23 { mag: 24247440, sign: true }); - data.append(FP8x23 { mag: 1697336, sign: false }); + data.append(FP8x23 { mag: 7037577, sign: true }); + data.append(FP8x23 { mag: 14724418, sign: true }); + data.append(FP8x23 { mag: 3022586, sign: false }); + data.append(FP8x23 { mag: 1787971, sign: true }); + data.append(FP8x23 { mag: 17806604, sign: true }); + data.append(FP8x23 { mag: 10204453, sign: true }); + data.append(FP8x23 { mag: 7120407, sign: true }); + data.append(FP8x23 { mag: 24452990, sign: false }); + data.append(FP8x23 { mag: 26784136, sign: false }); + data.append(FP8x23 { mag: 14295083, sign: true }); + data.append(FP8x23 { mag: 5218924, sign: false }); + data.append(FP8x23 { mag: 2070471, sign: true }); + data.append(FP8x23 { mag: 8872511, sign: true }); + data.append(FP8x23 { mag: 5973684, sign: false }); + data.append(FP8x23 { mag: 6132282, sign: false }); + data.append(FP8x23 { mag: 225177, sign: false }); + data.append(FP8x23 { mag: 64604, sign: true }); + data.append(FP8x23 { mag: 1153317, sign: false }); + data.append(FP8x23 { mag: 5677642, sign: false }); + data.append(FP8x23 { mag: 7078033, sign: true }); + data.append(FP8x23 { mag: 11042504, sign: true }); + data.append(FP8x23 { mag: 4603322, sign: true }); + data.append(FP8x23 { mag: 6567126, sign: true }); + data.append(FP8x23 { mag: 12650194, sign: false }); + data.append(FP8x23 { mag: 11303708, sign: true }); + data.append(FP8x23 { mag: 8870792, sign: false }); + data.append(FP8x23 { mag: 10416405, sign: true }); + data.append(FP8x23 { mag: 1456034, sign: true }); + data.append(FP8x23 { mag: 2767, sign: false }); + data.append(FP8x23 { mag: 8707088, sign: true }); + data.append(FP8x23 { mag: 22040482, sign: false }); + data.append(FP8x23 { mag: 10160538, sign: true }); + data.append(FP8x23 { mag: 3218779, sign: true }); + data.append(FP8x23 { mag: 47819348, sign: true }); + data.append(FP8x23 { mag: 12301572, sign: false }); + data.append(FP8x23 { mag: 2039057, sign: true }); + data.append(FP8x23 { mag: 3248913, sign: true }); + data.append(FP8x23 { mag: 1237417, sign: false }); + data.append(FP8x23 { mag: 31046658, sign: false }); + data.append(FP8x23 { mag: 17809218, sign: true }); + data.append(FP8x23 { mag: 20730340, sign: true }); + data.append(FP8x23 { mag: 5032377, sign: true }); + data.append(FP8x23 { mag: 20401240, sign: true }); + data.append(FP8x23 { mag: 3165594, sign: false }); + data.append(FP8x23 { mag: 280886, sign: true }); + data.append(FP8x23 { mag: 3396857, sign: false }); + data.append(FP8x23 { mag: 4682179, sign: false }); + data.append(FP8x23 { mag: 4616465, sign: false }); + data.append(FP8x23 { mag: 745478, sign: true }); + data.append(FP8x23 { mag: 1001749, sign: false }); + data.append(FP8x23 { mag: 12734723, sign: false }); + data.append(FP8x23 { mag: 3225686, sign: false }); + data.append(FP8x23 { mag: 5270924, sign: false }); + data.append(FP8x23 { mag: 10999454, sign: true }); + data.append(FP8x23 { mag: 6343230, sign: false }); + data.append(FP8x23 { mag: 10666792, sign: false }); + data.append(FP8x23 { mag: 12757594, sign: true }); + data.append(FP8x23 { mag: 7665874, sign: false }); + data.append(FP8x23 { mag: 14022398, sign: true }); + data.append(FP8x23 { mag: 8373909, sign: true }); + data.append(FP8x23 { mag: 13868518, sign: true }); + data.append(FP8x23 { mag: 2214998, sign: true }); + data.append(FP8x23 { mag: 18125466, sign: true }); + data.append(FP8x23 { mag: 5735991, sign: true }); + data.append(FP8x23 { mag: 22940, sign: false }); + data.append(FP8x23 { mag: 18790208, sign: false }); + data.append(FP8x23 { mag: 15120878, sign: true }); + data.append(FP8x23 { mag: 1545451, sign: true }); + data.append(FP8x23 { mag: 1134904, sign: true }); + data.append(FP8x23 { mag: 17024186, sign: true }); + data.append(FP8x23 { mag: 4435868, sign: true }); + data.append(FP8x23 { mag: 1831345, sign: true }); + data.append(FP8x23 { mag: 12326800, sign: false }); + data.append(FP8x23 { mag: 2081182, sign: false }); + data.append(FP8x23 { mag: 10111056, sign: true }); + data.append(FP8x23 { mag: 11797644, sign: true }); + data.append(FP8x23 { mag: 13957666, sign: true }); + data.append(FP8x23 { mag: 9751228, sign: true }); + data.append(FP8x23 { mag: 8166369, sign: false }); + data.append(FP8x23 { mag: 14472534, sign: false }); + data.append(FP8x23 { mag: 5787050, sign: true }); + data.append(FP8x23 { mag: 5167903, sign: true }); + data.append(FP8x23 { mag: 2354272, sign: false }); + data.append(FP8x23 { mag: 3538191, sign: true }); + data.append(FP8x23 { mag: 16882428, sign: false }); + data.append(FP8x23 { mag: 3591225, sign: false }); + data.append(FP8x23 { mag: 26898508, sign: false }); + data.append(FP8x23 { mag: 10517529, sign: true }); + data.append(FP8x23 { mag: 2174513, sign: false }); + data.append(FP8x23 { mag: 8749099, sign: true }); + data.append(FP8x23 { mag: 24184572, sign: true }); + data.append(FP8x23 { mag: 2126525, sign: true }); + data.append(FP8x23 { mag: 23430856, sign: false }); + data.append(FP8x23 { mag: 4520174, sign: false }); + data.append(FP8x23 { mag: 13652877, sign: true }); + data.append(FP8x23 { mag: 12283456, sign: true }); + data.append(FP8x23 { mag: 10740277, sign: true }); + data.append(FP8x23 { mag: 4411417, sign: false }); + data.append(FP8x23 { mag: 10658245, sign: true }); + data.append(FP8x23 { mag: 6258550, sign: false }); + data.append(FP8x23 { mag: 597025, sign: true }); + data.append(FP8x23 { mag: 5697438, sign: true }); + data.append(FP8x23 { mag: 9281796, sign: true }); + data.append(FP8x23 { mag: 15249477, sign: false }); + data.append(FP8x23 { mag: 18532372, sign: false }); + data.append(FP8x23 { mag: 16837466, sign: true }); + data.append(FP8x23 { mag: 1797340, sign: false }); + data.append(FP8x23 { mag: 12228078, sign: false }); + data.append(FP8x23 { mag: 6983374, sign: true }); + data.append(FP8x23 { mag: 8255684, sign: true }); + data.append(FP8x23 { mag: 21276412, sign: true }); + data.append(FP8x23 { mag: 19283468, sign: true }); + data.append(FP8x23 { mag: 15394488, sign: true }); + data.append(FP8x23 { mag: 6857165, sign: false }); + data.append(FP8x23 { mag: 1110300, sign: true }); + data.append(FP8x23 { mag: 11658292, sign: false }); + data.append(FP8x23 { mag: 718357, sign: true }); + data.append(FP8x23 { mag: 11227997, sign: true }); + data.append(FP8x23 { mag: 4305150, sign: false }); + data.append(FP8x23 { mag: 780804, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis1.cairo b/tests/nodes/layer_normalization_4d_axis1.cairo index d3d8808ce..e7ee8885c 100644 --- a/tests/nodes/layer_normalization_4d_axis1.cairo +++ b/tests/nodes/layer_normalization_4d_axis1.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis1() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(1, false)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(1),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis1/input_0.cairo b/tests/nodes/layer_normalization_4d_axis1/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis1/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis1/input_1.cairo b/tests/nodes/layer_normalization_4d_axis1/input_1.cairo index 9097a814d..c752d2f39 100644 --- a/tests/nodes/layer_normalization_4d_axis1/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -10,65 +10,65 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 848181, sign: true }); - data.append(FP8x23 { mag: 81518, sign: true }); - data.append(FP8x23 { mag: 945519, sign: true }); - data.append(FP8x23 { mag: 6487248, sign: false }); - data.append(FP8x23 { mag: 9672423, sign: false }); - data.append(FP8x23 { mag: 1904835, sign: false }); - data.append(FP8x23 { mag: 2382261, sign: false }); - data.append(FP8x23 { mag: 7115567, sign: false }); - data.append(FP8x23 { mag: 2500882, sign: true }); - data.append(FP8x23 { mag: 7175046, sign: false }); - data.append(FP8x23 { mag: 9187167, sign: true }); - data.append(FP8x23 { mag: 8462170, sign: true }); - data.append(FP8x23 { mag: 696867, sign: false }); - data.append(FP8x23 { mag: 21124896, sign: true }); - data.append(FP8x23 { mag: 5267251, sign: true }); - data.append(FP8x23 { mag: 2079757, sign: true }); - data.append(FP8x23 { mag: 1167805, sign: false }); - data.append(FP8x23 { mag: 1152176, sign: false }); - data.append(FP8x23 { mag: 10891270, sign: false }); - data.append(FP8x23 { mag: 14322228, sign: false }); - data.append(FP8x23 { mag: 8522531, sign: false }); - data.append(FP8x23 { mag: 10739640, sign: false }); - data.append(FP8x23 { mag: 2595621, sign: false }); - data.append(FP8x23 { mag: 8005426, sign: true }); - data.append(FP8x23 { mag: 17252540, sign: false }); - data.append(FP8x23 { mag: 240957, sign: false }); - data.append(FP8x23 { mag: 11486831, sign: true }); - data.append(FP8x23 { mag: 586966, sign: false }); - data.append(FP8x23 { mag: 9136961, sign: true }); - data.append(FP8x23 { mag: 6509073, sign: false }); - data.append(FP8x23 { mag: 5880972, sign: true }); - data.append(FP8x23 { mag: 13107216, sign: true }); - data.append(FP8x23 { mag: 3496295, sign: true }); - data.append(FP8x23 { mag: 8424994, sign: true }); - data.append(FP8x23 { mag: 6071613, sign: false }); - data.append(FP8x23 { mag: 2613672, sign: false }); - data.append(FP8x23 { mag: 201175, sign: true }); - data.append(FP8x23 { mag: 9019674, sign: true }); - data.append(FP8x23 { mag: 8834173, sign: true }); - data.append(FP8x23 { mag: 3624311, sign: false }); - data.append(FP8x23 { mag: 11146336, sign: true }); - data.append(FP8x23 { mag: 2676569, sign: false }); - data.append(FP8x23 { mag: 2174599, sign: true }); - data.append(FP8x23 { mag: 7756654, sign: false }); - data.append(FP8x23 { mag: 4488299, sign: false }); - data.append(FP8x23 { mag: 13736548, sign: false }); - data.append(FP8x23 { mag: 8146999, sign: true }); - data.append(FP8x23 { mag: 14514717, sign: false }); - data.append(FP8x23 { mag: 194204, sign: true }); - data.append(FP8x23 { mag: 1722858, sign: true }); - data.append(FP8x23 { mag: 16956510, sign: true }); - data.append(FP8x23 { mag: 938525, sign: true }); - data.append(FP8x23 { mag: 12229289, sign: true }); - data.append(FP8x23 { mag: 10339694, sign: false }); - data.append(FP8x23 { mag: 5410863, sign: true }); - data.append(FP8x23 { mag: 2290298, sign: false }); - data.append(FP8x23 { mag: 523371, sign: true }); - data.append(FP8x23 { mag: 3917128, sign: true }); - data.append(FP8x23 { mag: 8846368, sign: false }); - data.append(FP8x23 { mag: 878873, sign: false }); + data.append(FP8x23 { mag: 2649509, sign: false }); + data.append(FP8x23 { mag: 7144735, sign: false }); + data.append(FP8x23 { mag: 3358040, sign: true }); + data.append(FP8x23 { mag: 9386912, sign: true }); + data.append(FP8x23 { mag: 13500097, sign: true }); + data.append(FP8x23 { mag: 5270301, sign: false }); + data.append(FP8x23 { mag: 110414, sign: true }); + data.append(FP8x23 { mag: 9924386, sign: true }); + data.append(FP8x23 { mag: 15635640, sign: false }); + data.append(FP8x23 { mag: 1427528, sign: false }); + data.append(FP8x23 { mag: 2846589, sign: false }); + data.append(FP8x23 { mag: 1541675, sign: true }); + data.append(FP8x23 { mag: 12896779, sign: false }); + data.append(FP8x23 { mag: 8095688, sign: false }); + data.append(FP8x23 { mag: 15709178, sign: true }); + data.append(FP8x23 { mag: 3272469, sign: false }); + data.append(FP8x23 { mag: 3726665, sign: false }); + data.append(FP8x23 { mag: 18764, sign: true }); + data.append(FP8x23 { mag: 1073322, sign: false }); + data.append(FP8x23 { mag: 6797195, sign: false }); + data.append(FP8x23 { mag: 5732947, sign: false }); + data.append(FP8x23 { mag: 4820546, sign: false }); + data.append(FP8x23 { mag: 3081034, sign: false }); + data.append(FP8x23 { mag: 14074043, sign: true }); + data.append(FP8x23 { mag: 6461992, sign: false }); + data.append(FP8x23 { mag: 13566343, sign: true }); + data.append(FP8x23 { mag: 491369, sign: false }); + data.append(FP8x23 { mag: 288012, sign: false }); + data.append(FP8x23 { mag: 10414907, sign: false }); + data.append(FP8x23 { mag: 11528715, sign: false }); + data.append(FP8x23 { mag: 3682921, sign: false }); + data.append(FP8x23 { mag: 12963271, sign: false }); + data.append(FP8x23 { mag: 263060, sign: true }); + data.append(FP8x23 { mag: 5531121, sign: false }); + data.append(FP8x23 { mag: 19149566, sign: false }); + data.append(FP8x23 { mag: 2802384, sign: true }); + data.append(FP8x23 { mag: 8137323, sign: true }); + data.append(FP8x23 { mag: 2070264, sign: false }); + data.append(FP8x23 { mag: 2892212, sign: false }); + data.append(FP8x23 { mag: 2728473, sign: true }); + data.append(FP8x23 { mag: 3360785, sign: false }); + data.append(FP8x23 { mag: 1874124, sign: false }); + data.append(FP8x23 { mag: 1551380, sign: false }); + data.append(FP8x23 { mag: 4138289, sign: true }); + data.append(FP8x23 { mag: 18117802, sign: true }); + data.append(FP8x23 { mag: 1020022, sign: true }); + data.append(FP8x23 { mag: 5212319, sign: true }); + data.append(FP8x23 { mag: 705204, sign: false }); + data.append(FP8x23 { mag: 3437416, sign: false }); + data.append(FP8x23 { mag: 11732816, sign: false }); + data.append(FP8x23 { mag: 13791144, sign: true }); + data.append(FP8x23 { mag: 98925, sign: true }); + data.append(FP8x23 { mag: 7643209, sign: false }); + data.append(FP8x23 { mag: 101893, sign: true }); + data.append(FP8x23 { mag: 3594931, sign: true }); + data.append(FP8x23 { mag: 12445462, sign: false }); + data.append(FP8x23 { mag: 6342234, sign: true }); + data.append(FP8x23 { mag: 12620105, sign: false }); + data.append(FP8x23 { mag: 5220821, sign: true }); + data.append(FP8x23 { mag: 8501779, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis1/input_2.cairo b/tests/nodes/layer_normalization_4d_axis1/input_2.cairo index 7f46fa541..66ff4ccaf 100644 --- a/tests/nodes/layer_normalization_4d_axis1/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis1/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -10,65 +10,65 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 17573086, sign: false }); - data.append(FP8x23 { mag: 8662834, sign: false }); - data.append(FP8x23 { mag: 184643, sign: true }); - data.append(FP8x23 { mag: 1609098, sign: false }); - data.append(FP8x23 { mag: 7906768, sign: false }); - data.append(FP8x23 { mag: 2763381, sign: false }); - data.append(FP8x23 { mag: 6890297, sign: false }); - data.append(FP8x23 { mag: 10693457, sign: true }); - data.append(FP8x23 { mag: 12330995, sign: false }); - data.append(FP8x23 { mag: 4256058, sign: false }); - data.append(FP8x23 { mag: 9437667, sign: true }); - data.append(FP8x23 { mag: 163731, sign: false }); - data.append(FP8x23 { mag: 7124038, sign: false }); - data.append(FP8x23 { mag: 9805754, sign: false }); - data.append(FP8x23 { mag: 28536, sign: false }); - data.append(FP8x23 { mag: 2693033, sign: true }); - data.append(FP8x23 { mag: 2150848, sign: false }); - data.append(FP8x23 { mag: 10084242, sign: true }); - data.append(FP8x23 { mag: 8917886, sign: true }); - data.append(FP8x23 { mag: 1425777, sign: false }); - data.append(FP8x23 { mag: 2606228, sign: true }); - data.append(FP8x23 { mag: 12616894, sign: false }); - data.append(FP8x23 { mag: 2222915, sign: true }); - data.append(FP8x23 { mag: 7726104, sign: true }); - data.append(FP8x23 { mag: 2657657, sign: true }); - data.append(FP8x23 { mag: 6077975, sign: false }); - data.append(FP8x23 { mag: 13813849, sign: true }); - data.append(FP8x23 { mag: 6292283, sign: false }); - data.append(FP8x23 { mag: 10348040, sign: true }); - data.append(FP8x23 { mag: 185170, sign: false }); - data.append(FP8x23 { mag: 5951156, sign: true }); - data.append(FP8x23 { mag: 17316840, sign: false }); - data.append(FP8x23 { mag: 10838919, sign: false }); - data.append(FP8x23 { mag: 1531418, sign: true }); - data.append(FP8x23 { mag: 2328055, sign: true }); - data.append(FP8x23 { mag: 2260306, sign: true }); - data.append(FP8x23 { mag: 6598532, sign: true }); - data.append(FP8x23 { mag: 13454879, sign: false }); - data.append(FP8x23 { mag: 3992621, sign: true }); - data.append(FP8x23 { mag: 2841648, sign: false }); - data.append(FP8x23 { mag: 2219350, sign: false }); - data.append(FP8x23 { mag: 1366422, sign: false }); - data.append(FP8x23 { mag: 18715506, sign: false }); - data.append(FP8x23 { mag: 818771, sign: true }); - data.append(FP8x23 { mag: 16038561, sign: true }); - data.append(FP8x23 { mag: 605075, sign: true }); - data.append(FP8x23 { mag: 9018968, sign: true }); - data.append(FP8x23 { mag: 12957025, sign: true }); - data.append(FP8x23 { mag: 7949557, sign: true }); - data.append(FP8x23 { mag: 4287990, sign: true }); - data.append(FP8x23 { mag: 6013668, sign: true }); - data.append(FP8x23 { mag: 5667271, sign: false }); - data.append(FP8x23 { mag: 3089234, sign: true }); - data.append(FP8x23 { mag: 8146239, sign: true }); - data.append(FP8x23 { mag: 3678288, sign: true }); - data.append(FP8x23 { mag: 4910526, sign: true }); - data.append(FP8x23 { mag: 7866112, sign: false }); - data.append(FP8x23 { mag: 7090234, sign: true }); - data.append(FP8x23 { mag: 7707693, sign: true }); - data.append(FP8x23 { mag: 3506913, sign: false }); + data.append(FP8x23 { mag: 1141568, sign: false }); + data.append(FP8x23 { mag: 3539686, sign: false }); + data.append(FP8x23 { mag: 19183412, sign: true }); + data.append(FP8x23 { mag: 6702357, sign: true }); + data.append(FP8x23 { mag: 18341166, sign: true }); + data.append(FP8x23 { mag: 2085003, sign: false }); + data.append(FP8x23 { mag: 5754160, sign: true }); + data.append(FP8x23 { mag: 6418104, sign: false }); + data.append(FP8x23 { mag: 5327939, sign: false }); + data.append(FP8x23 { mag: 1071055, sign: true }); + data.append(FP8x23 { mag: 8731756, sign: true }); + data.append(FP8x23 { mag: 6458415, sign: false }); + data.append(FP8x23 { mag: 285981, sign: true }); + data.append(FP8x23 { mag: 10557919, sign: false }); + data.append(FP8x23 { mag: 1513612, sign: true }); + data.append(FP8x23 { mag: 15288170, sign: true }); + data.append(FP8x23 { mag: 3484741, sign: false }); + data.append(FP8x23 { mag: 9718607, sign: false }); + data.append(FP8x23 { mag: 12358125, sign: true }); + data.append(FP8x23 { mag: 15954180, sign: false }); + data.append(FP8x23 { mag: 262601, sign: false }); + data.append(FP8x23 { mag: 5672420, sign: false }); + data.append(FP8x23 { mag: 4338296, sign: true }); + data.append(FP8x23 { mag: 1830635, sign: false }); + data.append(FP8x23 { mag: 6483353, sign: false }); + data.append(FP8x23 { mag: 6624924, sign: false }); + data.append(FP8x23 { mag: 24104034, sign: false }); + data.append(FP8x23 { mag: 10195068, sign: true }); + data.append(FP8x23 { mag: 9134898, sign: false }); + data.append(FP8x23 { mag: 16650777, sign: true }); + data.append(FP8x23 { mag: 623710, sign: true }); + data.append(FP8x23 { mag: 10605975, sign: true }); + data.append(FP8x23 { mag: 6924507, sign: false }); + data.append(FP8x23 { mag: 6210575, sign: true }); + data.append(FP8x23 { mag: 17054160, sign: false }); + data.append(FP8x23 { mag: 6280133, sign: true }); + data.append(FP8x23 { mag: 9148351, sign: true }); + data.append(FP8x23 { mag: 7262568, sign: false }); + data.append(FP8x23 { mag: 6099670, sign: false }); + data.append(FP8x23 { mag: 2873259, sign: true }); + data.append(FP8x23 { mag: 1290482, sign: true }); + data.append(FP8x23 { mag: 7829370, sign: true }); + data.append(FP8x23 { mag: 12044643, sign: false }); + data.append(FP8x23 { mag: 3011473, sign: true }); + data.append(FP8x23 { mag: 6080298, sign: true }); + data.append(FP8x23 { mag: 2388015, sign: true }); + data.append(FP8x23 { mag: 9140926, sign: true }); + data.append(FP8x23 { mag: 6684113, sign: true }); + data.append(FP8x23 { mag: 43961, sign: false }); + data.append(FP8x23 { mag: 9137080, sign: false }); + data.append(FP8x23 { mag: 7920313, sign: false }); + data.append(FP8x23 { mag: 8783942, sign: true }); + data.append(FP8x23 { mag: 2190876, sign: true }); + data.append(FP8x23 { mag: 9310159, sign: true }); + data.append(FP8x23 { mag: 12063621, sign: true }); + data.append(FP8x23 { mag: 1418983, sign: true }); + data.append(FP8x23 { mag: 14507015, sign: true }); + data.append(FP8x23 { mag: 10873077, sign: true }); + data.append(FP8x23 { mag: 4798862, sign: true }); + data.append(FP8x23 { mag: 1492661, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis1/output_0.cairo b/tests/nodes/layer_normalization_4d_axis1/output_0.cairo index 25fb0235f..1b9c6c7f1 100644 --- a/tests/nodes/layer_normalization_4d_axis1/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 18660112, sign: false }); - data.append(FP8x23 { mag: 8539773, sign: false }); - data.append(FP8x23 { mag: 253071, sign: true }); - data.append(FP8x23 { mag: 4686473, sign: true }); - data.append(FP8x23 { mag: 26410314, sign: false }); - data.append(FP8x23 { mag: 6599035, sign: false }); - data.append(FP8x23 { mag: 6528656, sign: false }); - data.append(FP8x23 { mag: 13917213, sign: true }); - data.append(FP8x23 { mag: 9881702, sign: false }); - data.append(FP8x23 { mag: 1799257, sign: true }); - data.append(FP8x23 { mag: 2470490, sign: true }); - data.append(FP8x23 { mag: 5336625, sign: false }); - data.append(FP8x23 { mag: 9177605, sign: false }); - data.append(FP8x23 { mag: 31518982, sign: false }); - data.append(FP8x23 { mag: 3629625, sign: true }); - data.append(FP8x23 { mag: 1195610, sign: true }); - data.append(FP8x23 { mag: 2611073, sign: false }); - data.append(FP8x23 { mag: 10535922, sign: true }); - data.append(FP8x23 { mag: 1795805, sign: true }); - data.append(FP8x23 { mag: 15467576, sign: true }); - data.append(FP8x23 { mag: 6025885, sign: true }); - data.append(FP8x23 { mag: 22387728, sign: false }); - data.append(FP8x23 { mag: 2198218, sign: true }); - data.append(FP8x23 { mag: 23681456, sign: true }); - data.append(FP8x23 { mag: 12906475, sign: false }); - data.append(FP8x23 { mag: 5693734, sign: false }); - data.append(FP8x23 { mag: 17287328, sign: true }); - data.append(FP8x23 { mag: 6272278, sign: false }); - data.append(FP8x23 { mag: 6300243, sign: true }); - data.append(FP8x23 { mag: 141751, sign: false }); - data.append(FP8x23 { mag: 2665067, sign: false }); - data.append(FP8x23 { mag: 16475111, sign: false }); - data.append(FP8x23 { mag: 9980473, sign: false }); - data.append(FP8x23 { mag: 5992447, sign: true }); - data.append(FP8x23 { mag: 4469792, sign: false }); - data.append(FP8x23 { mag: 6262509, sign: true }); - data.append(FP8x23 { mag: 6298524, sign: true }); - data.append(FP8x23 { mag: 17645284, sign: false }); - data.append(FP8x23 { mag: 3955277, sign: false }); - data.append(FP8x23 { mag: 3884818, sign: false }); - data.append(FP8x23 { mag: 8962234, sign: false }); - data.append(FP8x23 { mag: 2809372, sign: false }); - data.append(FP8x23 { mag: 16598741, sign: false }); - data.append(FP8x23 { mag: 6784943, sign: true }); - data.append(FP8x23 { mag: 10628059, sign: true }); - data.append(FP8x23 { mag: 21397334, sign: true }); - data.append(FP8x23 { mag: 12467617, sign: true }); - data.append(FP8x23 { mag: 15397510, sign: true }); - data.append(FP8x23 { mag: 7715232, sign: true }); - data.append(FP8x23 { mag: 5833417, sign: true }); - data.append(FP8x23 { mag: 4660253, sign: false }); - data.append(FP8x23 { mag: 5832772, sign: false }); - data.append(FP8x23 { mag: 790398, sign: false }); - data.append(FP8x23 { mag: 10411434, sign: true }); - data.append(FP8x23 { mag: 10458644, sign: true }); - data.append(FP8x23 { mag: 3224784, sign: true }); - data.append(FP8x23 { mag: 7805680, sign: false }); - data.append(FP8x23 { mag: 860368, sign: true }); - data.append(FP8x23 { mag: 7115954, sign: true }); - data.append(FP8x23 { mag: 3652584, sign: false }); - data.append(FP8x23 { mag: 18110536, sign: false }); - data.append(FP8x23 { mag: 8694257, sign: false }); - data.append(FP8x23 { mag: 2467611, sign: true }); - data.append(FP8x23 { mag: 1969761, sign: false }); - data.append(FP8x23 { mag: 2403990, sign: true }); - data.append(FP8x23 { mag: 1441612, sign: false }); - data.append(FP8x23 { mag: 8264830, sign: false }); - data.append(FP8x23 { mag: 23782516, sign: true }); - data.append(FP8x23 { mag: 15570296, sign: false }); - data.append(FP8x23 { mag: 1633225, sign: true }); - data.append(FP8x23 { mag: 10890572, sign: true }); - data.append(FP8x23 { mag: 1289518, sign: true }); - data.append(FP8x23 { mag: 6855306, sign: false }); - data.append(FP8x23 { mag: 29774126, sign: true }); - data.append(FP8x23 { mag: 3640459, sign: false }); - data.append(FP8x23 { mag: 5036650, sign: true }); - data.append(FP8x23 { mag: 2896261, sign: false }); - data.append(FP8x23 { mag: 10227605, sign: true }); - data.append(FP8x23 { mag: 5740720, sign: true }); - data.append(FP8x23 { mag: 12424902, sign: true }); - data.append(FP8x23 { mag: 9161889, sign: false }); - data.append(FP8x23 { mag: 8654373, sign: false }); - data.append(FP8x23 { mag: 4483841, sign: false }); - data.append(FP8x23 { mag: 15484597, sign: true }); - data.append(FP8x23 { mag: 15284265, sign: true }); - data.append(FP8x23 { mag: 6337630, sign: false }); - data.append(FP8x23 { mag: 11568081, sign: true }); - data.append(FP8x23 { mag: 5991922, sign: false }); - data.append(FP8x23 { mag: 520230, sign: false }); - data.append(FP8x23 { mag: 1312866, sign: true }); - data.append(FP8x23 { mag: 2415229, sign: true }); - data.append(FP8x23 { mag: 29673920, sign: false }); - data.append(FP8x23 { mag: 10289541, sign: false }); - data.append(FP8x23 { mag: 10450103, sign: false }); - data.append(FP8x23 { mag: 9512570, sign: true }); - data.append(FP8x23 { mag: 1628225, sign: true }); - data.append(FP8x23 { mag: 6580971, sign: true }); - data.append(FP8x23 { mag: 714841, sign: true }); - data.append(FP8x23 { mag: 1800550, sign: true }); - data.append(FP8x23 { mag: 3126343, sign: false }); - data.append(FP8x23 { mag: 12778888, sign: false }); - data.append(FP8x23 { mag: 2285159, sign: false }); - data.append(FP8x23 { mag: 15225974, sign: false }); - data.append(FP8x23 { mag: 672323, sign: false }); - data.append(FP8x23 { mag: 16353744, sign: true }); - data.append(FP8x23 { mag: 19120848, sign: true }); - data.append(FP8x23 { mag: 10304800, sign: true }); - data.append(FP8x23 { mag: 23183576, sign: true }); - data.append(FP8x23 { mag: 8290095, sign: true }); - data.append(FP8x23 { mag: 6100584, sign: true }); - data.append(FP8x23 { mag: 12063426, sign: true }); - data.append(FP8x23 { mag: 5926701, sign: false }); - data.append(FP8x23 { mag: 1446250, sign: false }); - data.append(FP8x23 { mag: 10444769, sign: true }); - data.append(FP8x23 { mag: 5096127, sign: true }); - data.append(FP8x23 { mag: 251532, sign: true }); - data.append(FP8x23 { mag: 8553469, sign: false }); - data.append(FP8x23 { mag: 8814550, sign: true }); - data.append(FP8x23 { mag: 19636340, sign: true }); - data.append(FP8x23 { mag: 3196814, sign: false }); + data.append(FP8x23 { mag: 3244081, sign: true }); + data.append(FP8x23 { mag: 10706794, sign: true }); + data.append(FP8x23 { mag: 18958928, sign: true }); + data.append(FP8x23 { mag: 3353777, sign: true }); + data.append(FP8x23 { mag: 37528560, sign: true }); + data.append(FP8x23 { mag: 7473744, sign: false }); + data.append(FP8x23 { mag: 5790740, sign: true }); + data.append(FP8x23 { mag: 18114384, sign: false }); + data.append(FP8x23 { mag: 1228071, sign: true }); + data.append(FP8x23 { mag: 2115461, sign: true }); + data.append(FP8x23 { mag: 11064842, sign: true }); + data.append(FP8x23 { mag: 4650204, sign: false }); + data.append(FP8x23 { mag: 2117008, sign: false }); + data.append(FP8x23 { mag: 3066889, sign: false }); + data.append(FP8x23 { mag: 12395364, sign: true }); + data.append(FP8x23 { mag: 11292374, sign: true }); + data.append(FP8x23 { mag: 1926478, sign: false }); + data.append(FP8x23 { mag: 9694338, sign: false }); + data.append(FP8x23 { mag: 12846217, sign: true }); + data.append(FP8x23 { mag: 6915843, sign: false }); + data.append(FP8x23 { mag: 1307795, sign: false }); + data.append(FP8x23 { mag: 4985127, sign: false }); + data.append(FP8x23 { mag: 4480469, sign: true }); + data.append(FP8x23 { mag: 14326418, sign: false }); + data.append(FP8x23 { mag: 4790479, sign: false }); + data.append(FP8x23 { mag: 12347656, sign: false }); + data.append(FP8x23 { mag: 24547608, sign: false }); + data.append(FP8x23 { mag: 10357171, sign: true }); + data.append(FP8x23 { mag: 6391847, sign: false }); + data.append(FP8x23 { mag: 27053802, sign: true }); + data.append(FP8x23 { mag: 8298346, sign: true }); + data.append(FP8x23 { mag: 1500052, sign: false }); + data.append(FP8x23 { mag: 7390910, sign: false }); + data.append(FP8x23 { mag: 5305790, sign: false }); + data.append(FP8x23 { mag: 28702554, sign: false }); + data.append(FP8x23 { mag: 3992515, sign: true }); + data.append(FP8x23 { mag: 22513472, sign: true }); + data.append(FP8x23 { mag: 9551410, sign: false }); + data.append(FP8x23 { mag: 10288647, sign: false }); + data.append(FP8x23 { mag: 501099, sign: false }); + data.append(FP8x23 { mag: 175674, sign: false }); + data.append(FP8x23 { mag: 12165864, sign: true }); + data.append(FP8x23 { mag: 12648068, sign: false }); + data.append(FP8x23 { mag: 1932084, sign: true }); + data.append(FP8x23 { mag: 11462044, sign: false }); + data.append(FP8x23 { mag: 1838592, sign: true }); + data.append(FP8x23 { mag: 15893444, sign: true }); + data.append(FP8x23 { mag: 7061486, sign: true }); + data.append(FP8x23 { mag: 320677, sign: false }); + data.append(FP8x23 { mag: 12322688, sign: false }); + data.append(FP8x23 { mag: 1152384, sign: true }); + data.append(FP8x23 { mag: 8876509, sign: true }); + data.append(FP8x23 { mag: 1133718, sign: true }); + data.append(FP8x23 { mag: 9388043, sign: true }); + data.append(FP8x23 { mag: 13317113, sign: true }); + data.append(FP8x23 { mag: 3277348, sign: false }); + data.append(FP8x23 { mag: 21393756, sign: true }); + data.append(FP8x23 { mag: 15482224, sign: true }); + data.append(FP8x23 { mag: 12521701, sign: true }); + data.append(FP8x23 { mag: 3392381, sign: true }); + data.append(FP8x23 { mag: 1818300, sign: false }); + data.append(FP8x23 { mag: 12425486, sign: true }); + data.append(FP8x23 { mag: 26694168, sign: true }); + data.append(FP8x23 { mag: 2028386, sign: false }); + data.append(FP8x23 { mag: 47604776, sign: true }); + data.append(FP8x23 { mag: 12058849, sign: true }); + data.append(FP8x23 { mag: 5851246, sign: true }); + data.append(FP8x23 { mag: 7294009, sign: false }); + data.append(FP8x23 { mag: 6121678, sign: false }); + data.append(FP8x23 { mag: 790016, sign: true }); + data.append(FP8x23 { mag: 7578667, sign: true }); + data.append(FP8x23 { mag: 7450989, sign: false }); + data.append(FP8x23 { mag: 11979960, sign: true }); + data.append(FP8x23 { mag: 9764177, sign: false }); + data.append(FP8x23 { mag: 5534756, sign: false }); + data.append(FP8x23 { mag: 16585565, sign: true }); + data.append(FP8x23 { mag: 1930917, sign: false }); + data.append(FP8x23 { mag: 9688134, sign: false }); + data.append(FP8x23 { mag: 12447360, sign: true }); + data.append(FP8x23 { mag: 9266335, sign: false }); + data.append(FP8x23 { mag: 2768829, sign: true }); + data.append(FP8x23 { mag: 6603410, sign: false }); + data.append(FP8x23 { mag: 5405931, sign: true }); + data.append(FP8x23 { mag: 21713060, sign: false }); + data.append(FP8x23 { mag: 2523116, sign: false }); + data.append(FP8x23 { mag: 23339766, sign: false }); + data.append(FP8x23 { mag: 24896902, sign: false }); + data.append(FP8x23 { mag: 10753976, sign: true }); + data.append(FP8x23 { mag: 31634404, sign: false }); + data.append(FP8x23 { mag: 14895410, sign: true }); + data.append(FP8x23 { mag: 2570909, sign: true }); + data.append(FP8x23 { mag: 1013971, sign: false }); + data.append(FP8x23 { mag: 7304647, sign: false }); + data.append(FP8x23 { mag: 1318246, sign: false }); + data.append(FP8x23 { mag: 13296067, sign: false }); + data.append(FP8x23 { mag: 4443571, sign: true }); + data.append(FP8x23 { mag: 7558768, sign: true }); + data.append(FP8x23 { mag: 8737636, sign: false }); + data.append(FP8x23 { mag: 7994008, sign: false }); + data.append(FP8x23 { mag: 4502029, sign: true }); + data.append(FP8x23 { mag: 2793031, sign: true }); + data.append(FP8x23 { mag: 8108336, sign: true }); + data.append(FP8x23 { mag: 11312462, sign: false }); + data.append(FP8x23 { mag: 3134164, sign: true }); + data.append(FP8x23 { mag: 28352826, sign: true }); + data.append(FP8x23 { mag: 3892915, sign: true }); + data.append(FP8x23 { mag: 10553366, sign: true }); + data.append(FP8x23 { mag: 6404744, sign: true }); + data.append(FP8x23 { mag: 1634334, sign: true }); + data.append(FP8x23 { mag: 5114852, sign: false }); + data.append(FP8x23 { mag: 1631376, sign: true }); + data.append(FP8x23 { mag: 8711429, sign: true }); + data.append(FP8x23 { mag: 906596, sign: true }); + data.append(FP8x23 { mag: 9337071, sign: true }); + data.append(FP8x23 { mag: 11280144, sign: true }); + data.append(FP8x23 { mag: 2754582, sign: true }); + data.append(FP8x23 { mag: 12085832, sign: true }); + data.append(FP8x23 { mag: 9075175, sign: false }); + data.append(FP8x23 { mag: 5795584, sign: true }); + data.append(FP8x23 { mag: 581302, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis2.cairo b/tests/nodes/layer_normalization_4d_axis2.cairo index 27748871e..3bd45e907 100644 --- a/tests/nodes/layer_normalization_4d_axis2.cairo +++ b/tests/nodes/layer_normalization_4d_axis2.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis2() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(2, false)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(2),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis2/input_0.cairo b/tests/nodes/layer_normalization_4d_axis2/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis2/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis2/input_1.cairo b/tests/nodes/layer_normalization_4d_axis2/input_1.cairo index 73de56051..88e10e0ba 100644 --- a/tests/nodes/layer_normalization_4d_axis2/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -9,25 +9,25 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16045555, sign: false }); - data.append(FP8x23 { mag: 6797189, sign: true }); - data.append(FP8x23 { mag: 338571, sign: true }); - data.append(FP8x23 { mag: 14826208, sign: true }); - data.append(FP8x23 { mag: 6612261, sign: false }); - data.append(FP8x23 { mag: 2255963, sign: false }); - data.append(FP8x23 { mag: 7694826, sign: false }); - data.append(FP8x23 { mag: 8157877, sign: true }); - data.append(FP8x23 { mag: 10027904, sign: true }); - data.append(FP8x23 { mag: 4144258, sign: false }); - data.append(FP8x23 { mag: 12368555, sign: true }); - data.append(FP8x23 { mag: 1431810, sign: false }); - data.append(FP8x23 { mag: 993247, sign: true }); - data.append(FP8x23 { mag: 10015980, sign: true }); - data.append(FP8x23 { mag: 11250731, sign: false }); - data.append(FP8x23 { mag: 12224184, sign: true }); - data.append(FP8x23 { mag: 14407597, sign: true }); - data.append(FP8x23 { mag: 1255469, sign: true }); - data.append(FP8x23 { mag: 48578, sign: true }); - data.append(FP8x23 { mag: 14580561, sign: false }); + data.append(FP8x23 { mag: 2055097, sign: false }); + data.append(FP8x23 { mag: 4681757, sign: true }); + data.append(FP8x23 { mag: 9467429, sign: true }); + data.append(FP8x23 { mag: 10714904, sign: true }); + data.append(FP8x23 { mag: 4545937, sign: true }); + data.append(FP8x23 { mag: 6802699, sign: true }); + data.append(FP8x23 { mag: 8448431, sign: false }); + data.append(FP8x23 { mag: 1309417, sign: false }); + data.append(FP8x23 { mag: 1427043, sign: true }); + data.append(FP8x23 { mag: 16194403, sign: true }); + data.append(FP8x23 { mag: 10729787, sign: false }); + data.append(FP8x23 { mag: 11312058, sign: false }); + data.append(FP8x23 { mag: 4344780, sign: true }); + data.append(FP8x23 { mag: 2117222, sign: true }); + data.append(FP8x23 { mag: 4305543, sign: true }); + data.append(FP8x23 { mag: 19256026, sign: false }); + data.append(FP8x23 { mag: 6015612, sign: true }); + data.append(FP8x23 { mag: 3912062, sign: true }); + data.append(FP8x23 { mag: 6010057, sign: true }); + data.append(FP8x23 { mag: 5751897, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis2/input_2.cairo b/tests/nodes/layer_normalization_4d_axis2/input_2.cairo index 5dd984a06..2fed20f32 100644 --- a/tests/nodes/layer_normalization_4d_axis2/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis2/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -9,25 +9,25 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 10596986, sign: false }); - data.append(FP8x23 { mag: 13797276, sign: true }); - data.append(FP8x23 { mag: 726032, sign: true }); - data.append(FP8x23 { mag: 2944650, sign: true }); - data.append(FP8x23 { mag: 5288885, sign: true }); - data.append(FP8x23 { mag: 12046768, sign: true }); - data.append(FP8x23 { mag: 3375686, sign: false }); - data.append(FP8x23 { mag: 8744354, sign: true }); - data.append(FP8x23 { mag: 8940485, sign: false }); - data.append(FP8x23 { mag: 6541405, sign: true }); - data.append(FP8x23 { mag: 3256492, sign: false }); - data.append(FP8x23 { mag: 6889087, sign: false }); - data.append(FP8x23 { mag: 2560312, sign: true }); - data.append(FP8x23 { mag: 9717397, sign: true }); - data.append(FP8x23 { mag: 8774793, sign: true }); - data.append(FP8x23 { mag: 893052, sign: true }); - data.append(FP8x23 { mag: 7995400, sign: false }); - data.append(FP8x23 { mag: 9505615, sign: true }); - data.append(FP8x23 { mag: 541572, sign: false }); - data.append(FP8x23 { mag: 13005167, sign: true }); + data.append(FP8x23 { mag: 1759247, sign: false }); + data.append(FP8x23 { mag: 3714086, sign: true }); + data.append(FP8x23 { mag: 1622474, sign: true }); + data.append(FP8x23 { mag: 8081111, sign: false }); + data.append(FP8x23 { mag: 15897326, sign: true }); + data.append(FP8x23 { mag: 758940, sign: true }); + data.append(FP8x23 { mag: 12821375, sign: true }); + data.append(FP8x23 { mag: 5124450, sign: true }); + data.append(FP8x23 { mag: 23434418, sign: false }); + data.append(FP8x23 { mag: 3803789, sign: true }); + data.append(FP8x23 { mag: 1614523, sign: true }); + data.append(FP8x23 { mag: 5084428, sign: true }); + data.append(FP8x23 { mag: 1234480, sign: true }); + data.append(FP8x23 { mag: 16545990, sign: false }); + data.append(FP8x23 { mag: 281637, sign: true }); + data.append(FP8x23 { mag: 2667010, sign: false }); + data.append(FP8x23 { mag: 10535491, sign: false }); + data.append(FP8x23 { mag: 4933426, sign: true }); + data.append(FP8x23 { mag: 327930, sign: true }); + data.append(FP8x23 { mag: 4062404, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis2/output_0.cairo b/tests/nodes/layer_normalization_4d_axis2/output_0.cairo index b3de0fa1c..f2a726b3c 100644 --- a/tests/nodes/layer_normalization_4d_axis2/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8703072, sign: true }); - data.append(FP8x23 { mag: 21681156, sign: true }); - data.append(FP8x23 { mag: 706829, sign: true }); - data.append(FP8x23 { mag: 10983862, sign: false }); - data.append(FP8x23 { mag: 4638530, sign: false }); - data.append(FP8x23 { mag: 8467598, sign: true }); - data.append(FP8x23 { mag: 1479070, sign: false }); - data.append(FP8x23 { mag: 4653312, sign: true }); - data.append(FP8x23 { mag: 1810198, sign: false }); - data.append(FP8x23 { mag: 9990925, sign: true }); - data.append(FP8x23 { mag: 12655580, sign: false }); - data.append(FP8x23 { mag: 5979269, sign: false }); - data.append(FP8x23 { mag: 4920753, sign: true }); - data.append(FP8x23 { mag: 178767, sign: false }); - data.append(FP8x23 { mag: 3487911, sign: true }); - data.append(FP8x23 { mag: 7999385, sign: false }); - data.append(FP8x23 { mag: 4888891, sign: false }); - data.append(FP8x23 { mag: 8940880, sign: true }); - data.append(FP8x23 { mag: 520413, sign: false }); - data.append(FP8x23 { mag: 29283250, sign: true }); - data.append(FP8x23 { mag: 5451075, sign: false }); - data.append(FP8x23 { mag: 21054176, sign: true }); - data.append(FP8x23 { mag: 764722, sign: true }); - data.append(FP8x23 { mag: 35781404, sign: true }); - data.append(FP8x23 { mag: 1716971, sign: false }); - data.append(FP8x23 { mag: 15621259, sign: true }); - data.append(FP8x23 { mag: 6641498, sign: false }); - data.append(FP8x23 { mag: 9299975, sign: true }); - data.append(FP8x23 { mag: 12600001, sign: false }); - data.append(FP8x23 { mag: 6138847, sign: true }); - data.append(FP8x23 { mag: 21157298, sign: false }); - data.append(FP8x23 { mag: 7135652, sign: false }); - data.append(FP8x23 { mag: 2922059, sign: true }); - data.append(FP8x23 { mag: 16377204, sign: true }); - data.append(FP8x23 { mag: 5736659, sign: false }); - data.append(FP8x23 { mag: 17655176, sign: false }); - data.append(FP8x23 { mag: 29246576, sign: false }); - data.append(FP8x23 { mag: 9018773, sign: true }); - data.append(FP8x23 { mag: 582792, sign: false }); - data.append(FP8x23 { mag: 7041778, sign: true }); - data.append(FP8x23 { mag: 361699, sign: true }); - data.append(FP8x23 { mag: 18572216, sign: true }); - data.append(FP8x23 { mag: 1141944, sign: true }); - data.append(FP8x23 { mag: 10129914, sign: false }); - data.append(FP8x23 { mag: 4692104, sign: false }); - data.append(FP8x23 { mag: 16070120, sign: true }); - data.append(FP8x23 { mag: 7702104, sign: false }); - data.append(FP8x23 { mag: 7488068, sign: true }); - data.append(FP8x23 { mag: 23095692, sign: false }); - data.append(FP8x23 { mag: 1833849, sign: true }); - data.append(FP8x23 { mag: 12071556, sign: false }); - data.append(FP8x23 { mag: 6654369, sign: false }); - data.append(FP8x23 { mag: 2228009, sign: true }); - data.append(FP8x23 { mag: 7557105, sign: true }); - data.append(FP8x23 { mag: 8856797, sign: false }); - data.append(FP8x23 { mag: 12395714, sign: true }); - data.append(FP8x23 { mag: 5265819, sign: false }); - data.append(FP8x23 { mag: 7149849, sign: true }); - data.append(FP8x23 { mag: 535227, sign: false }); - data.append(FP8x23 { mag: 9354983, sign: true }); - data.append(FP8x23 { mag: 1886297, sign: false }); - data.append(FP8x23 { mag: 11759874, sign: true }); - data.append(FP8x23 { mag: 1553244, sign: true }); - data.append(FP8x23 { mag: 4906809, sign: true }); - data.append(FP8x23 { mag: 11679092, sign: true }); - data.append(FP8x23 { mag: 13404629, sign: true }); - data.append(FP8x23 { mag: 8324403, sign: false }); - data.append(FP8x23 { mag: 5321254, sign: false }); - data.append(FP8x23 { mag: 20883912, sign: false }); - data.append(FP8x23 { mag: 9551024, sign: true }); - data.append(FP8x23 { mag: 377017, sign: false }); - data.append(FP8x23 { mag: 7241483, sign: false }); - data.append(FP8x23 { mag: 2262438, sign: true }); - data.append(FP8x23 { mag: 28881548, sign: true }); - data.append(FP8x23 { mag: 15456542, sign: true }); - data.append(FP8x23 { mag: 15339766, sign: true }); - data.append(FP8x23 { mag: 2135888, sign: true }); - data.append(FP8x23 { mag: 9450355, sign: true }); - data.append(FP8x23 { mag: 523906, sign: false }); - data.append(FP8x23 { mag: 25683136, sign: true }); - data.append(FP8x23 { mag: 32249876, sign: false }); - data.append(FP8x23 { mag: 11198256, sign: true }); - data.append(FP8x23 { mag: 1586058, sign: true }); - data.append(FP8x23 { mag: 16911206, sign: true }); - data.append(FP8x23 { mag: 10192207, sign: true }); - data.append(FP8x23 { mag: 9679471, sign: true }); - data.append(FP8x23 { mag: 1754443, sign: false }); - data.append(FP8x23 { mag: 4472428, sign: true }); - data.append(FP8x23 { mag: 20918500, sign: false }); - data.append(FP8x23 { mag: 7556645, sign: true }); - data.append(FP8x23 { mag: 10829383, sign: false }); - data.append(FP8x23 { mag: 5528458, sign: false }); - data.append(FP8x23 { mag: 2697706, sign: true }); - data.append(FP8x23 { mag: 4552741, sign: false }); - data.append(FP8x23 { mag: 22144528, sign: true }); - data.append(FP8x23 { mag: 3608822, sign: true }); - data.append(FP8x23 { mag: 9487844, sign: false }); - data.append(FP8x23 { mag: 11436110, sign: true }); - data.append(FP8x23 { mag: 554338, sign: false }); - data.append(FP8x23 { mag: 12122246, sign: true }); - data.append(FP8x23 { mag: 6229258, sign: true }); - data.append(FP8x23 { mag: 15782264, sign: true }); - data.append(FP8x23 { mag: 1268559, sign: true }); - data.append(FP8x23 { mag: 4948465, sign: true }); - data.append(FP8x23 { mag: 6197991, sign: true }); - data.append(FP8x23 { mag: 15351219, sign: true }); - data.append(FP8x23 { mag: 4140654, sign: false }); - data.append(FP8x23 { mag: 2247070, sign: true }); - data.append(FP8x23 { mag: 8678569, sign: true }); - data.append(FP8x23 { mag: 2279577, sign: true }); - data.append(FP8x23 { mag: 529337, sign: true }); - data.append(FP8x23 { mag: 6385535, sign: false }); - data.append(FP8x23 { mag: 2113548, sign: true }); - data.append(FP8x23 { mag: 6758004, sign: true }); - data.append(FP8x23 { mag: 6438428, sign: true }); - data.append(FP8x23 { mag: 25935804, sign: true }); - data.append(FP8x23 { mag: 28581364, sign: false }); - data.append(FP8x23 { mag: 9998688, sign: true }); - data.append(FP8x23 { mag: 612754, sign: false }); - data.append(FP8x23 { mag: 19290370, sign: true }); + data.append(FP8x23 { mag: 1302729, sign: true }); + data.append(FP8x23 { mag: 4831539, sign: false }); + data.append(FP8x23 { mag: 2405890, sign: true }); + data.append(FP8x23 { mag: 10269737, sign: false }); + data.append(FP8x23 { mag: 22971448, sign: true }); + data.append(FP8x23 { mag: 8658816, sign: true }); + data.append(FP8x23 { mag: 8791916, sign: true }); + data.append(FP8x23 { mag: 6457350, sign: true }); + data.append(FP8x23 { mag: 23814312, sign: false }); + data.append(FP8x23 { mag: 5515081, sign: false }); + data.append(FP8x23 { mag: 8723604, sign: true }); + data.append(FP8x23 { mag: 9736747, sign: false }); + data.append(FP8x23 { mag: 2683101, sign: true }); + data.append(FP8x23 { mag: 18170350, sign: false }); + data.append(FP8x23 { mag: 3875810, sign: true }); + data.append(FP8x23 { mag: 28814384, sign: false }); + data.append(FP8x23 { mag: 12130002, sign: false }); + data.append(FP8x23 { mag: 10525460, sign: true }); + data.append(FP8x23 { mag: 1482957, sign: false }); + data.append(FP8x23 { mag: 10778394, sign: true }); + data.append(FP8x23 { mag: 2144567, sign: false }); + data.append(FP8x23 { mag: 3213963, sign: true }); + data.append(FP8x23 { mag: 1438178, sign: true }); + data.append(FP8x23 { mag: 16459940, sign: false }); + data.append(FP8x23 { mag: 14920009, sign: true }); + data.append(FP8x23 { mag: 1688695, sign: false }); + data.append(FP8x23 { mag: 5723649, sign: true }); + data.append(FP8x23 { mag: 5762840, sign: true }); + data.append(FP8x23 { mag: 23743028, sign: false }); + data.append(FP8x23 { mag: 9072578, sign: false }); + data.append(FP8x23 { mag: 21630128, sign: true }); + data.append(FP8x23 { mag: 4738203, sign: false }); + data.append(FP8x23 { mag: 5646856, sign: false }); + data.append(FP8x23 { mag: 12505231, sign: false }); + data.append(FP8x23 { mag: 2750364, sign: true }); + data.append(FP8x23 { mag: 11142692, sign: true }); + data.append(FP8x23 { mag: 1450514, sign: false }); + data.append(FP8x23 { mag: 8938924, sign: true }); + data.append(FP8x23 { mag: 8347829, sign: true }); + data.append(FP8x23 { mag: 10378059, sign: true }); + data.append(FP8x23 { mag: 2397369, sign: false }); + data.append(FP8x23 { mag: 10139759, sign: false }); + data.append(FP8x23 { mag: 4029842, sign: true }); + data.append(FP8x23 { mag: 13634148, sign: false }); + data.append(FP8x23 { mag: 9718088, sign: true }); + data.append(FP8x23 { mag: 5013421, sign: false }); + data.append(FP8x23 { mag: 1567635, sign: true }); + data.append(FP8x23 { mag: 6230074, sign: true }); + data.append(FP8x23 { mag: 23594884, sign: false }); + data.append(FP8x23 { mag: 5660413, sign: true }); + data.append(FP8x23 { mag: 4544134, sign: false }); + data.append(FP8x23 { mag: 5145321, sign: false }); + data.append(FP8x23 { mag: 1044552, sign: true }); + data.append(FP8x23 { mag: 15062652, sign: false }); + data.append(FP8x23 { mag: 1170275, sign: true }); + data.append(FP8x23 { mag: 7297682, sign: false }); + data.append(FP8x23 { mag: 4021705, sign: false }); + data.append(FP8x23 { mag: 2420450, sign: true }); + data.append(FP8x23 { mag: 9646560, sign: true }); + data.append(FP8x23 { mag: 3731646, sign: true }); + data.append(FP8x23 { mag: 2374416, sign: false }); + data.append(FP8x23 { mag: 4568049, sign: false }); + data.append(FP8x23 { mag: 20037666, sign: true }); + data.append(FP8x23 { mag: 15425628, sign: false }); + data.append(FP8x23 { mag: 24479156, sign: true }); + data.append(FP8x23 { mag: 13813299, sign: false }); + data.append(FP8x23 { mag: 5914193, sign: true }); + data.append(FP8x23 { mag: 5106312, sign: true }); + data.append(FP8x23 { mag: 23249850, sign: false }); + data.append(FP8x23 { mag: 7863789, sign: true }); + data.append(FP8x23 { mag: 2931223, sign: false }); + data.append(FP8x23 { mag: 10148270, sign: true }); + data.append(FP8x23 { mag: 1659329, sign: false }); + data.append(FP8x23 { mag: 16533875, sign: false }); + data.append(FP8x23 { mag: 947778, sign: false }); + data.append(FP8x23 { mag: 1996097, sign: true }); + data.append(FP8x23 { mag: 12094645, sign: false }); + data.append(FP8x23 { mag: 10551688, sign: true }); + data.append(FP8x23 { mag: 436736, sign: true }); + data.append(FP8x23 { mag: 8262162, sign: true }); + data.append(FP8x23 { mag: 800841, sign: false }); + data.append(FP8x23 { mag: 4740033, sign: true }); + data.append(FP8x23 { mag: 1154255, sign: false }); + data.append(FP8x23 { mag: 22071580, sign: false }); + data.append(FP8x23 { mag: 13414370, sign: true }); + data.append(FP8x23 { mag: 6956623, sign: false }); + data.append(FP8x23 { mag: 425380, sign: false }); + data.append(FP8x23 { mag: 7490499, sign: true }); + data.append(FP8x23 { mag: 20456024, sign: false }); + data.append(FP8x23 { mag: 6724115, sign: true }); + data.append(FP8x23 { mag: 6617779, sign: true }); + data.append(FP8x23 { mag: 4948384, sign: false }); + data.append(FP8x23 { mag: 4572023, sign: false }); + data.append(FP8x23 { mag: 13733747, sign: false }); + data.append(FP8x23 { mag: 366789, sign: false }); + data.append(FP8x23 { mag: 8627705, sign: true }); + data.append(FP8x23 { mag: 11436292, sign: false }); + data.append(FP8x23 { mag: 7720046, sign: true }); + data.append(FP8x23 { mag: 4280700, sign: true }); + data.append(FP8x23 { mag: 596352, sign: true }); + data.append(FP8x23 { mag: 135641, sign: true }); + data.append(FP8x23 { mag: 1580582, sign: true }); + data.append(FP8x23 { mag: 7475112, sign: false }); + data.append(FP8x23 { mag: 9973263, sign: false }); + data.append(FP8x23 { mag: 23622258, sign: true }); + data.append(FP8x23 { mag: 14936001, sign: true }); + data.append(FP8x23 { mag: 11125128, sign: true }); + data.append(FP8x23 { mag: 4605262, sign: true }); + data.append(FP8x23 { mag: 24842062, sign: false }); + data.append(FP8x23 { mag: 8487889, sign: false }); + data.append(FP8x23 { mag: 7613585, sign: false }); + data.append(FP8x23 { mag: 20572216, sign: true }); + data.append(FP8x23 { mag: 1407370, sign: true }); + data.append(FP8x23 { mag: 16143629, sign: false }); + data.append(FP8x23 { mag: 2145556, sign: false }); + data.append(FP8x23 { mag: 4857438, sign: true }); + data.append(FP8x23 { mag: 15467646, sign: false }); + data.append(FP8x23 { mag: 13730522, sign: true }); + data.append(FP8x23 { mag: 782145, sign: true }); + data.append(FP8x23 { mag: 6308927, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis3.cairo b/tests/nodes/layer_normalization_4d_axis3.cairo index 2de09a8d6..4b173b4f6 100644 --- a/tests/nodes/layer_normalization_4d_axis3.cairo +++ b/tests/nodes/layer_normalization_4d_axis3.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis3() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(3, false)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(3),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis3/input_0.cairo b/tests/nodes/layer_normalization_4d_axis3/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis3/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis3/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis3/input_1.cairo b/tests/nodes/layer_normalization_4d_axis3/input_1.cairo index c4f5b5a1b..de97da19b 100644 --- a/tests/nodes/layer_normalization_4d_axis3/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis3/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -8,10 +8,10 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 6200252, sign: false }); - data.append(FP8x23 { mag: 4645727, sign: true }); - data.append(FP8x23 { mag: 18131524, sign: false }); - data.append(FP8x23 { mag: 9670945, sign: true }); - data.append(FP8x23 { mag: 4399430, sign: false }); + data.append(FP8x23 { mag: 3788502, sign: false }); + data.append(FP8x23 { mag: 4378064, sign: true }); + data.append(FP8x23 { mag: 686928, sign: true }); + data.append(FP8x23 { mag: 8276067, sign: true }); + data.append(FP8x23 { mag: 2591624, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis3/input_2.cairo b/tests/nodes/layer_normalization_4d_axis3/input_2.cairo index 6dac76016..ddd67c373 100644 --- a/tests/nodes/layer_normalization_4d_axis3/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis3/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -8,10 +8,10 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 538440, sign: false }); - data.append(FP8x23 { mag: 3468236, sign: false }); - data.append(FP8x23 { mag: 8790979, sign: false }); - data.append(FP8x23 { mag: 32869270, sign: false }); - data.append(FP8x23 { mag: 630553, sign: false }); + data.append(FP8x23 { mag: 14176189, sign: false }); + data.append(FP8x23 { mag: 13256247, sign: false }); + data.append(FP8x23 { mag: 7459632, sign: true }); + data.append(FP8x23 { mag: 2183266, sign: false }); + data.append(FP8x23 { mag: 3222205, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis3/output_0.cairo b/tests/nodes/layer_normalization_4d_axis3/output_0.cairo index 9be521f05..afef04f44 100644 --- a/tests/nodes/layer_normalization_4d_axis3/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis3/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 6861451, sign: true }); - data.append(FP8x23 { mag: 1101011, sign: true }); - data.append(FP8x23 { mag: 6298939, sign: false }); - data.append(FP8x23 { mag: 42064444, sign: false }); - data.append(FP8x23 { mag: 6341855, sign: false }); - data.append(FP8x23 { mag: 10637301, sign: false }); - data.append(FP8x23 { mag: 5512855, sign: false }); - data.append(FP8x23 { mag: 4407421, sign: true }); - data.append(FP8x23 { mag: 26673762, sign: false }); - data.append(FP8x23 { mag: 4214892, sign: true }); - data.append(FP8x23 { mag: 3698203, sign: true }); - data.append(FP8x23 { mag: 6179134, sign: false }); - data.append(FP8x23 { mag: 41981648, sign: false }); - data.append(FP8x23 { mag: 41245676, sign: false }); - data.append(FP8x23 { mag: 1961019, sign: false }); - data.append(FP8x23 { mag: 3735727, sign: true }); - data.append(FP8x23 { mag: 899718, sign: true }); - data.append(FP8x23 { mag: 4990078, sign: false }); - data.append(FP8x23 { mag: 20101102, sign: false }); - data.append(FP8x23 { mag: 5359211, sign: true }); - data.append(FP8x23 { mag: 7557954, sign: true }); - data.append(FP8x23 { mag: 2196963, sign: false }); - data.append(FP8x23 { mag: 5912856, sign: true }); - data.append(FP8x23 { mag: 17601684, sign: false }); - data.append(FP8x23 { mag: 1793852, sign: false }); - data.append(FP8x23 { mag: 11044257, sign: true }); - data.append(FP8x23 { mag: 1136295, sign: true }); - data.append(FP8x23 { mag: 17566640, sign: false }); - data.append(FP8x23 { mag: 34149192, sign: false }); - data.append(FP8x23 { mag: 2941641, sign: false }); - data.append(FP8x23 { mag: 10739165, sign: true }); - data.append(FP8x23 { mag: 3654829, sign: false }); - data.append(FP8x23 { mag: 11886320, sign: false }); - data.append(FP8x23 { mag: 28024164, sign: false }); - data.append(FP8x23 { mag: 5854203, sign: false }); - data.append(FP8x23 { mag: 5942399, sign: true }); - data.append(FP8x23 { mag: 8051302, sign: false }); - data.append(FP8x23 { mag: 18253056, sign: false }); - data.append(FP8x23 { mag: 34004268, sign: false }); - data.append(FP8x23 { mag: 7789614, sign: false }); - data.append(FP8x23 { mag: 6142160, sign: true }); - data.append(FP8x23 { mag: 1919472, sign: false }); - data.append(FP8x23 { mag: 24546494, sign: false }); - data.append(FP8x23 { mag: 45248064, sign: false }); - data.append(FP8x23 { mag: 5712510, sign: false }); - data.append(FP8x23 { mag: 7515486, sign: true }); - data.append(FP8x23 { mag: 237511, sign: true }); - data.append(FP8x23 { mag: 11646082, sign: false }); - data.append(FP8x23 { mag: 42217200, sign: false }); - data.append(FP8x23 { mag: 6395711, sign: false }); - data.append(FP8x23 { mag: 5252277, sign: true }); - data.append(FP8x23 { mag: 4592765, sign: false }); - data.append(FP8x23 { mag: 501418, sign: false }); - data.append(FP8x23 { mag: 35841232, sign: false }); - data.append(FP8x23 { mag: 9167666, sign: false }); - data.append(FP8x23 { mag: 7168818, sign: false }); - data.append(FP8x23 { mag: 2182334, sign: false }); - data.append(FP8x23 { mag: 25693876, sign: true }); - data.append(FP8x23 { mag: 30792410, sign: false }); - data.append(FP8x23 { mag: 2130807, sign: false }); - data.append(FP8x23 { mag: 3061656, sign: true }); - data.append(FP8x23 { mag: 5223668, sign: false }); - data.append(FP8x23 { mag: 43419840, sign: false }); - data.append(FP8x23 { mag: 33038392, sign: false }); - data.append(FP8x23 { mag: 3478012, sign: true }); - data.append(FP8x23 { mag: 1468348, sign: false }); - data.append(FP8x23 { mag: 4571455, sign: true }); - data.append(FP8x23 { mag: 14322581, sign: true }); - data.append(FP8x23 { mag: 38651728, sign: false }); - data.append(FP8x23 { mag: 596053, sign: false }); - data.append(FP8x23 { mag: 60762, sign: false }); - data.append(FP8x23 { mag: 3754916, sign: false }); - data.append(FP8x23 { mag: 3730281, sign: true }); - data.append(FP8x23 { mag: 14895674, sign: false }); - data.append(FP8x23 { mag: 3897275, sign: true }); - data.append(FP8x23 { mag: 8682959, sign: false }); - data.append(FP8x23 { mag: 558598, sign: false }); - data.append(FP8x23 { mag: 692740, sign: false }); - data.append(FP8x23 { mag: 31527354, sign: false }); - data.append(FP8x23 { mag: 6549321, sign: true }); - data.append(FP8x23 { mag: 3699828, sign: false }); - data.append(FP8x23 { mag: 7847593, sign: false }); - data.append(FP8x23 { mag: 36143524, sign: false }); - data.append(FP8x23 { mag: 31243174, sign: false }); - data.append(FP8x23 { mag: 4841996, sign: true }); - data.append(FP8x23 { mag: 11383225, sign: false }); - data.append(FP8x23 { mag: 3377710, sign: false }); - data.append(FP8x23 { mag: 1355152, sign: false }); - data.append(FP8x23 { mag: 45740296, sign: false }); - data.append(FP8x23 { mag: 509252, sign: false }); - data.append(FP8x23 { mag: 2763536, sign: false }); - data.append(FP8x23 { mag: 4688158, sign: false }); - data.append(FP8x23 { mag: 40319700, sign: false }); - data.append(FP8x23 { mag: 43844796, sign: false }); - data.append(FP8x23 { mag: 2450252, sign: true }); - data.append(FP8x23 { mag: 122285, sign: true }); - data.append(FP8x23 { mag: 6312799, sign: false }); - data.append(FP8x23 { mag: 43889444, sign: false }); - data.append(FP8x23 { mag: 41180916, sign: false }); - data.append(FP8x23 { mag: 942084, sign: true }); - data.append(FP8x23 { mag: 8298549, sign: true }); - data.append(FP8x23 { mag: 2797356, sign: false }); - data.append(FP8x23 { mag: 39226368, sign: false }); - data.append(FP8x23 { mag: 33248984, sign: false }); - data.append(FP8x23 { mag: 946515, sign: true }); - data.append(FP8x23 { mag: 7877337, sign: true }); - data.append(FP8x23 { mag: 3568616, sign: false }); - data.append(FP8x23 { mag: 5471631, sign: true }); - data.append(FP8x23 { mag: 19389094, sign: false }); - data.append(FP8x23 { mag: 4025465, sign: false }); - data.append(FP8x23 { mag: 8978928, sign: false }); - data.append(FP8x23 { mag: 6984708, sign: false }); - data.append(FP8x23 { mag: 10661943, sign: true }); - data.append(FP8x23 { mag: 38438520, sign: false }); - data.append(FP8x23 { mag: 5225164, sign: false }); - data.append(FP8x23 { mag: 11078083, sign: false }); - data.append(FP8x23 { mag: 7911388, sign: false }); - data.append(FP8x23 { mag: 16678516, sign: false }); - data.append(FP8x23 { mag: 42387840, sign: false }); - data.append(FP8x23 { mag: 224042, sign: true }); + data.append(FP8x23 { mag: 10687401, sign: false }); + data.append(FP8x23 { mag: 18501866, sign: false }); + data.append(FP8x23 { mag: 7720244, sign: true }); + data.append(FP8x23 { mag: 1007289, sign: false }); + data.append(FP8x23 { mag: 918086, sign: true }); + data.append(FP8x23 { mag: 20068066, sign: false }); + data.append(FP8x23 { mag: 10312502, sign: false }); + data.append(FP8x23 { mag: 6596813, sign: true }); + data.append(FP8x23 { mag: 4552789, sign: false }); + data.append(FP8x23 { mag: 4998041, sign: false }); + data.append(FP8x23 { mag: 10128268, sign: false }); + data.append(FP8x23 { mag: 7354607, sign: false }); + data.append(FP8x23 { mag: 7563708, sign: true }); + data.append(FP8x23 { mag: 12087002, sign: false }); + data.append(FP8x23 { mag: 1237964, sign: false }); + data.append(FP8x23 { mag: 18442268, sign: false }); + data.append(FP8x23 { mag: 15300608, sign: false }); + data.append(FP8x23 { mag: 8281400, sign: true }); + data.append(FP8x23 { mag: 6342275, sign: false }); + data.append(FP8x23 { mag: 6728317, sign: false }); + data.append(FP8x23 { mag: 18537474, sign: false }); + data.append(FP8x23 { mag: 12175616, sign: false }); + data.append(FP8x23 { mag: 7813574, sign: true }); + data.append(FP8x23 { mag: 17309800, sign: false }); + data.append(FP8x23 { mag: 3443862, sign: false }); + data.append(FP8x23 { mag: 13112224, sign: false }); + data.append(FP8x23 { mag: 5033589, sign: false }); + data.append(FP8x23 { mag: 7108840, sign: true }); + data.append(FP8x23 { mag: 2370007, sign: false }); + data.append(FP8x23 { mag: 5979892, sign: false }); + data.append(FP8x23 { mag: 9399040, sign: false }); + data.append(FP8x23 { mag: 10599692, sign: false }); + data.append(FP8x23 { mag: 6725607, sign: true }); + data.append(FP8x23 { mag: 8720121, sign: true }); + data.append(FP8x23 { mag: 2171889, sign: false }); + data.append(FP8x23 { mag: 10271292, sign: false }); + data.append(FP8x23 { mag: 8856792, sign: false }); + data.append(FP8x23 { mag: 7844595, sign: true }); + data.append(FP8x23 { mag: 4803428, sign: true }); + data.append(FP8x23 { mag: 6795485, sign: false }); + data.append(FP8x23 { mag: 17807714, sign: false }); + data.append(FP8x23 { mag: 20838886, sign: false }); + data.append(FP8x23 { mag: 8086314, sign: true }); + data.append(FP8x23 { mag: 105801, sign: true }); + data.append(FP8x23 { mag: 4298992, sign: false }); + data.append(FP8x23 { mag: 10501791, sign: false }); + data.append(FP8x23 { mag: 5582881, sign: false }); + data.append(FP8x23 { mag: 6796975, sign: true }); + data.append(FP8x23 { mag: 2603986, sign: false }); + data.append(FP8x23 { mag: 2619135, sign: false }); + data.append(FP8x23 { mag: 15345391, sign: false }); + data.append(FP8x23 { mag: 7680755, sign: false }); + data.append(FP8x23 { mag: 6432286, sign: true }); + data.append(FP8x23 { mag: 3431878, sign: true }); + data.append(FP8x23 { mag: 5204896, sign: false }); + data.append(FP8x23 { mag: 13113800, sign: false }); + data.append(FP8x23 { mag: 9725064, sign: false }); + data.append(FP8x23 { mag: 6484407, sign: true }); + data.append(FP8x23 { mag: 9486773, sign: true }); + data.append(FP8x23 { mag: 4560893, sign: false }); + data.append(FP8x23 { mag: 14081383, sign: false }); + data.append(FP8x23 { mag: 19622632, sign: false }); + data.append(FP8x23 { mag: 8223578, sign: true }); + data.append(FP8x23 { mag: 8021712, sign: false }); + data.append(FP8x23 { mag: 442630, sign: false }); + data.append(FP8x23 { mag: 6884316, sign: false }); + data.append(FP8x23 { mag: 8932191, sign: false }); + data.append(FP8x23 { mag: 7594812, sign: true }); + data.append(FP8x23 { mag: 385854, sign: true }); + data.append(FP8x23 { mag: 2108179, sign: false }); + data.append(FP8x23 { mag: 20355344, sign: false }); + data.append(FP8x23 { mag: 16189169, sign: false }); + data.append(FP8x23 { mag: 6603276, sign: true }); + data.append(FP8x23 { mag: 2181112, sign: true }); + data.append(FP8x23 { mag: 3848914, sign: false }); + data.append(FP8x23 { mag: 12701286, sign: false }); + data.append(FP8x23 { mag: 15061858, sign: false }); + data.append(FP8x23 { mag: 8757626, sign: true }); + data.append(FP8x23 { mag: 2480438, sign: false }); + data.append(FP8x23 { mag: 5948392, sign: false }); + data.append(FP8x23 { mag: 14269568, sign: false }); + data.append(FP8x23 { mag: 7047774, sign: false }); + data.append(FP8x23 { mag: 7718220, sign: true }); + data.append(FP8x23 { mag: 16099773, sign: false }); + data.append(FP8x23 { mag: 3578917, sign: false }); + data.append(FP8x23 { mag: 10858196, sign: false }); + data.append(FP8x23 { mag: 9199796, sign: false }); + data.append(FP8x23 { mag: 6549769, sign: true }); + data.append(FP8x23 { mag: 8350657, sign: true }); + data.append(FP8x23 { mag: 3219648, sign: false }); + data.append(FP8x23 { mag: 12119373, sign: false }); + data.append(FP8x23 { mag: 9431783, sign: false }); + data.append(FP8x23 { mag: 6461031, sign: true }); + data.append(FP8x23 { mag: 8869742, sign: true }); + data.append(FP8x23 { mag: 3772824, sign: false }); + data.append(FP8x23 { mag: 8127924, sign: false }); + data.append(FP8x23 { mag: 16584150, sign: false }); + data.append(FP8x23 { mag: 8071290, sign: true }); + data.append(FP8x23 { mag: 4320410, sign: true }); + data.append(FP8x23 { mag: 1459009, sign: false }); + data.append(FP8x23 { mag: 11231873, sign: false }); + data.append(FP8x23 { mag: 14567803, sign: false }); + data.append(FP8x23 { mag: 6898410, sign: true }); + data.append(FP8x23 { mag: 2296813, sign: false }); + data.append(FP8x23 { mag: 1721236, sign: true }); + data.append(FP8x23 { mag: 20783392, sign: false }); + data.append(FP8x23 { mag: 13201518, sign: false }); + data.append(FP8x23 { mag: 7591836, sign: true }); + data.append(FP8x23 { mag: 11113338, sign: false }); + data.append(FP8x23 { mag: 5476785, sign: false }); + data.append(FP8x23 { mag: 19358212, sign: false }); + data.append(FP8x23 { mag: 20245408, sign: false }); + data.append(FP8x23 { mag: 7649984, sign: true }); + data.append(FP8x23 { mag: 1763582, sign: true }); + data.append(FP8x23 { mag: 4583921, sign: false }); + data.append(FP8x23 { mag: 12314612, sign: false }); + data.append(FP8x23 { mag: 17131904, sign: false }); + data.append(FP8x23 { mag: 8786219, sign: true }); + data.append(FP8x23 { mag: 2707669, sign: false }); + data.append(FP8x23 { mag: 4495219, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_1.cairo b/tests/nodes/layer_normalization_4d_axis_negative_1.cairo index 693dc4311..d7b04e192 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_1.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis_negative_1() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(1, true)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(-1),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_1/input_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_1/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_1/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_1/input_1.cairo b/tests/nodes/layer_normalization_4d_axis_negative_1/input_1.cairo index 51b37b20c..4b133b102 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_1/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -8,10 +8,10 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 7892951, sign: true }); - data.append(FP8x23 { mag: 7153170, sign: false }); - data.append(FP8x23 { mag: 6305733, sign: false }); - data.append(FP8x23 { mag: 6298263, sign: true }); - data.append(FP8x23 { mag: 924383, sign: false }); + data.append(FP8x23 { mag: 11768025, sign: false }); + data.append(FP8x23 { mag: 16293154, sign: false }); + data.append(FP8x23 { mag: 1357895, sign: true }); + data.append(FP8x23 { mag: 10771229, sign: true }); + data.append(FP8x23 { mag: 1256579, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_1/input_2.cairo b/tests/nodes/layer_normalization_4d_axis_negative_1/input_2.cairo index 3fb4ef013..6b26bea9d 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_1/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_1/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -8,10 +8,10 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9596129, sign: false }); - data.append(FP8x23 { mag: 8524695, sign: false }); - data.append(FP8x23 { mag: 8030491, sign: true }); - data.append(FP8x23 { mag: 8640310, sign: false }); - data.append(FP8x23 { mag: 12854812, sign: false }); + data.append(FP8x23 { mag: 14856029, sign: true }); + data.append(FP8x23 { mag: 11603919, sign: false }); + data.append(FP8x23 { mag: 2672200, sign: false }); + data.append(FP8x23 { mag: 513076, sign: false }); + data.append(FP8x23 { mag: 16056013, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_1/output_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_1/output_0.cairo index 5b69011e6..efae9f8b8 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_1/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 19016228, sign: false }); - data.append(FP8x23 { mag: 15560107, sign: false }); - data.append(FP8x23 { mag: 8897166, sign: true }); - data.append(FP8x23 { mag: 14628724, sign: false }); - data.append(FP8x23 { mag: 14054839, sign: false }); - data.append(FP8x23 { mag: 3259770, sign: true }); - data.append(FP8x23 { mag: 5376533, sign: false }); - data.append(FP8x23 { mag: 12620596, sign: true }); - data.append(FP8x23 { mag: 4605447, sign: false }); - data.append(FP8x23 { mag: 11836714, sign: false }); - data.append(FP8x23 { mag: 14989397, sign: false }); - data.append(FP8x23 { mag: 4350642, sign: false }); - data.append(FP8x23 { mag: 3512472, sign: false }); - data.append(FP8x23 { mag: 14095496, sign: false }); - data.append(FP8x23 { mag: 13134362, sign: false }); - data.append(FP8x23 { mag: 15037165, sign: false }); - data.append(FP8x23 { mag: 15250170, sign: false }); - data.append(FP8x23 { mag: 9352358, sign: true }); - data.append(FP8x23 { mag: 324961, sign: false }); - data.append(FP8x23 { mag: 11596276, sign: false }); - data.append(FP8x23 { mag: 19902878, sign: false }); - data.append(FP8x23 { mag: 10482114, sign: false }); - data.append(FP8x23 { mag: 13144152, sign: true }); - data.append(FP8x23 { mag: 1302801, sign: true }); - data.append(FP8x23 { mag: 13099238, sign: false }); - data.append(FP8x23 { mag: 24340960, sign: false }); - data.append(FP8x23 { mag: 15614434, sign: false }); - data.append(FP8x23 { mag: 4978514, sign: true }); - data.append(FP8x23 { mag: 9473866, sign: false }); - data.append(FP8x23 { mag: 13340405, sign: false }); - data.append(FP8x23 { mag: 23952576, sign: false }); - data.append(FP8x23 { mag: 8237391, sign: false }); - data.append(FP8x23 { mag: 6954001, sign: true }); - data.append(FP8x23 { mag: 5484904, sign: false }); - data.append(FP8x23 { mag: 13952376, sign: false }); - data.append(FP8x23 { mag: 17846270, sign: false }); - data.append(FP8x23 { mag: 1468006, sign: false }); - data.append(FP8x23 { mag: 4739795, sign: true }); - data.append(FP8x23 { mag: 9379485, sign: false }); - data.append(FP8x23 { mag: 14359034, sign: false }); - data.append(FP8x23 { mag: 18100568, sign: false }); - data.append(FP8x23 { mag: 10909375, sign: false }); - data.append(FP8x23 { mag: 2551079, sign: true }); - data.append(FP8x23 { mag: 16702075, sign: false }); - data.append(FP8x23 { mag: 13922604, sign: false }); - data.append(FP8x23 { mag: 19848816, sign: false }); - data.append(FP8x23 { mag: 14230550, sign: false }); - data.append(FP8x23 { mag: 7037550, sign: true }); - data.append(FP8x23 { mag: 14728206, sign: false }); - data.append(FP8x23 { mag: 14066155, sign: false }); - data.append(FP8x23 { mag: 16967740, sign: false }); - data.append(FP8x23 { mag: 6793223, sign: false }); - data.append(FP8x23 { mag: 10913412, sign: true }); - data.append(FP8x23 { mag: 10575819, sign: false }); - data.append(FP8x23 { mag: 14648582, sign: false }); - data.append(FP8x23 { mag: 1155626, sign: false }); - data.append(FP8x23 { mag: 10504639, sign: false }); - data.append(FP8x23 { mag: 20023544, sign: true }); - data.append(FP8x23 { mag: 7287742, sign: false }); - data.append(FP8x23 { mag: 13170037, sign: false }); - data.append(FP8x23 { mag: 14179070, sign: false }); - data.append(FP8x23 { mag: 5821802, sign: false }); - data.append(FP8x23 { mag: 4012642, sign: false }); - data.append(FP8x23 { mag: 8750452, sign: false }); - data.append(FP8x23 { mag: 11991543, sign: false }); - data.append(FP8x23 { mag: 8412352, sign: false }); - data.append(FP8x23 { mag: 20903656, sign: false }); - data.append(FP8x23 { mag: 16068864, sign: true }); - data.append(FP8x23 { mag: 12406173, sign: false }); - data.append(FP8x23 { mag: 12847563, sign: false }); - data.append(FP8x23 { mag: 10204216, sign: false }); - data.append(FP8x23 { mag: 8083285, sign: false }); - data.append(FP8x23 { mag: 12385102, sign: true }); - data.append(FP8x23 { mag: 3065106, sign: true }); - data.append(FP8x23 { mag: 11903450, sign: false }); - data.append(FP8x23 { mag: 771882, sign: true }); - data.append(FP8x23 { mag: 13004755, sign: false }); - data.append(FP8x23 { mag: 10846875, sign: true }); - data.append(FP8x23 { mag: 7766379, sign: false }); - data.append(FP8x23 { mag: 11346216, sign: false }); - data.append(FP8x23 { mag: 5571666, sign: false }); - data.append(FP8x23 { mag: 1781663, sign: false }); - data.append(FP8x23 { mag: 1482105, sign: false }); - data.append(FP8x23 { mag: 7581305, sign: false }); - data.append(FP8x23 { mag: 11704950, sign: false }); - data.append(FP8x23 { mag: 4209335, sign: true }); - data.append(FP8x23 { mag: 8664081, sign: false }); - data.append(FP8x23 { mag: 10616503, sign: true }); - data.append(FP8x23 { mag: 17022648, sign: false }); - data.append(FP8x23 { mag: 12829325, sign: false }); - data.append(FP8x23 { mag: 6763571, sign: false }); - data.append(FP8x23 { mag: 6646343, sign: false }); - data.append(FP8x23 { mag: 2934484, sign: false }); - data.append(FP8x23 { mag: 15788190, sign: false }); - data.append(FP8x23 { mag: 12207490, sign: false }); - data.append(FP8x23 { mag: 10437236, sign: false }); - data.append(FP8x23 { mag: 4144833, sign: false }); - data.append(FP8x23 { mag: 4175960, sign: false }); - data.append(FP8x23 { mag: 14053320, sign: false }); - data.append(FP8x23 { mag: 12524378, sign: false }); - data.append(FP8x23 { mag: 20845660, sign: false }); - data.append(FP8x23 { mag: 9557670, sign: false }); - data.append(FP8x23 { mag: 2554248, sign: false }); - data.append(FP8x23 { mag: 8887601, sign: false }); - data.append(FP8x23 { mag: 12523447, sign: false }); - data.append(FP8x23 { mag: 20309456, sign: false }); - data.append(FP8x23 { mag: 8370136, sign: false }); - data.append(FP8x23 { mag: 12990704, sign: true }); - data.append(FP8x23 { mag: 138738, sign: true }); - data.append(FP8x23 { mag: 13568132, sign: false }); - data.append(FP8x23 { mag: 1148653, sign: true }); - data.append(FP8x23 { mag: 3110274, sign: false }); - data.append(FP8x23 { mag: 14795777, sign: true }); - data.append(FP8x23 { mag: 12267317, sign: false }); - data.append(FP8x23 { mag: 13820206, sign: false }); - data.append(FP8x23 { mag: 3820888, sign: true }); - data.append(FP8x23 { mag: 1683436, sign: false }); - data.append(FP8x23 { mag: 5287384, sign: true }); - data.append(FP8x23 { mag: 14839339, sign: false }); - data.append(FP8x23 { mag: 12675249, sign: false }); + data.append(FP8x23 { mag: 25693068, sign: true }); + data.append(FP8x23 { mag: 7917877, sign: true }); + data.append(FP8x23 { mag: 2157031, sign: false }); + data.append(FP8x23 { mag: 1017447, sign: true }); + data.append(FP8x23 { mag: 14048544, sign: true }); + data.append(FP8x23 { mag: 3445597, sign: false }); + data.append(FP8x23 { mag: 22559194, sign: false }); + data.append(FP8x23 { mag: 4377790, sign: false }); + data.append(FP8x23 { mag: 3596989, sign: false }); + data.append(FP8x23 { mag: 16917048, sign: true }); + data.append(FP8x23 { mag: 27429874, sign: true }); + data.append(FP8x23 { mag: 33567124, sign: false }); + data.append(FP8x23 { mag: 2466467, sign: false }); + data.append(FP8x23 { mag: 13402702, sign: false }); + data.append(FP8x23 { mag: 15093930, sign: true }); + data.append(FP8x23 { mag: 1604535, sign: true }); + data.append(FP8x23 { mag: 3995742, sign: false }); + data.append(FP8x23 { mag: 1047758, sign: false }); + data.append(FP8x23 { mag: 5925989, sign: false }); + data.append(FP8x23 { mag: 17755992, sign: true }); + data.append(FP8x23 { mag: 1308801, sign: true }); + data.append(FP8x23 { mag: 15625532, sign: false }); + data.append(FP8x23 { mag: 1972539, sign: false }); + data.append(FP8x23 { mag: 20200126, sign: false }); + data.append(FP8x23 { mag: 16163486, sign: true }); + data.append(FP8x23 { mag: 18160966, sign: true }); + data.append(FP8x23 { mag: 42204896, sign: false }); + data.append(FP8x23 { mag: 3365634, sign: false }); + data.append(FP8x23 { mag: 756118, sign: false }); + data.append(FP8x23 { mag: 17393110, sign: true }); + data.append(FP8x23 { mag: 29695036, sign: true }); + data.append(FP8x23 { mag: 21490404, sign: false }); + data.append(FP8x23 { mag: 4123195, sign: false }); + data.append(FP8x23 { mag: 13677586, sign: true }); + data.append(FP8x23 { mag: 15546755, sign: true }); + data.append(FP8x23 { mag: 26985604, sign: true }); + data.append(FP8x23 { mag: 27976678, sign: false }); + data.append(FP8x23 { mag: 1911217, sign: false }); + data.append(FP8x23 { mag: 8580043, sign: true }); + data.append(FP8x23 { mag: 17788560, sign: true }); + data.append(FP8x23 { mag: 3575616, sign: true }); + data.append(FP8x23 { mag: 16615201, sign: true }); + data.append(FP8x23 { mag: 1433398, sign: false }); + data.append(FP8x23 { mag: 2466125, sign: true }); + data.append(FP8x23 { mag: 16578106, sign: true }); + data.append(FP8x23 { mag: 26269618, sign: true }); + data.append(FP8x23 { mag: 40160680, sign: false }); + data.append(FP8x23 { mag: 3982118, sign: false }); + data.append(FP8x23 { mag: 1060640, sign: false }); + data.append(FP8x23 { mag: 15763607, sign: true }); + data.append(FP8x23 { mag: 11224197, sign: true }); + data.append(FP8x23 { mag: 32353352, sign: false }); + data.append(FP8x23 { mag: 4703022, sign: false }); + data.append(FP8x23 { mag: 6794984, sign: true }); + data.append(FP8x23 { mag: 17017344, sign: true }); + data.append(FP8x23 { mag: 18156072, sign: true }); + data.append(FP8x23 { mag: 24745368, sign: false }); + data.append(FP8x23 { mag: 4599990, sign: false }); + data.append(FP8x23 { mag: 14675376, sign: true }); + data.append(FP8x23 { mag: 16705092, sign: true }); + data.append(FP8x23 { mag: 15150520, sign: true }); + data.append(FP8x23 { mag: 12088855, sign: true }); + data.append(FP8x23 { mag: 1162058, sign: false }); + data.append(FP8x23 { mag: 8111762, sign: false }); + data.append(FP8x23 { mag: 14708304, sign: true }); + data.append(FP8x23 { mag: 37506388, sign: true }); + data.append(FP8x23 { mag: 27696080, sign: false }); + data.append(FP8x23 { mag: 2404980, sign: false }); + data.append(FP8x23 { mag: 2830611, sign: true }); + data.append(FP8x23 { mag: 15515864, sign: true }); + data.append(FP8x23 { mag: 4337955, sign: false }); + data.append(FP8x23 { mag: 688924, sign: false }); + data.append(FP8x23 { mag: 4365013, sign: false }); + data.append(FP8x23 { mag: 5167124, sign: true }); + data.append(FP8x23 { mag: 16359880, sign: true }); + data.append(FP8x23 { mag: 19437442, sign: true }); + data.append(FP8x23 { mag: 4884262, sign: false }); + data.append(FP8x23 { mag: 106371, sign: false }); + data.append(FP8x23 { mag: 899843, sign: false }); + data.append(FP8x23 { mag: 17377838, sign: true }); + data.append(FP8x23 { mag: 14565970, sign: true }); + data.append(FP8x23 { mag: 34709016, sign: false }); + data.append(FP8x23 { mag: 2161031, sign: false }); + data.append(FP8x23 { mag: 18625288, sign: false }); + data.append(FP8x23 { mag: 16228969, sign: true }); + data.append(FP8x23 { mag: 25162534, sign: true }); + data.append(FP8x23 { mag: 26700174, sign: false }); + data.append(FP8x23 { mag: 4470785, sign: false }); + data.append(FP8x23 { mag: 13196732, sign: true }); + data.append(FP8x23 { mag: 16054773, sign: true }); + data.append(FP8x23 { mag: 21245010, sign: true }); + data.append(FP8x23 { mag: 25836828, sign: false }); + data.append(FP8x23 { mag: 4646199, sign: false }); + data.append(FP8x23 { mag: 13872315, sign: true }); + data.append(FP8x23 { mag: 16322987, sign: true }); + data.append(FP8x23 { mag: 33643436, sign: true }); + data.append(FP8x23 { mag: 781014, sign: true }); + data.append(FP8x23 { mag: 1463096, sign: false }); + data.append(FP8x23 { mag: 7951401, sign: true }); + data.append(FP8x23 { mag: 15201107, sign: true }); + data.append(FP8x23 { mag: 24001804, sign: true }); + data.append(FP8x23 { mag: 6722907, sign: false }); + data.append(FP8x23 { mag: 3781605, sign: false }); + data.append(FP8x23 { mag: 660857, sign: false }); + data.append(FP8x23 { mag: 13659127, sign: true }); + data.append(FP8x23 { mag: 5667579, sign: false }); + data.append(FP8x23 { mag: 11807596, sign: false }); + data.append(FP8x23 { mag: 2410864, sign: false }); + data.append(FP8x23 { mag: 12135487, sign: false }); + data.append(FP8x23 { mag: 17149172, sign: true }); + data.append(FP8x23 { mag: 1240615, sign: false }); + data.append(FP8x23 { mag: 14406547, sign: true }); + data.append(FP8x23 { mag: 2295918, sign: false }); + data.append(FP8x23 { mag: 4623713, sign: true }); + data.append(FP8x23 { mag: 16716257, sign: true }); + data.append(FP8x23 { mag: 20638546, sign: true }); + data.append(FP8x23 { mag: 2819504, sign: true }); + data.append(FP8x23 { mag: 49850, sign: false }); + data.append(FP8x23 { mag: 1195583, sign: false }); + data.append(FP8x23 { mag: 16673249, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_2.cairo b/tests/nodes/layer_normalization_4d_axis_negative_2.cairo index 52785fddf..5e17a8b52 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_2.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis_negative_2() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(2, true)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(2),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_2/input_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_2/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_2/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_2/input_1.cairo b/tests/nodes/layer_normalization_4d_axis_negative_2/input_1.cairo index 3356d848b..93be0e58c 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_2/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -9,25 +9,25 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1860902, sign: true }); - data.append(FP8x23 { mag: 7189990, sign: false }); - data.append(FP8x23 { mag: 5594953, sign: false }); - data.append(FP8x23 { mag: 14949612, sign: false }); - data.append(FP8x23 { mag: 1598676, sign: true }); - data.append(FP8x23 { mag: 19332304, sign: true }); - data.append(FP8x23 { mag: 13237330, sign: true }); - data.append(FP8x23 { mag: 13876161, sign: true }); - data.append(FP8x23 { mag: 2710915, sign: false }); - data.append(FP8x23 { mag: 1998193, sign: false }); - data.append(FP8x23 { mag: 10029104, sign: true }); - data.append(FP8x23 { mag: 5128877, sign: true }); - data.append(FP8x23 { mag: 12692706, sign: false }); - data.append(FP8x23 { mag: 7217481, sign: false }); - data.append(FP8x23 { mag: 2729123, sign: true }); - data.append(FP8x23 { mag: 12888666, sign: false }); - data.append(FP8x23 { mag: 4258854, sign: false }); - data.append(FP8x23 { mag: 1006706, sign: true }); - data.append(FP8x23 { mag: 3116978, sign: false }); - data.append(FP8x23 { mag: 10767356, sign: true }); + data.append(FP8x23 { mag: 8254028, sign: false }); + data.append(FP8x23 { mag: 15690628, sign: false }); + data.append(FP8x23 { mag: 5515815, sign: false }); + data.append(FP8x23 { mag: 5436207, sign: false }); + data.append(FP8x23 { mag: 4444335, sign: false }); + data.append(FP8x23 { mag: 1122784, sign: false }); + data.append(FP8x23 { mag: 12881007, sign: false }); + data.append(FP8x23 { mag: 2781310, sign: true }); + data.append(FP8x23 { mag: 582197, sign: false }); + data.append(FP8x23 { mag: 2891656, sign: false }); + data.append(FP8x23 { mag: 1856695, sign: true }); + data.append(FP8x23 { mag: 2058841, sign: false }); + data.append(FP8x23 { mag: 1014957, sign: true }); + data.append(FP8x23 { mag: 9724722, sign: true }); + data.append(FP8x23 { mag: 22497248, sign: true }); + data.append(FP8x23 { mag: 12912647, sign: false }); + data.append(FP8x23 { mag: 10905704, sign: true }); + data.append(FP8x23 { mag: 3390802, sign: false }); + data.append(FP8x23 { mag: 14589767, sign: true }); + data.append(FP8x23 { mag: 8773874, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_2/input_2.cairo b/tests/nodes/layer_normalization_4d_axis_negative_2/input_2.cairo index f973cd66d..c3d9abaf3 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_2/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_2/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -9,25 +9,25 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 14435005, sign: false }); - data.append(FP8x23 { mag: 275345, sign: false }); - data.append(FP8x23 { mag: 7948101, sign: true }); - data.append(FP8x23 { mag: 124471, sign: true }); - data.append(FP8x23 { mag: 11083371, sign: true }); - data.append(FP8x23 { mag: 2513924, sign: true }); - data.append(FP8x23 { mag: 6387124, sign: true }); - data.append(FP8x23 { mag: 5452904, sign: false }); - data.append(FP8x23 { mag: 12271809, sign: true }); - data.append(FP8x23 { mag: 15327354, sign: true }); - data.append(FP8x23 { mag: 3795402, sign: true }); - data.append(FP8x23 { mag: 2307268, sign: false }); - data.append(FP8x23 { mag: 5731544, sign: false }); - data.append(FP8x23 { mag: 4011370, sign: true }); - data.append(FP8x23 { mag: 3178152, sign: false }); - data.append(FP8x23 { mag: 14982171, sign: false }); - data.append(FP8x23 { mag: 2850000, sign: true }); - data.append(FP8x23 { mag: 9445099, sign: false }); - data.append(FP8x23 { mag: 8149556, sign: false }); - data.append(FP8x23 { mag: 8935026, sign: false }); + data.append(FP8x23 { mag: 8789918, sign: true }); + data.append(FP8x23 { mag: 14437992, sign: false }); + data.append(FP8x23 { mag: 86356, sign: true }); + data.append(FP8x23 { mag: 3036480, sign: true }); + data.append(FP8x23 { mag: 6736255, sign: true }); + data.append(FP8x23 { mag: 5972939, sign: false }); + data.append(FP8x23 { mag: 2010263, sign: false }); + data.append(FP8x23 { mag: 6592165, sign: false }); + data.append(FP8x23 { mag: 764864, sign: false }); + data.append(FP8x23 { mag: 6630163, sign: true }); + data.append(FP8x23 { mag: 13792561, sign: true }); + data.append(FP8x23 { mag: 7577680, sign: true }); + data.append(FP8x23 { mag: 12301127, sign: false }); + data.append(FP8x23 { mag: 2468466, sign: false }); + data.append(FP8x23 { mag: 766822, sign: true }); + data.append(FP8x23 { mag: 9420083, sign: false }); + data.append(FP8x23 { mag: 2868397, sign: false }); + data.append(FP8x23 { mag: 9292738, sign: true }); + data.append(FP8x23 { mag: 6785176, sign: false }); + data.append(FP8x23 { mag: 18482062, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_2/output_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_2/output_0.cairo index d1025c8b9..faec7beb3 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_2/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16673352, sign: false }); - data.append(FP8x23 { mag: 8614825, sign: false }); - data.append(FP8x23 { mag: 8265431, sign: true }); - data.append(FP8x23 { mag: 14168915, sign: true }); - data.append(FP8x23 { mag: 13483567, sign: true }); - data.append(FP8x23 { mag: 33185346, sign: true }); - data.append(FP8x23 { mag: 3124395, sign: true }); - data.append(FP8x23 { mag: 12411572, sign: false }); - data.append(FP8x23 { mag: 10344227, sign: true }); - data.append(FP8x23 { mag: 16990572, sign: true }); - data.append(FP8x23 { mag: 3825893, sign: false }); - data.append(FP8x23 { mag: 5566316, sign: false }); - data.append(FP8x23 { mag: 35895616, sign: false }); - data.append(FP8x23 { mag: 11142513, sign: true }); - data.append(FP8x23 { mag: 1895698, sign: false }); - data.append(FP8x23 { mag: 5606359, sign: false }); - data.append(FP8x23 { mag: 1931723, sign: true }); - data.append(FP8x23 { mag: 9897935, sign: false }); - data.append(FP8x23 { mag: 9507187, sign: false }); - data.append(FP8x23 { mag: 20955956, sign: false }); - data.append(FP8x23 { mag: 15031808, sign: false }); - data.append(FP8x23 { mag: 7951613, sign: false }); - data.append(FP8x23 { mag: 7308734, sign: true }); - data.append(FP8x23 { mag: 32985592, sign: false }); - data.append(FP8x23 { mag: 12777209, sign: true }); - data.append(FP8x23 { mag: 28117402, sign: false }); - data.append(FP8x23 { mag: 12005266, sign: true }); - data.append(FP8x23 { mag: 4507819, sign: false }); - data.append(FP8x23 { mag: 13261112, sign: true }); - data.append(FP8x23 { mag: 15133257, sign: true }); - data.append(FP8x23 { mag: 10719554, sign: false }); - data.append(FP8x23 { mag: 1424049, sign: false }); - data.append(FP8x23 { mag: 10354309, sign: false }); - data.append(FP8x23 { mag: 787664, sign: false }); - data.append(FP8x23 { mag: 341933, sign: true }); - data.append(FP8x23 { mag: 4574301, sign: true }); - data.append(FP8x23 { mag: 9131801, sign: true }); - data.append(FP8x23 { mag: 9835476, sign: false }); - data.append(FP8x23 { mag: 5504734, sign: false }); - data.append(FP8x23 { mag: 4531222, sign: false }); - data.append(FP8x23 { mag: 15705951, sign: false }); - data.append(FP8x23 { mag: 5326222, sign: false }); - data.append(FP8x23 { mag: 1075073, sign: true }); - data.append(FP8x23 { mag: 13307859, sign: true }); - data.append(FP8x23 { mag: 13496520, sign: true }); - data.append(FP8x23 { mag: 31963888, sign: false }); - data.append(FP8x23 { mag: 13829816, sign: true }); - data.append(FP8x23 { mag: 7589786, sign: false }); - data.append(FP8x23 { mag: 16098488, sign: true }); - data.append(FP8x23 { mag: 13057562, sign: true }); - data.append(FP8x23 { mag: 3352336, sign: false }); - data.append(FP8x23 { mag: 3148048, sign: false }); - data.append(FP8x23 { mag: 1485042, sign: false }); - data.append(FP8x23 { mag: 5568070, sign: true }); - data.append(FP8x23 { mag: 1098794, sign: true }); - data.append(FP8x23 { mag: 27110094, sign: false }); - data.append(FP8x23 { mag: 2043142, sign: true }); - data.append(FP8x23 { mag: 11334084, sign: false }); - data.append(FP8x23 { mag: 8556721, sign: false }); - data.append(FP8x23 { mag: 6239462, sign: false }); - data.append(FP8x23 { mag: 15445237, sign: false }); - data.append(FP8x23 { mag: 1879795, sign: true }); - data.append(FP8x23 { mag: 5721750, sign: false }); - data.append(FP8x23 { mag: 1854019, sign: false }); - data.append(FP8x23 { mag: 9538382, sign: true }); - data.append(FP8x23 { mag: 9122158, sign: false }); - data.append(FP8x23 { mag: 14900349, sign: true }); - data.append(FP8x23 { mag: 29377836, sign: false }); - data.append(FP8x23 { mag: 15500562, sign: true }); - data.append(FP8x23 { mag: 16778470, sign: true }); - data.append(FP8x23 { mag: 6130239, sign: true }); - data.append(FP8x23 { mag: 1044951, sign: false }); - data.append(FP8x23 { mag: 1925009, sign: false }); - data.append(FP8x23 { mag: 9798252, sign: false }); - data.append(FP8x23 { mag: 4798964, sign: false }); - data.append(FP8x23 { mag: 30214180, sign: false }); - data.append(FP8x23 { mag: 144786, sign: false }); - data.append(FP8x23 { mag: 9489410, sign: false }); - data.append(FP8x23 { mag: 9283074, sign: false }); - data.append(FP8x23 { mag: 18297370, sign: false }); - data.append(FP8x23 { mag: 11923786, sign: false }); - data.append(FP8x23 { mag: 2473868, sign: true }); - data.append(FP8x23 { mag: 6264012, sign: false }); - data.append(FP8x23 { mag: 13958334, sign: false }); - data.append(FP8x23 { mag: 9897873, sign: true }); - data.append(FP8x23 { mag: 22800294, sign: true }); - data.append(FP8x23 { mag: 3598116, sign: true }); - data.append(FP8x23 { mag: 12719248, sign: false }); - data.append(FP8x23 { mag: 15509912, sign: true }); - data.append(FP8x23 { mag: 15816862, sign: true }); - data.append(FP8x23 { mag: 2345113, sign: false }); - data.append(FP8x23 { mag: 7181165, sign: false }); - data.append(FP8x23 { mag: 7487303, sign: false }); - data.append(FP8x23 { mag: 14294384, sign: true }); - data.append(FP8x23 { mag: 6421289, sign: false }); - data.append(FP8x23 { mag: 17845564, sign: false }); - data.append(FP8x23 { mag: 3291163, sign: true }); - data.append(FP8x23 { mag: 7897120, sign: false }); - data.append(FP8x23 { mag: 7330476, sign: false }); - data.append(FP8x23 { mag: 8283012, sign: false }); - data.append(FP8x23 { mag: 16386448, sign: false }); - data.append(FP8x23 { mag: 2375043, sign: false }); - data.append(FP8x23 { mag: 1017275, sign: false }); - data.append(FP8x23 { mag: 1896022, sign: false }); - data.append(FP8x23 { mag: 10863572, sign: true }); - data.append(FP8x23 { mag: 25803316, sign: false }); - data.append(FP8x23 { mag: 7703091, sign: true }); - data.append(FP8x23 { mag: 16504475, sign: false }); - data.append(FP8x23 { mag: 7508723, sign: true }); - data.append(FP8x23 { mag: 13272474, sign: true }); - data.append(FP8x23 { mag: 6865161, sign: true }); - data.append(FP8x23 { mag: 4111037, sign: false }); - data.append(FP8x23 { mag: 22349, sign: false }); - data.append(FP8x23 { mag: 6143899, sign: true }); - data.append(FP8x23 { mag: 2611413, sign: false }); - data.append(FP8x23 { mag: 41386196, sign: false }); - data.append(FP8x23 { mag: 8935166, sign: true }); - data.append(FP8x23 { mag: 9049725, sign: false }); - data.append(FP8x23 { mag: 3582293, sign: false }); - data.append(FP8x23 { mag: 13576482, sign: false }); + data.append(FP8x23 { mag: 21087944, sign: true }); + data.append(FP8x23 { mag: 14202160, sign: true }); + data.append(FP8x23 { mag: 370069, sign: false }); + data.append(FP8x23 { mag: 4146880, sign: true }); + data.append(FP8x23 { mag: 179760, sign: false }); + data.append(FP8x23 { mag: 7276812, sign: false }); + data.append(FP8x23 { mag: 8153829, sign: false }); + data.append(FP8x23 { mag: 9423354, sign: false }); + data.append(FP8x23 { mag: 609877, sign: false }); + data.append(FP8x23 { mag: 8294132, sign: true }); + data.append(FP8x23 { mag: 12562397, sign: true }); + data.append(FP8x23 { mag: 4880166, sign: true }); + data.append(FP8x23 { mag: 11962724, sign: false }); + data.append(FP8x23 { mag: 9929396, sign: false }); + data.append(FP8x23 { mag: 19547024, sign: true }); + data.append(FP8x23 { mag: 26953908, sign: false }); + data.append(FP8x23 { mag: 5759087, sign: false }); + data.append(FP8x23 { mag: 4445810, sign: true }); + data.append(FP8x23 { mag: 11181212, sign: false }); + data.append(FP8x23 { mag: 28726552, sign: true }); + data.append(FP8x23 { mag: 7242334, sign: true }); + data.append(FP8x23 { mag: 12761861, sign: false }); + data.append(FP8x23 { mag: 193729, sign: true }); + data.append(FP8x23 { mag: 7287480, sign: true }); + data.append(FP8x23 { mag: 7691729, sign: true }); + data.append(FP8x23 { mag: 5568957, sign: false }); + data.append(FP8x23 { mag: 12831901, sign: false }); + data.append(FP8x23 { mag: 7948158, sign: false }); + data.append(FP8x23 { mag: 638959, sign: false }); + data.append(FP8x23 { mag: 8929355, sign: true }); + data.append(FP8x23 { mag: 10329036, sign: true }); + data.append(FP8x23 { mag: 5789921, sign: true }); + data.append(FP8x23 { mag: 13908634, sign: false }); + data.append(FP8x23 { mag: 16091354, sign: true }); + data.append(FP8x23 { mag: 13666367, sign: true }); + data.append(FP8x23 { mag: 159615, sign: false }); + data.append(FP8x23 { mag: 13601758, sign: true }); + data.append(FP8x23 { mag: 5820949, sign: true }); + data.append(FP8x23 { mag: 12683600, sign: true }); + data.append(FP8x23 { mag: 28115886, sign: true }); + data.append(FP8x23 { mag: 6226987, sign: true }); + data.append(FP8x23 { mag: 31992340, sign: true }); + data.append(FP8x23 { mag: 1316199, sign: false }); + data.append(FP8x23 { mag: 5853814, sign: true }); + data.append(FP8x23 { mag: 12777388, sign: true }); + data.append(FP8x23 { mag: 5020211, sign: false }); + data.append(FP8x23 { mag: 19168420, sign: false }); + data.append(FP8x23 { mag: 8940602, sign: false }); + data.append(FP8x23 { mag: 699398, sign: false }); + data.append(FP8x23 { mag: 6298646, sign: true }); + data.append(FP8x23 { mag: 14858262, sign: true }); + data.append(FP8x23 { mag: 5715824, sign: true }); + data.append(FP8x23 { mag: 12345495, sign: false }); + data.append(FP8x23 { mag: 4344728, sign: true }); + data.append(FP8x23 { mag: 5410113, sign: true }); + data.append(FP8x23 { mag: 12525305, sign: false }); + data.append(FP8x23 { mag: 8940445, sign: true }); + data.append(FP8x23 { mag: 11470874, sign: true }); + data.append(FP8x23 { mag: 15836346, sign: true }); + data.append(FP8x23 { mag: 17977528, sign: true }); + data.append(FP8x23 { mag: 6319176, sign: true }); + data.append(FP8x23 { mag: 13319088, sign: true }); + data.append(FP8x23 { mag: 10642511, sign: false }); + data.append(FP8x23 { mag: 6762721, sign: true }); + data.append(FP8x23 { mag: 1653770, sign: false }); + data.append(FP8x23 { mag: 3567792, sign: false }); + data.append(FP8x23 { mag: 12541384, sign: false }); + data.append(FP8x23 { mag: 6553638, sign: false }); + data.append(FP8x23 { mag: 840163, sign: false }); + data.append(FP8x23 { mag: 5905214, sign: true }); + data.append(FP8x23 { mag: 14579163, sign: true }); + data.append(FP8x23 { mag: 8499320, sign: true }); + data.append(FP8x23 { mag: 12977132, sign: false }); + data.append(FP8x23 { mag: 2412819, sign: false }); + data.append(FP8x23 { mag: 5657099, sign: false }); + data.append(FP8x23 { mag: 6293111, sign: false }); + data.append(FP8x23 { mag: 5694987, sign: false }); + data.append(FP8x23 { mag: 4423076, sign: true }); + data.append(FP8x23 { mag: 6521042, sign: false }); + data.append(FP8x23 { mag: 24888322, sign: true }); + data.append(FP8x23 { mag: 12639230, sign: true }); + data.append(FP8x23 { mag: 17876392, sign: false }); + data.append(FP8x23 { mag: 1704105, sign: true }); + data.append(FP8x23 { mag: 10134546, sign: true }); + data.append(FP8x23 { mag: 9163717, sign: true }); + data.append(FP8x23 { mag: 4699486, sign: false }); + data.append(FP8x23 { mag: 22207096, sign: false }); + data.append(FP8x23 { mag: 11617848, sign: false }); + data.append(FP8x23 { mag: 1979972, sign: false }); + data.append(FP8x23 { mag: 6108713, sign: true }); + data.append(FP8x23 { mag: 12926792, sign: true }); + data.append(FP8x23 { mag: 5751667, sign: true }); + data.append(FP8x23 { mag: 13657549, sign: false }); + data.append(FP8x23 { mag: 10448591, sign: true }); + data.append(FP8x23 { mag: 2621331, sign: false }); + data.append(FP8x23 { mag: 1846107, sign: false }); + data.append(FP8x23 { mag: 4501459, sign: false }); + data.append(FP8x23 { mag: 6877419, sign: true }); + data.append(FP8x23 { mag: 2810404, sign: true }); + data.append(FP8x23 { mag: 13194988, sign: true }); + data.append(FP8x23 { mag: 16400489, sign: true }); + data.append(FP8x23 { mag: 7287681, sign: false }); + data.append(FP8x23 { mag: 5386697, sign: true }); + data.append(FP8x23 { mag: 3996463, sign: true }); + data.append(FP8x23 { mag: 816025, sign: false }); + data.append(FP8x23 { mag: 8312861, sign: false }); + data.append(FP8x23 { mag: 4596467, sign: false }); + data.append(FP8x23 { mag: 5489366, sign: false }); + data.append(FP8x23 { mag: 190582, sign: false }); + data.append(FP8x23 { mag: 8824953, sign: true }); + data.append(FP8x23 { mag: 15389404, sign: true }); + data.append(FP8x23 { mag: 10396522, sign: true }); + data.append(FP8x23 { mag: 12260739, sign: false }); + data.append(FP8x23 { mag: 620359, sign: false }); + data.append(FP8x23 { mag: 11915708, sign: false }); + data.append(FP8x23 { mag: 4374361, sign: false }); + data.append(FP8x23 { mag: 11809902, sign: false }); + data.append(FP8x23 { mag: 1667804, sign: true }); + data.append(FP8x23 { mag: 5682543, sign: false }); + data.append(FP8x23 { mag: 21908880, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_3.cairo b/tests/nodes/layer_normalization_4d_axis_negative_3.cairo index 3b01a1d4a..4188eec6c 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_3.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_3.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis_negative_3() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(3, true)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(-3),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_3/input_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_3/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_3/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_3/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_3/input_1.cairo b/tests/nodes/layer_normalization_4d_axis_negative_3/input_1.cairo index 99425c1b7..8af148f51 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_3/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_3/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -10,65 +10,65 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16380343, sign: false }); - data.append(FP8x23 { mag: 4257343, sign: false }); - data.append(FP8x23 { mag: 600530, sign: false }); - data.append(FP8x23 { mag: 2445196, sign: false }); - data.append(FP8x23 { mag: 9479607, sign: true }); - data.append(FP8x23 { mag: 978145, sign: true }); - data.append(FP8x23 { mag: 7810708, sign: false }); - data.append(FP8x23 { mag: 3402716, sign: true }); - data.append(FP8x23 { mag: 23762706, sign: true }); - data.append(FP8x23 { mag: 3969772, sign: true }); - data.append(FP8x23 { mag: 287406, sign: false }); - data.append(FP8x23 { mag: 17010742, sign: true }); - data.append(FP8x23 { mag: 13856942, sign: true }); - data.append(FP8x23 { mag: 8047151, sign: true }); - data.append(FP8x23 { mag: 7959897, sign: false }); - data.append(FP8x23 { mag: 13270756, sign: true }); - data.append(FP8x23 { mag: 2099848, sign: true }); - data.append(FP8x23 { mag: 10634067, sign: false }); - data.append(FP8x23 { mag: 12591738, sign: false }); - data.append(FP8x23 { mag: 3020733, sign: true }); - data.append(FP8x23 { mag: 6136434, sign: false }); - data.append(FP8x23 { mag: 3475208, sign: false }); - data.append(FP8x23 { mag: 5530273, sign: true }); - data.append(FP8x23 { mag: 3210239, sign: true }); - data.append(FP8x23 { mag: 1963138, sign: false }); - data.append(FP8x23 { mag: 12035630, sign: false }); - data.append(FP8x23 { mag: 1743576, sign: false }); - data.append(FP8x23 { mag: 1123297, sign: true }); - data.append(FP8x23 { mag: 3857322, sign: false }); - data.append(FP8x23 { mag: 10535923, sign: false }); - data.append(FP8x23 { mag: 22905288, sign: false }); - data.append(FP8x23 { mag: 6554809, sign: false }); - data.append(FP8x23 { mag: 4404682, sign: false }); - data.append(FP8x23 { mag: 2731185, sign: true }); - data.append(FP8x23 { mag: 1388899, sign: true }); - data.append(FP8x23 { mag: 6849233, sign: false }); - data.append(FP8x23 { mag: 2696271, sign: true }); - data.append(FP8x23 { mag: 4022892, sign: true }); - data.append(FP8x23 { mag: 10206850, sign: true }); - data.append(FP8x23 { mag: 1922098, sign: false }); - data.append(FP8x23 { mag: 5108807, sign: false }); - data.append(FP8x23 { mag: 6197766, sign: false }); - data.append(FP8x23 { mag: 3598686, sign: true }); - data.append(FP8x23 { mag: 12654023, sign: true }); - data.append(FP8x23 { mag: 5122151, sign: false }); - data.append(FP8x23 { mag: 7636231, sign: false }); - data.append(FP8x23 { mag: 3971308, sign: false }); - data.append(FP8x23 { mag: 798761, sign: false }); - data.append(FP8x23 { mag: 6869233, sign: false }); - data.append(FP8x23 { mag: 8740030, sign: true }); - data.append(FP8x23 { mag: 4664523, sign: false }); - data.append(FP8x23 { mag: 3437420, sign: false }); - data.append(FP8x23 { mag: 3958479, sign: false }); - data.append(FP8x23 { mag: 6298427, sign: true }); - data.append(FP8x23 { mag: 3669742, sign: false }); - data.append(FP8x23 { mag: 1711541, sign: false }); - data.append(FP8x23 { mag: 22958802, sign: false }); - data.append(FP8x23 { mag: 684171, sign: true }); - data.append(FP8x23 { mag: 1802568, sign: true }); - data.append(FP8x23 { mag: 1621301, sign: true }); + data.append(FP8x23 { mag: 4015916, sign: false }); + data.append(FP8x23 { mag: 9874032, sign: true }); + data.append(FP8x23 { mag: 8467489, sign: false }); + data.append(FP8x23 { mag: 4415316, sign: true }); + data.append(FP8x23 { mag: 263255, sign: true }); + data.append(FP8x23 { mag: 14018546, sign: true }); + data.append(FP8x23 { mag: 831957, sign: true }); + data.append(FP8x23 { mag: 2773992, sign: false }); + data.append(FP8x23 { mag: 7052111, sign: false }); + data.append(FP8x23 { mag: 10508586, sign: false }); + data.append(FP8x23 { mag: 9333348, sign: false }); + data.append(FP8x23 { mag: 6120022, sign: true }); + data.append(FP8x23 { mag: 2919362, sign: false }); + data.append(FP8x23 { mag: 6599845, sign: false }); + data.append(FP8x23 { mag: 5617565, sign: true }); + data.append(FP8x23 { mag: 1982437, sign: false }); + data.append(FP8x23 { mag: 2318222, sign: true }); + data.append(FP8x23 { mag: 6877898, sign: true }); + data.append(FP8x23 { mag: 4843686, sign: true }); + data.append(FP8x23 { mag: 4281547, sign: true }); + data.append(FP8x23 { mag: 9020321, sign: false }); + data.append(FP8x23 { mag: 7121201, sign: true }); + data.append(FP8x23 { mag: 1936677, sign: true }); + data.append(FP8x23 { mag: 3342963, sign: false }); + data.append(FP8x23 { mag: 298643, sign: true }); + data.append(FP8x23 { mag: 5599239, sign: false }); + data.append(FP8x23 { mag: 9816171, sign: true }); + data.append(FP8x23 { mag: 2305190, sign: true }); + data.append(FP8x23 { mag: 7276842, sign: true }); + data.append(FP8x23 { mag: 13293301, sign: false }); + data.append(FP8x23 { mag: 4150123, sign: false }); + data.append(FP8x23 { mag: 6761773, sign: false }); + data.append(FP8x23 { mag: 19059686, sign: true }); + data.append(FP8x23 { mag: 9122647, sign: false }); + data.append(FP8x23 { mag: 2738195, sign: false }); + data.append(FP8x23 { mag: 3539305, sign: true }); + data.append(FP8x23 { mag: 3442799, sign: true }); + data.append(FP8x23 { mag: 7286815, sign: false }); + data.append(FP8x23 { mag: 3449812, sign: true }); + data.append(FP8x23 { mag: 6301439, sign: true }); + data.append(FP8x23 { mag: 27827, sign: false }); + data.append(FP8x23 { mag: 16922668, sign: false }); + data.append(FP8x23 { mag: 6773437, sign: false }); + data.append(FP8x23 { mag: 8139997, sign: false }); + data.append(FP8x23 { mag: 6658577, sign: true }); + data.append(FP8x23 { mag: 6401045, sign: true }); + data.append(FP8x23 { mag: 13884754, sign: true }); + data.append(FP8x23 { mag: 1770918, sign: true }); + data.append(FP8x23 { mag: 6725222, sign: true }); + data.append(FP8x23 { mag: 15731397, sign: true }); + data.append(FP8x23 { mag: 2697259, sign: false }); + data.append(FP8x23 { mag: 5132627, sign: true }); + data.append(FP8x23 { mag: 7225220, sign: true }); + data.append(FP8x23 { mag: 19265056, sign: false }); + data.append(FP8x23 { mag: 2468254, sign: true }); + data.append(FP8x23 { mag: 9273583, sign: false }); + data.append(FP8x23 { mag: 10740621, sign: true }); + data.append(FP8x23 { mag: 9934493, sign: false }); + data.append(FP8x23 { mag: 11214323, sign: false }); + data.append(FP8x23 { mag: 2580905, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_3/input_2.cairo b/tests/nodes/layer_normalization_4d_axis_negative_3/input_2.cairo index 8a5d49e10..241402225 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_3/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_3/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -10,65 +10,65 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9802310, sign: true }); - data.append(FP8x23 { mag: 18025368, sign: false }); - data.append(FP8x23 { mag: 17682696, sign: true }); - data.append(FP8x23 { mag: 7029352, sign: true }); - data.append(FP8x23 { mag: 2764347, sign: true }); - data.append(FP8x23 { mag: 7626198, sign: true }); - data.append(FP8x23 { mag: 7957030, sign: false }); - data.append(FP8x23 { mag: 7354525, sign: false }); - data.append(FP8x23 { mag: 2783866, sign: false }); - data.append(FP8x23 { mag: 3333849, sign: true }); - data.append(FP8x23 { mag: 906374, sign: true }); - data.append(FP8x23 { mag: 6164127, sign: true }); - data.append(FP8x23 { mag: 4297991, sign: true }); - data.append(FP8x23 { mag: 5427655, sign: false }); - data.append(FP8x23 { mag: 18113416, sign: true }); - data.append(FP8x23 { mag: 2255928, sign: false }); - data.append(FP8x23 { mag: 1389584, sign: false }); - data.append(FP8x23 { mag: 4815558, sign: false }); - data.append(FP8x23 { mag: 2817187, sign: true }); - data.append(FP8x23 { mag: 440217, sign: false }); - data.append(FP8x23 { mag: 190737, sign: false }); - data.append(FP8x23 { mag: 8139391, sign: false }); - data.append(FP8x23 { mag: 11498979, sign: true }); - data.append(FP8x23 { mag: 4351939, sign: true }); - data.append(FP8x23 { mag: 5194729, sign: false }); - data.append(FP8x23 { mag: 1153310, sign: true }); - data.append(FP8x23 { mag: 2229956, sign: true }); - data.append(FP8x23 { mag: 4621022, sign: true }); - data.append(FP8x23 { mag: 1791765, sign: false }); - data.append(FP8x23 { mag: 6755727, sign: false }); - data.append(FP8x23 { mag: 3423500, sign: true }); - data.append(FP8x23 { mag: 4643245, sign: true }); - data.append(FP8x23 { mag: 343398, sign: true }); - data.append(FP8x23 { mag: 18973418, sign: true }); - data.append(FP8x23 { mag: 22705418, sign: false }); - data.append(FP8x23 { mag: 4003045, sign: false }); - data.append(FP8x23 { mag: 14684607, sign: true }); - data.append(FP8x23 { mag: 9470858, sign: false }); - data.append(FP8x23 { mag: 4521178, sign: true }); - data.append(FP8x23 { mag: 8692518, sign: true }); - data.append(FP8x23 { mag: 5888156, sign: false }); - data.append(FP8x23 { mag: 7325508, sign: true }); - data.append(FP8x23 { mag: 10220334, sign: true }); - data.append(FP8x23 { mag: 408916, sign: true }); - data.append(FP8x23 { mag: 2895708, sign: true }); - data.append(FP8x23 { mag: 8610215, sign: false }); - data.append(FP8x23 { mag: 11150253, sign: true }); - data.append(FP8x23 { mag: 5360206, sign: false }); - data.append(FP8x23 { mag: 674939, sign: false }); - data.append(FP8x23 { mag: 11169360, sign: true }); - data.append(FP8x23 { mag: 4025671, sign: false }); - data.append(FP8x23 { mag: 9509782, sign: false }); - data.append(FP8x23 { mag: 5718525, sign: true }); - data.append(FP8x23 { mag: 8584055, sign: false }); - data.append(FP8x23 { mag: 5100969, sign: true }); - data.append(FP8x23 { mag: 13275665, sign: true }); - data.append(FP8x23 { mag: 14069922, sign: true }); - data.append(FP8x23 { mag: 9485429, sign: true }); - data.append(FP8x23 { mag: 3613096, sign: false }); - data.append(FP8x23 { mag: 11158159, sign: true }); + data.append(FP8x23 { mag: 5269800, sign: false }); + data.append(FP8x23 { mag: 26437698, sign: false }); + data.append(FP8x23 { mag: 7881796, sign: true }); + data.append(FP8x23 { mag: 496681, sign: true }); + data.append(FP8x23 { mag: 3823099, sign: true }); + data.append(FP8x23 { mag: 7108821, sign: true }); + data.append(FP8x23 { mag: 5930229, sign: false }); + data.append(FP8x23 { mag: 11642453, sign: false }); + data.append(FP8x23 { mag: 142364, sign: true }); + data.append(FP8x23 { mag: 15029132, sign: false }); + data.append(FP8x23 { mag: 6182555, sign: true }); + data.append(FP8x23 { mag: 6906046, sign: false }); + data.append(FP8x23 { mag: 13535761, sign: false }); + data.append(FP8x23 { mag: 15033282, sign: true }); + data.append(FP8x23 { mag: 7360644, sign: true }); + data.append(FP8x23 { mag: 12940572, sign: true }); + data.append(FP8x23 { mag: 2081043, sign: true }); + data.append(FP8x23 { mag: 7708528, sign: false }); + data.append(FP8x23 { mag: 4226297, sign: true }); + data.append(FP8x23 { mag: 5764964, sign: true }); + data.append(FP8x23 { mag: 2288960, sign: true }); + data.append(FP8x23 { mag: 821999, sign: false }); + data.append(FP8x23 { mag: 207150, sign: false }); + data.append(FP8x23 { mag: 15723386, sign: true }); + data.append(FP8x23 { mag: 15068840, sign: false }); + data.append(FP8x23 { mag: 8499812, sign: true }); + data.append(FP8x23 { mag: 6200952, sign: false }); + data.append(FP8x23 { mag: 2097368, sign: false }); + data.append(FP8x23 { mag: 2254739, sign: true }); + data.append(FP8x23 { mag: 3738338, sign: true }); + data.append(FP8x23 { mag: 3717253, sign: true }); + data.append(FP8x23 { mag: 2772971, sign: true }); + data.append(FP8x23 { mag: 1447187, sign: true }); + data.append(FP8x23 { mag: 6541738, sign: true }); + data.append(FP8x23 { mag: 12934512, sign: false }); + data.append(FP8x23 { mag: 4182447, sign: true }); + data.append(FP8x23 { mag: 2751003, sign: false }); + data.append(FP8x23 { mag: 5609383, sign: false }); + data.append(FP8x23 { mag: 17567880, sign: false }); + data.append(FP8x23 { mag: 57541, sign: true }); + data.append(FP8x23 { mag: 7380573, sign: true }); + data.append(FP8x23 { mag: 10171347, sign: true }); + data.append(FP8x23 { mag: 4604353, sign: false }); + data.append(FP8x23 { mag: 7985652, sign: false }); + data.append(FP8x23 { mag: 10874691, sign: false }); + data.append(FP8x23 { mag: 5158722, sign: true }); + data.append(FP8x23 { mag: 3391219, sign: true }); + data.append(FP8x23 { mag: 7147749, sign: false }); + data.append(FP8x23 { mag: 8060486, sign: false }); + data.append(FP8x23 { mag: 338831, sign: false }); + data.append(FP8x23 { mag: 3054272, sign: false }); + data.append(FP8x23 { mag: 7731630, sign: true }); + data.append(FP8x23 { mag: 3137681, sign: true }); + data.append(FP8x23 { mag: 2613931, sign: true }); + data.append(FP8x23 { mag: 2182738, sign: false }); + data.append(FP8x23 { mag: 10013805, sign: false }); + data.append(FP8x23 { mag: 6079653, sign: true }); + data.append(FP8x23 { mag: 5500669, sign: true }); + data.append(FP8x23 { mag: 3497484, sign: false }); + data.append(FP8x23 { mag: 1959672, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_3/output_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_3/output_0.cairo index 125162520..6b765a4c8 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_3/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_3/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 30795284, sign: true }); - data.append(FP8x23 { mag: 24452244, sign: false }); - data.append(FP8x23 { mag: 17639236, sign: true }); - data.append(FP8x23 { mag: 9402301, sign: true }); - data.append(FP8x23 { mag: 20899032, sign: true }); - data.append(FP8x23 { mag: 9595832, sign: true }); - data.append(FP8x23 { mag: 6771320, sign: false }); - data.append(FP8x23 { mag: 8896149, sign: false }); - data.append(FP8x23 { mag: 20488648, sign: true }); - data.append(FP8x23 { mag: 16405, sign: false }); - data.append(FP8x23 { mag: 1124332, sign: true }); - data.append(FP8x23 { mag: 4234479, sign: false }); - data.append(FP8x23 { mag: 45132380, sign: true }); - data.append(FP8x23 { mag: 13698921, sign: false }); - data.append(FP8x23 { mag: 12585182, sign: true }); - data.append(FP8x23 { mag: 11810859, sign: false }); - data.append(FP8x23 { mag: 562048, sign: false }); - data.append(FP8x23 { mag: 646758, sign: false }); - data.append(FP8x23 { mag: 5416873, sign: false }); - data.append(FP8x23 { mag: 4003232, sign: false }); - data.append(FP8x23 { mag: 2271500, sign: true }); - data.append(FP8x23 { mag: 11301107, sign: false }); - data.append(FP8x23 { mag: 11551598, sign: true }); - data.append(FP8x23 { mag: 10750163, sign: true }); - data.append(FP8x23 { mag: 6965746, sign: false }); - data.append(FP8x23 { mag: 20345854, sign: true }); - data.append(FP8x23 { mag: 1702719, sign: true }); - data.append(FP8x23 { mag: 4582737, sign: true }); - data.append(FP8x23 { mag: 82919, sign: false }); - data.append(FP8x23 { mag: 6685446, sign: false }); - data.append(FP8x23 { mag: 36982080, sign: true }); - data.append(FP8x23 { mag: 4222303, sign: true }); - data.append(FP8x23 { mag: 738083, sign: false }); - data.append(FP8x23 { mag: 20419578, sign: true }); - data.append(FP8x23 { mag: 21150390, sign: false }); - data.append(FP8x23 { mag: 6484889, sign: true }); - data.append(FP8x23 { mag: 10663730, sign: true }); - data.append(FP8x23 { mag: 11339833, sign: false }); - data.append(FP8x23 { mag: 4661686, sign: false }); - data.append(FP8x23 { mag: 8139288, sign: true }); - data.append(FP8x23 { mag: 2797626, sign: false }); - data.append(FP8x23 { mag: 3984268, sign: true }); - data.append(FP8x23 { mag: 13723312, sign: true }); - data.append(FP8x23 { mag: 9324158, sign: false }); - data.append(FP8x23 { mag: 3278882, sign: false }); - data.append(FP8x23 { mag: 2948328, sign: true }); - data.append(FP8x23 { mag: 9469186, sign: true }); - data.append(FP8x23 { mag: 5225903, sign: false }); - data.append(FP8x23 { mag: 7613417, sign: true }); - data.append(FP8x23 { mag: 19009284, sign: true }); - data.append(FP8x23 { mag: 1089409, sign: false }); - data.append(FP8x23 { mag: 8903622, sign: false }); - data.append(FP8x23 { mag: 6974317, sign: true }); - data.append(FP8x23 { mag: 9963899, sign: false }); - data.append(FP8x23 { mag: 502413, sign: true }); - data.append(FP8x23 { mag: 12015909, sign: true }); - data.append(FP8x23 { mag: 11418954, sign: true }); - data.append(FP8x23 { mag: 8397312, sign: true }); - data.append(FP8x23 { mag: 3492521, sign: false }); - data.append(FP8x23 { mag: 11426886, sign: true }); - data.append(FP8x23 { mag: 20181712, sign: true }); - data.append(FP8x23 { mag: 16384300, sign: false }); - data.append(FP8x23 { mag: 16232709, sign: true }); - data.append(FP8x23 { mag: 6893410, sign: true }); - data.append(FP8x23 { mag: 7340870, sign: false }); - data.append(FP8x23 { mag: 6947460, sign: true }); - data.append(FP8x23 { mag: 12463704, sign: false }); - data.append(FP8x23 { mag: 13613810, sign: false }); - data.append(FP8x23 { mag: 33562828, sign: false }); - data.append(FP8x23 { mag: 75456, sign: true }); - data.append(FP8x23 { mag: 860922, sign: true }); - data.append(FP8x23 { mag: 9085466, sign: true }); - data.append(FP8x23 { mag: 1045640, sign: false }); - data.append(FP8x23 { mag: 9649592, sign: true }); - data.append(FP8x23 { mag: 23571772, sign: true }); - data.append(FP8x23 { mag: 12698496, sign: true }); - data.append(FP8x23 { mag: 49246, sign: false }); - data.append(FP8x23 { mag: 3492380, sign: false }); - data.append(FP8x23 { mag: 856033, sign: false }); - data.append(FP8x23 { mag: 3361495, sign: false }); - data.append(FP8x23 { mag: 8664075, sign: false }); - data.append(FP8x23 { mag: 6857170, sign: false }); - data.append(FP8x23 { mag: 25788504, sign: true }); - data.append(FP8x23 { mag: 7463156, sign: true }); - data.append(FP8x23 { mag: 3757968, sign: false }); - data.append(FP8x23 { mag: 11816282, sign: false }); - data.append(FP8x23 { mag: 2570839, sign: true }); - data.append(FP8x23 { mag: 4046212, sign: true }); - data.append(FP8x23 { mag: 2796458, sign: true }); - data.append(FP8x23 { mag: 4330926, sign: false }); - data.append(FP8x23 { mag: 17195276, sign: true }); - data.append(FP8x23 { mag: 10822918, sign: true }); - data.append(FP8x23 { mag: 348715, sign: false }); - data.append(FP8x23 { mag: 15089289, sign: true }); - data.append(FP8x23 { mag: 24348896, sign: false }); - data.append(FP8x23 { mag: 5659438, sign: false }); - data.append(FP8x23 { mag: 14449243, sign: true }); - data.append(FP8x23 { mag: 3150978, sign: false }); - data.append(FP8x23 { mag: 1988497, sign: true }); - data.append(FP8x23 { mag: 8541534, sign: true }); - data.append(FP8x23 { mag: 1048302, sign: false }); - data.append(FP8x23 { mag: 5198116, sign: true }); - data.append(FP8x23 { mag: 15995067, sign: true }); - data.append(FP8x23 { mag: 2841452, sign: true }); - data.append(FP8x23 { mag: 3255403, sign: true }); - data.append(FP8x23 { mag: 1682816, sign: true }); - data.append(FP8x23 { mag: 10523466, sign: true }); - data.append(FP8x23 { mag: 4797427, sign: false }); - data.append(FP8x23 { mag: 12720153, sign: false }); - data.append(FP8x23 { mag: 20364616, sign: true }); - data.append(FP8x23 { mag: 5689884, sign: false }); - data.append(FP8x23 { mag: 8559599, sign: false }); - data.append(FP8x23 { mag: 7186609, sign: true }); - data.append(FP8x23 { mag: 9984205, sign: false }); - data.append(FP8x23 { mag: 4139366, sign: true }); - data.append(FP8x23 { mag: 9793996, sign: true }); - data.append(FP8x23 { mag: 44222332, sign: true }); - data.append(FP8x23 { mag: 9786600, sign: true }); - data.append(FP8x23 { mag: 6043721, sign: false }); - data.append(FP8x23 { mag: 10586105, sign: true }); + data.append(FP8x23 { mag: 1377619, sign: true }); + data.append(FP8x23 { mag: 46126352, sign: false }); + data.append(FP8x23 { mag: 8447846, sign: true }); + data.append(FP8x23 { mag: 1078388, sign: false }); + data.append(FP8x23 { mag: 4197258, sign: true }); + data.append(FP8x23 { mag: 21442406, sign: true }); + data.append(FP8x23 { mag: 5654608, sign: false }); + data.append(FP8x23 { mag: 8373193, sign: false }); + data.append(FP8x23 { mag: 3099309, sign: true }); + data.append(FP8x23 { mag: 7340858, sign: false }); + data.append(FP8x23 { mag: 13832236, sign: true }); + data.append(FP8x23 { mag: 272050, sign: true }); + data.append(FP8x23 { mag: 14079711, sign: false }); + data.append(FP8x23 { mag: 21140192, sign: true }); + data.append(FP8x23 { mag: 11251934, sign: true }); + data.append(FP8x23 { mag: 10519948, sign: true }); + data.append(FP8x23 { mag: 1111704, sign: true }); + data.append(FP8x23 { mag: 1186678, sign: true }); + data.append(FP8x23 { mag: 2023637, sign: true }); + data.append(FP8x23 { mag: 71723, sign: true }); + data.append(FP8x23 { mag: 644434, sign: true }); + data.append(FP8x23 { mag: 1837309, sign: false }); + data.append(FP8x23 { mag: 296517, sign: false }); + data.append(FP8x23 { mag: 18691470, sign: true }); + data.append(FP8x23 { mag: 15147077, sign: false }); + data.append(FP8x23 { mag: 10861756, sign: true }); + data.append(FP8x23 { mag: 2660419, sign: true }); + data.append(FP8x23 { mag: 3394808, sign: false }); + data.append(FP8x23 { mag: 338183, sign: true }); + data.append(FP8x23 { mag: 15733650, sign: true }); + data.append(FP8x23 { mag: 12365466, sign: true }); + data.append(FP8x23 { mag: 3541655, sign: false }); + data.append(FP8x23 { mag: 32345368, sign: false }); + data.append(FP8x23 { mag: 12452552, sign: false }); + data.append(FP8x23 { mag: 14600115, sign: false }); + data.append(FP8x23 { mag: 1293272, sign: true }); + data.append(FP8x23 { mag: 2903611, sign: true }); + data.append(FP8x23 { mag: 13665540, sign: false }); + data.append(FP8x23 { mag: 12571296, sign: false }); + data.append(FP8x23 { mag: 7735577, sign: false }); + data.append(FP8x23 { mag: 7368433, sign: true }); + data.append(FP8x23 { mag: 49328312, sign: true }); + data.append(FP8x23 { mag: 7238951, sign: false }); + data.append(FP8x23 { mag: 5862499, sign: false }); + data.append(FP8x23 { mag: 17321778, sign: false }); + data.append(FP8x23 { mag: 1710870, sign: true }); + data.append(FP8x23 { mag: 21378808, sign: true }); + data.append(FP8x23 { mag: 8095413, sign: false }); + data.append(FP8x23 { mag: 7519097, sign: false }); + data.append(FP8x23 { mag: 3932442, sign: true }); + data.append(FP8x23 { mag: 4828702, sign: false }); + data.append(FP8x23 { mag: 12534346, sign: true }); + data.append(FP8x23 { mag: 4137026, sign: true }); + data.append(FP8x23 { mag: 12111757, sign: false }); + data.append(FP8x23 { mag: 1322099, sign: false }); + data.append(FP8x23 { mag: 13513219, sign: false }); + data.append(FP8x23 { mag: 17742402, sign: true }); + data.append(FP8x23 { mag: 9128971, sign: true }); + data.append(FP8x23 { mag: 20086140, sign: false }); + data.append(FP8x23 { mag: 1382969, sign: false }); + data.append(FP8x23 { mag: 6295538, sign: false }); + data.append(FP8x23 { mag: 48501584, sign: false }); + data.append(FP8x23 { mag: 11057000, sign: false }); + data.append(FP8x23 { mag: 3609993, sign: false }); + data.append(FP8x23 { mag: 4393747, sign: true }); + data.append(FP8x23 { mag: 30512606, sign: false }); + data.append(FP8x23 { mag: 5198704, sign: false }); + data.append(FP8x23 { mag: 11397626, sign: false }); + data.append(FP8x23 { mag: 215633, sign: false }); + data.append(FP8x23 { mag: 17097970, sign: false }); + data.append(FP8x23 { mag: 2401828, sign: true }); + data.append(FP8x23 { mag: 10846288, sign: false }); + data.append(FP8x23 { mag: 10888669, sign: false }); + data.append(FP8x23 { mag: 15680364, sign: true }); + data.append(FP8x23 { mag: 4840164, sign: true }); + data.append(FP8x23 { mag: 13726524, sign: true }); + data.append(FP8x23 { mag: 1114465, sign: true }); + data.append(FP8x23 { mag: 3460715, sign: true }); + data.append(FP8x23 { mag: 3823596, sign: true }); + data.append(FP8x23 { mag: 1552296, sign: true }); + data.append(FP8x23 { mag: 7058666, sign: true }); + data.append(FP8x23 { mag: 553315, sign: true }); + data.append(FP8x23 { mag: 878244, sign: false }); + data.append(FP8x23 { mag: 20445996, sign: true }); + data.append(FP8x23 { mag: 15251864, sign: false }); + data.append(FP8x23 { mag: 15398532, sign: true }); + data.append(FP8x23 { mag: 9638320, sign: true }); + data.append(FP8x23 { mag: 6570754, sign: false }); + data.append(FP8x23 { mag: 17975028, sign: true }); + data.append(FP8x23 { mag: 1714295, sign: true }); + data.append(FP8x23 { mag: 5911468, sign: true }); + data.append(FP8x23 { mag: 3288110, sign: false }); + data.append(FP8x23 { mag: 26095284, sign: false }); + data.append(FP8x23 { mag: 5875775, sign: false }); + data.append(FP8x23 { mag: 12397143, sign: false }); + data.append(FP8x23 { mag: 1862939, sign: true }); + data.append(FP8x23 { mag: 3423535, sign: false }); + data.append(FP8x23 { mag: 10801258, sign: false }); + data.append(FP8x23 { mag: 15308325, sign: false }); + data.append(FP8x23 { mag: 3819202, sign: true }); + data.append(FP8x23 { mag: 7393014, sign: true }); + data.append(FP8x23 { mag: 12690310, sign: true }); + data.append(FP8x23 { mag: 1407596, sign: false }); + data.append(FP8x23 { mag: 8226985, sign: false }); + data.append(FP8x23 { mag: 2689187, sign: false }); + data.append(FP8x23 { mag: 14602564, sign: true }); + data.append(FP8x23 { mag: 7153725, sign: true }); + data.append(FP8x23 { mag: 6446196, sign: false }); + data.append(FP8x23 { mag: 11344032, sign: false }); + data.append(FP8x23 { mag: 5731847, sign: false }); + data.append(FP8x23 { mag: 4922383, sign: false }); + data.append(FP8x23 { mag: 3969367, sign: true }); + data.append(FP8x23 { mag: 4351727, sign: true }); + data.append(FP8x23 { mag: 2474283, sign: false }); + data.append(FP8x23 { mag: 2720667, sign: false }); + data.append(FP8x23 { mag: 9018600, sign: false }); + data.append(FP8x23 { mag: 1979362, sign: true }); + data.append(FP8x23 { mag: 10202510, sign: false }); + data.append(FP8x23 { mag: 5638443, sign: false }); + data.append(FP8x23 { mag: 2236335, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_4.cairo b/tests/nodes/layer_normalization_4d_axis_negative_4.cairo index 7acaf24b3..5aa5971dc 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_4.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_4.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP8x23}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -19,14 +19,7 @@ fn test_layer_normalization_4d_axis_negative_4() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, - Option::Some(@input_2), - Option::Some(IntegerTrait::::new(4, true)), - Option::None, - Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::Some(-4),Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_4/input_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_4/input_0.cairo index d7913bb11..797e656d8 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_4/input_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_4/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9853496, sign: true }); - data.append(FP8x23 { mag: 12258403, sign: false }); - data.append(FP8x23 { mag: 872656, sign: false }); - data.append(FP8x23 { mag: 7388622, sign: true }); - data.append(FP8x23 { mag: 15454325, sign: false }); - data.append(FP8x23 { mag: 16251435, sign: false }); - data.append(FP8x23 { mag: 903277, sign: true }); - data.append(FP8x23 { mag: 3289794, sign: true }); - data.append(FP8x23 { mag: 8057933, sign: false }); - data.append(FP8x23 { mag: 6386388, sign: true }); - data.append(FP8x23 { mag: 5708410, sign: true }); - data.append(FP8x23 { mag: 4543373, sign: true }); - data.append(FP8x23 { mag: 23644376, sign: false }); - data.append(FP8x23 { mag: 7843321, sign: true }); - data.append(FP8x23 { mag: 5801261, sign: false }); - data.append(FP8x23 { mag: 5404517, sign: true }); - data.append(FP8x23 { mag: 3421350, sign: false }); - data.append(FP8x23 { mag: 2806284, sign: true }); - data.append(FP8x23 { mag: 5479745, sign: false }); - data.append(FP8x23 { mag: 9044852, sign: true }); - data.append(FP8x23 { mag: 2879371, sign: true }); - data.append(FP8x23 { mag: 7506722, sign: false }); - data.append(FP8x23 { mag: 374708, sign: false }); - data.append(FP8x23 { mag: 16088456, sign: false }); - data.append(FP8x23 { mag: 7446071, sign: false }); - data.append(FP8x23 { mag: 12333473, sign: true }); - data.append(FP8x23 { mag: 2694855, sign: false }); - data.append(FP8x23 { mag: 29333, sign: false }); - data.append(FP8x23 { mag: 3210230, sign: true }); - data.append(FP8x23 { mag: 246487, sign: false }); - data.append(FP8x23 { mag: 11307238, sign: true }); - data.append(FP8x23 { mag: 808074, sign: false }); - data.append(FP8x23 { mag: 2244426, sign: false }); - data.append(FP8x23 { mag: 4494036, sign: false }); - data.append(FP8x23 { mag: 9168918, sign: false }); - data.append(FP8x23 { mag: 11831318, sign: true }); - data.append(FP8x23 { mag: 11514568, sign: true }); - data.append(FP8x23 { mag: 3381120, sign: true }); - data.append(FP8x23 { mag: 6827926, sign: true }); - data.append(FP8x23 { mag: 2579494, sign: false }); - data.append(FP8x23 { mag: 4493030, sign: true }); - data.append(FP8x23 { mag: 4570125, sign: false }); - data.append(FP8x23 { mag: 8010665, sign: false }); - data.append(FP8x23 { mag: 5794037, sign: true }); - data.append(FP8x23 { mag: 9849078, sign: false }); - data.append(FP8x23 { mag: 11691798, sign: true }); - data.append(FP8x23 { mag: 3652747, sign: false }); - data.append(FP8x23 { mag: 1032666, sign: true }); - data.append(FP8x23 { mag: 9259310, sign: true }); - data.append(FP8x23 { mag: 7405492, sign: false }); - data.append(FP8x23 { mag: 4687488, sign: true }); - data.append(FP8x23 { mag: 1097650, sign: true }); - data.append(FP8x23 { mag: 2213858, sign: true }); - data.append(FP8x23 { mag: 1436205, sign: true }); - data.append(FP8x23 { mag: 10226423, sign: false }); - data.append(FP8x23 { mag: 6130226, sign: false }); - data.append(FP8x23 { mag: 1214058, sign: false }); - data.append(FP8x23 { mag: 12299984, sign: true }); - data.append(FP8x23 { mag: 829240, sign: false }); - data.append(FP8x23 { mag: 1612388, sign: false }); - data.append(FP8x23 { mag: 6632529, sign: true }); - data.append(FP8x23 { mag: 4410829, sign: true }); - data.append(FP8x23 { mag: 20654302, sign: false }); - data.append(FP8x23 { mag: 462475, sign: true }); - data.append(FP8x23 { mag: 10502841, sign: true }); - data.append(FP8x23 { mag: 7171902, sign: true }); - data.append(FP8x23 { mag: 4204962, sign: false }); - data.append(FP8x23 { mag: 17427142, sign: true }); - data.append(FP8x23 { mag: 12555224, sign: true }); - data.append(FP8x23 { mag: 8307885, sign: true }); - data.append(FP8x23 { mag: 455536, sign: false }); - data.append(FP8x23 { mag: 577191, sign: false }); - data.append(FP8x23 { mag: 4412268, sign: true }); - data.append(FP8x23 { mag: 15812229, sign: false }); - data.append(FP8x23 { mag: 7098764, sign: true }); - data.append(FP8x23 { mag: 9127468, sign: false }); - data.append(FP8x23 { mag: 4753858, sign: false }); - data.append(FP8x23 { mag: 2074029, sign: true }); - data.append(FP8x23 { mag: 1651256, sign: false }); - data.append(FP8x23 { mag: 9617324, sign: true }); - data.append(FP8x23 { mag: 11400835, sign: false }); - data.append(FP8x23 { mag: 4263073, sign: true }); - data.append(FP8x23 { mag: 22170402, sign: false }); - data.append(FP8x23 { mag: 7715608, sign: false }); - data.append(FP8x23 { mag: 7511781, sign: true }); - data.append(FP8x23 { mag: 8686402, sign: false }); - data.append(FP8x23 { mag: 2710329, sign: true }); - data.append(FP8x23 { mag: 5540998, sign: true }); - data.append(FP8x23 { mag: 11608300, sign: true }); - data.append(FP8x23 { mag: 3020404, sign: true }); - data.append(FP8x23 { mag: 6342478, sign: true }); - data.append(FP8x23 { mag: 9399735, sign: true }); - data.append(FP8x23 { mag: 446463, sign: false }); - data.append(FP8x23 { mag: 13691013, sign: true }); - data.append(FP8x23 { mag: 11552903, sign: true }); - data.append(FP8x23 { mag: 1204731, sign: false }); - data.append(FP8x23 { mag: 1741592, sign: true }); - data.append(FP8x23 { mag: 13103082, sign: false }); - data.append(FP8x23 { mag: 3181444, sign: true }); - data.append(FP8x23 { mag: 256975, sign: true }); - data.append(FP8x23 { mag: 9440785, sign: true }); - data.append(FP8x23 { mag: 2112590, sign: false }); - data.append(FP8x23 { mag: 13404752, sign: false }); - data.append(FP8x23 { mag: 760699, sign: false }); - data.append(FP8x23 { mag: 1588793, sign: true }); - data.append(FP8x23 { mag: 13026604, sign: true }); - data.append(FP8x23 { mag: 452707, sign: false }); - data.append(FP8x23 { mag: 7267348, sign: true }); - data.append(FP8x23 { mag: 14737007, sign: false }); - data.append(FP8x23 { mag: 8457998, sign: false }); - data.append(FP8x23 { mag: 2233703, sign: false }); - data.append(FP8x23 { mag: 3434673, sign: true }); - data.append(FP8x23 { mag: 4280157, sign: true }); - data.append(FP8x23 { mag: 2950181, sign: true }); - data.append(FP8x23 { mag: 1385553, sign: false }); - data.append(FP8x23 { mag: 17250056, sign: false }); - data.append(FP8x23 { mag: 12716927, sign: true }); - data.append(FP8x23 { mag: 2980452, sign: false }); - data.append(FP8x23 { mag: 13031106, sign: true }); - data.append(FP8x23 { mag: 4118717, sign: true }); + data.append(FP8x23 { mag: 14135088, sign: true }); + data.append(FP8x23 { mag: 16974250, sign: true }); + data.append(FP8x23 { mag: 820692, sign: true }); + data.append(FP8x23 { mag: 3250506, sign: true }); + data.append(FP8x23 { mag: 11653046, sign: false }); + data.append(FP8x23 { mag: 8310194, sign: false }); + data.append(FP8x23 { mag: 2516595, sign: false }); + data.append(FP8x23 { mag: 10139063, sign: true }); + data.append(FP8x23 { mag: 3774983, sign: true }); + data.append(FP8x23 { mag: 6392895, sign: true }); + data.append(FP8x23 { mag: 7130434, sign: true }); + data.append(FP8x23 { mag: 9570993, sign: false }); + data.append(FP8x23 { mag: 1301459, sign: false }); + data.append(FP8x23 { mag: 8016460, sign: true }); + data.append(FP8x23 { mag: 5545983, sign: false }); + data.append(FP8x23 { mag: 9974566, sign: false }); + data.append(FP8x23 { mag: 3765257, sign: true }); + data.append(FP8x23 { mag: 10580338, sign: false }); + data.append(FP8x23 { mag: 4072127, sign: true }); + data.append(FP8x23 { mag: 11406249, sign: true }); + data.append(FP8x23 { mag: 1267835, sign: false }); + data.append(FP8x23 { mag: 1455441, sign: true }); + data.append(FP8x23 { mag: 647138, sign: true }); + data.append(FP8x23 { mag: 7702541, sign: true }); + data.append(FP8x23 { mag: 2456257, sign: true }); + data.append(FP8x23 { mag: 3796222, sign: true }); + data.append(FP8x23 { mag: 7306505, sign: false }); + data.append(FP8x23 { mag: 4978121, sign: true }); + data.append(FP8x23 { mag: 2468020, sign: true }); + data.append(FP8x23 { mag: 7824061, sign: true }); + data.append(FP8x23 { mag: 17727482, sign: true }); + data.append(FP8x23 { mag: 7567520, sign: false }); + data.append(FP8x23 { mag: 15121815, sign: true }); + data.append(FP8x23 { mag: 17192194, sign: false }); + data.append(FP8x23 { mag: 4838400, sign: false }); + data.append(FP8x23 { mag: 7102806, sign: true }); + data.append(FP8x23 { mag: 13506918, sign: false }); + data.append(FP8x23 { mag: 9006810, sign: false }); + data.append(FP8x23 { mag: 11880085, sign: false }); + data.append(FP8x23 { mag: 10626748, sign: true }); + data.append(FP8x23 { mag: 3396410, sign: false }); + data.append(FP8x23 { mag: 19655650, sign: true }); + data.append(FP8x23 { mag: 2999983, sign: false }); + data.append(FP8x23 { mag: 2446665, sign: true }); + data.append(FP8x23 { mag: 8376280, sign: true }); + data.append(FP8x23 { mag: 4775309, sign: true }); + data.append(FP8x23 { mag: 10598686, sign: false }); + data.append(FP8x23 { mag: 4745864, sign: true }); + data.append(FP8x23 { mag: 414428, sign: false }); + data.append(FP8x23 { mag: 2015518, sign: false }); + data.append(FP8x23 { mag: 5253980, sign: false }); + data.append(FP8x23 { mag: 7583038, sign: false }); + data.append(FP8x23 { mag: 899019, sign: false }); + data.append(FP8x23 { mag: 6146756, sign: false }); + data.append(FP8x23 { mag: 2662374, sign: false }); + data.append(FP8x23 { mag: 2902689, sign: false }); + data.append(FP8x23 { mag: 8841467, sign: false }); + data.append(FP8x23 { mag: 3321704, sign: true }); + data.append(FP8x23 { mag: 12138878, sign: false }); + data.append(FP8x23 { mag: 1612645, sign: false }); + data.append(FP8x23 { mag: 1933493, sign: false }); + data.append(FP8x23 { mag: 17910888, sign: true }); + data.append(FP8x23 { mag: 17723454, sign: false }); + data.append(FP8x23 { mag: 7514799, sign: true }); + data.append(FP8x23 { mag: 17173626, sign: false }); + data.append(FP8x23 { mag: 21490536, sign: true }); + data.append(FP8x23 { mag: 6905543, sign: false }); + data.append(FP8x23 { mag: 805526, sign: true }); + data.append(FP8x23 { mag: 302451, sign: false }); + data.append(FP8x23 { mag: 1466887, sign: false }); + data.append(FP8x23 { mag: 3126242, sign: false }); + data.append(FP8x23 { mag: 5233297, sign: true }); + data.append(FP8x23 { mag: 7328616, sign: true }); + data.append(FP8x23 { mag: 883529, sign: true }); + data.append(FP8x23 { mag: 3677998, sign: true }); + data.append(FP8x23 { mag: 3261808, sign: true }); + data.append(FP8x23 { mag: 3425112, sign: true }); + data.append(FP8x23 { mag: 12840248, sign: false }); + data.append(FP8x23 { mag: 764734, sign: true }); + data.append(FP8x23 { mag: 7943693, sign: true }); + data.append(FP8x23 { mag: 4316337, sign: true }); + data.append(FP8x23 { mag: 1437067, sign: false }); + data.append(FP8x23 { mag: 2863806, sign: true }); + data.append(FP8x23 { mag: 11361048, sign: true }); + data.append(FP8x23 { mag: 4986414, sign: true }); + data.append(FP8x23 { mag: 9921546, sign: true }); + data.append(FP8x23 { mag: 12757816, sign: false }); + data.append(FP8x23 { mag: 15568051, sign: true }); + data.append(FP8x23 { mag: 17115114, sign: false }); + data.append(FP8x23 { mag: 1111349, sign: false }); + data.append(FP8x23 { mag: 4315836, sign: true }); + data.append(FP8x23 { mag: 7041772, sign: false }); + data.append(FP8x23 { mag: 11618970, sign: true }); + data.append(FP8x23 { mag: 10746123, sign: false }); + data.append(FP8x23 { mag: 1666196, sign: true }); + data.append(FP8x23 { mag: 5325180, sign: true }); + data.append(FP8x23 { mag: 1658984, sign: true }); + data.append(FP8x23 { mag: 5576354, sign: false }); + data.append(FP8x23 { mag: 5117903, sign: false }); + data.append(FP8x23 { mag: 4655447, sign: false }); + data.append(FP8x23 { mag: 3665281, sign: true }); + data.append(FP8x23 { mag: 1288444, sign: true }); + data.append(FP8x23 { mag: 3863506, sign: true }); + data.append(FP8x23 { mag: 134155, sign: false }); + data.append(FP8x23 { mag: 9695251, sign: false }); + data.append(FP8x23 { mag: 11656149, sign: false }); + data.append(FP8x23 { mag: 2057527, sign: false }); + data.append(FP8x23 { mag: 3055111, sign: false }); + data.append(FP8x23 { mag: 3993322, sign: true }); + data.append(FP8x23 { mag: 2834319, sign: true }); + data.append(FP8x23 { mag: 5417702, sign: false }); + data.append(FP8x23 { mag: 5944049, sign: true }); + data.append(FP8x23 { mag: 1237020, sign: false }); + data.append(FP8x23 { mag: 2002815, sign: false }); + data.append(FP8x23 { mag: 1839059, sign: true }); + data.append(FP8x23 { mag: 957417, sign: true }); + data.append(FP8x23 { mag: 3144637, sign: true }); + data.append(FP8x23 { mag: 12495473, sign: false }); + data.append(FP8x23 { mag: 1419401, sign: false }); + data.append(FP8x23 { mag: 956462, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_4/input_1.cairo b/tests/nodes/layer_normalization_4d_axis_negative_4/input_1.cairo index cefc1df2c..22db4d9ce 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_4/input_1.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_4/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { @@ -11,125 +11,125 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 765036, sign: false }); - data.append(FP8x23 { mag: 1487908, sign: true }); - data.append(FP8x23 { mag: 8979452, sign: true }); - data.append(FP8x23 { mag: 2457758, sign: true }); - data.append(FP8x23 { mag: 6713378, sign: true }); - data.append(FP8x23 { mag: 9826923, sign: true }); - data.append(FP8x23 { mag: 2590671, sign: false }); - data.append(FP8x23 { mag: 3000698, sign: true }); - data.append(FP8x23 { mag: 1027684, sign: true }); - data.append(FP8x23 { mag: 6534988, sign: true }); - data.append(FP8x23 { mag: 8946545, sign: false }); - data.append(FP8x23 { mag: 4391800, sign: true }); - data.append(FP8x23 { mag: 7641860, sign: true }); - data.append(FP8x23 { mag: 11675021, sign: false }); - data.append(FP8x23 { mag: 7466702, sign: false }); - data.append(FP8x23 { mag: 395181, sign: true }); - data.append(FP8x23 { mag: 365436, sign: true }); - data.append(FP8x23 { mag: 15999312, sign: true }); - data.append(FP8x23 { mag: 11565880, sign: false }); - data.append(FP8x23 { mag: 9282480, sign: false }); - data.append(FP8x23 { mag: 3785428, sign: true }); - data.append(FP8x23 { mag: 18869726, sign: true }); - data.append(FP8x23 { mag: 6981482, sign: true }); - data.append(FP8x23 { mag: 7335699, sign: false }); - data.append(FP8x23 { mag: 3393176, sign: true }); - data.append(FP8x23 { mag: 17918872, sign: true }); - data.append(FP8x23 { mag: 4778393, sign: true }); - data.append(FP8x23 { mag: 15076621, sign: true }); - data.append(FP8x23 { mag: 2537182, sign: false }); - data.append(FP8x23 { mag: 13904034, sign: false }); - data.append(FP8x23 { mag: 4360076, sign: true }); - data.append(FP8x23 { mag: 15481889, sign: false }); - data.append(FP8x23 { mag: 2741193, sign: false }); - data.append(FP8x23 { mag: 465479, sign: true }); - data.append(FP8x23 { mag: 2151935, sign: true }); - data.append(FP8x23 { mag: 3630430, sign: true }); - data.append(FP8x23 { mag: 8001601, sign: false }); - data.append(FP8x23 { mag: 10861003, sign: true }); - data.append(FP8x23 { mag: 15152404, sign: false }); - data.append(FP8x23 { mag: 12626251, sign: true }); - data.append(FP8x23 { mag: 4662175, sign: true }); - data.append(FP8x23 { mag: 1467433, sign: false }); - data.append(FP8x23 { mag: 18234838, sign: false }); - data.append(FP8x23 { mag: 15142594, sign: false }); - data.append(FP8x23 { mag: 797950, sign: false }); - data.append(FP8x23 { mag: 6158520, sign: true }); - data.append(FP8x23 { mag: 1464793, sign: false }); - data.append(FP8x23 { mag: 9229589, sign: false }); - data.append(FP8x23 { mag: 2331004, sign: false }); - data.append(FP8x23 { mag: 4402549, sign: true }); - data.append(FP8x23 { mag: 5288030, sign: false }); - data.append(FP8x23 { mag: 8947151, sign: true }); - data.append(FP8x23 { mag: 13011209, sign: false }); - data.append(FP8x23 { mag: 14550682, sign: true }); - data.append(FP8x23 { mag: 19891878, sign: false }); - data.append(FP8x23 { mag: 8668230, sign: false }); - data.append(FP8x23 { mag: 6457287, sign: false }); - data.append(FP8x23 { mag: 2427503, sign: false }); - data.append(FP8x23 { mag: 12205684, sign: false }); - data.append(FP8x23 { mag: 2003377, sign: false }); - data.append(FP8x23 { mag: 11948757, sign: false }); - data.append(FP8x23 { mag: 1542336, sign: true }); - data.append(FP8x23 { mag: 762426, sign: false }); - data.append(FP8x23 { mag: 7311585, sign: true }); - data.append(FP8x23 { mag: 4824334, sign: true }); - data.append(FP8x23 { mag: 5502968, sign: true }); - data.append(FP8x23 { mag: 12092839, sign: true }); - data.append(FP8x23 { mag: 3938484, sign: false }); - data.append(FP8x23 { mag: 13236991, sign: false }); - data.append(FP8x23 { mag: 13323203, sign: false }); - data.append(FP8x23 { mag: 3383393, sign: true }); - data.append(FP8x23 { mag: 2710544, sign: true }); - data.append(FP8x23 { mag: 1101084, sign: true }); - data.append(FP8x23 { mag: 8167031, sign: true }); - data.append(FP8x23 { mag: 10908585, sign: false }); - data.append(FP8x23 { mag: 5727771, sign: true }); - data.append(FP8x23 { mag: 7391430, sign: true }); - data.append(FP8x23 { mag: 9532868, sign: true }); - data.append(FP8x23 { mag: 570993, sign: false }); - data.append(FP8x23 { mag: 1661402, sign: true }); - data.append(FP8x23 { mag: 8927581, sign: false }); - data.append(FP8x23 { mag: 69087, sign: true }); - data.append(FP8x23 { mag: 13202806, sign: true }); - data.append(FP8x23 { mag: 4596499, sign: false }); - data.append(FP8x23 { mag: 6458124, sign: false }); - data.append(FP8x23 { mag: 16955478, sign: true }); - data.append(FP8x23 { mag: 12176098, sign: false }); - data.append(FP8x23 { mag: 9405263, sign: false }); - data.append(FP8x23 { mag: 7171010, sign: true }); - data.append(FP8x23 { mag: 2977961, sign: false }); - data.append(FP8x23 { mag: 5183702, sign: false }); - data.append(FP8x23 { mag: 15341216, sign: false }); - data.append(FP8x23 { mag: 18373916, sign: false }); - data.append(FP8x23 { mag: 3529331, sign: false }); - data.append(FP8x23 { mag: 21097650, sign: false }); - data.append(FP8x23 { mag: 3775469, sign: false }); - data.append(FP8x23 { mag: 6304868, sign: false }); - data.append(FP8x23 { mag: 3531356, sign: false }); - data.append(FP8x23 { mag: 2877400, sign: true }); - data.append(FP8x23 { mag: 12725005, sign: false }); - data.append(FP8x23 { mag: 2672641, sign: true }); - data.append(FP8x23 { mag: 2460268, sign: false }); - data.append(FP8x23 { mag: 9700178, sign: false }); - data.append(FP8x23 { mag: 1683799, sign: true }); - data.append(FP8x23 { mag: 2685739, sign: true }); - data.append(FP8x23 { mag: 2567529, sign: false }); - data.append(FP8x23 { mag: 12283587, sign: false }); - data.append(FP8x23 { mag: 903086, sign: true }); - data.append(FP8x23 { mag: 20664720, sign: true }); - data.append(FP8x23 { mag: 4231587, sign: false }); - data.append(FP8x23 { mag: 3279288, sign: false }); - data.append(FP8x23 { mag: 2866349, sign: true }); - data.append(FP8x23 { mag: 11227992, sign: true }); - data.append(FP8x23 { mag: 13129429, sign: true }); - data.append(FP8x23 { mag: 3240746, sign: false }); - data.append(FP8x23 { mag: 9516856, sign: true }); - data.append(FP8x23 { mag: 6088257, sign: true }); - data.append(FP8x23 { mag: 502779, sign: false }); - data.append(FP8x23 { mag: 4585135, sign: true }); - data.append(FP8x23 { mag: 9007322, sign: false }); + data.append(FP8x23 { mag: 4525518, sign: false }); + data.append(FP8x23 { mag: 5259039, sign: true }); + data.append(FP8x23 { mag: 4902294, sign: true }); + data.append(FP8x23 { mag: 7215282, sign: false }); + data.append(FP8x23 { mag: 6105136, sign: true }); + data.append(FP8x23 { mag: 11225632, sign: false }); + data.append(FP8x23 { mag: 8302024, sign: false }); + data.append(FP8x23 { mag: 16591307, sign: true }); + data.append(FP8x23 { mag: 1674214, sign: true }); + data.append(FP8x23 { mag: 6789284, sign: false }); + data.append(FP8x23 { mag: 4502548, sign: true }); + data.append(FP8x23 { mag: 7462902, sign: true }); + data.append(FP8x23 { mag: 4320235, sign: true }); + data.append(FP8x23 { mag: 3190392, sign: true }); + data.append(FP8x23 { mag: 1740484, sign: false }); + data.append(FP8x23 { mag: 1557919, sign: false }); + data.append(FP8x23 { mag: 1374899, sign: false }); + data.append(FP8x23 { mag: 9363886, sign: true }); + data.append(FP8x23 { mag: 12480922, sign: false }); + data.append(FP8x23 { mag: 20130672, sign: true }); + data.append(FP8x23 { mag: 3971236, sign: true }); + data.append(FP8x23 { mag: 7092766, sign: true }); + data.append(FP8x23 { mag: 4235542, sign: false }); + data.append(FP8x23 { mag: 6999284, sign: true }); + data.append(FP8x23 { mag: 4524231, sign: false }); + data.append(FP8x23 { mag: 1031761, sign: false }); + data.append(FP8x23 { mag: 14527510, sign: true }); + data.append(FP8x23 { mag: 15157414, sign: true }); + data.append(FP8x23 { mag: 13849730, sign: true }); + data.append(FP8x23 { mag: 7325780, sign: true }); + data.append(FP8x23 { mag: 19150614, sign: true }); + data.append(FP8x23 { mag: 3085445, sign: false }); + data.append(FP8x23 { mag: 10552206, sign: true }); + data.append(FP8x23 { mag: 7890319, sign: true }); + data.append(FP8x23 { mag: 1390200, sign: false }); + data.append(FP8x23 { mag: 7338448, sign: false }); + data.append(FP8x23 { mag: 9865018, sign: false }); + data.append(FP8x23 { mag: 5836528, sign: true }); + data.append(FP8x23 { mag: 257489, sign: true }); + data.append(FP8x23 { mag: 3419194, sign: false }); + data.append(FP8x23 { mag: 4815813, sign: true }); + data.append(FP8x23 { mag: 5451730, sign: true }); + data.append(FP8x23 { mag: 5357836, sign: true }); + data.append(FP8x23 { mag: 13437259, sign: true }); + data.append(FP8x23 { mag: 12776456, sign: false }); + data.append(FP8x23 { mag: 1040500, sign: false }); + data.append(FP8x23 { mag: 6347629, sign: false }); + data.append(FP8x23 { mag: 768580, sign: true }); + data.append(FP8x23 { mag: 1856652, sign: false }); + data.append(FP8x23 { mag: 9727590, sign: true }); + data.append(FP8x23 { mag: 1163720, sign: true }); + data.append(FP8x23 { mag: 19893312, sign: false }); + data.append(FP8x23 { mag: 6670710, sign: false }); + data.append(FP8x23 { mag: 12627989, sign: true }); + data.append(FP8x23 { mag: 5925065, sign: true }); + data.append(FP8x23 { mag: 2064145, sign: true }); + data.append(FP8x23 { mag: 2921622, sign: true }); + data.append(FP8x23 { mag: 6036185, sign: false }); + data.append(FP8x23 { mag: 6012981, sign: true }); + data.append(FP8x23 { mag: 8142272, sign: true }); + data.append(FP8x23 { mag: 22916826, sign: false }); + data.append(FP8x23 { mag: 9351772, sign: true }); + data.append(FP8x23 { mag: 16524275, sign: true }); + data.append(FP8x23 { mag: 2438246, sign: false }); + data.append(FP8x23 { mag: 20169540, sign: true }); + data.append(FP8x23 { mag: 134078, sign: true }); + data.append(FP8x23 { mag: 2713766, sign: false }); + data.append(FP8x23 { mag: 16188388, sign: false }); + data.append(FP8x23 { mag: 3589682, sign: true }); + data.append(FP8x23 { mag: 1063762, sign: true }); + data.append(FP8x23 { mag: 7815083, sign: true }); + data.append(FP8x23 { mag: 6348636, sign: false }); + data.append(FP8x23 { mag: 4530695, sign: true }); + data.append(FP8x23 { mag: 7469298, sign: false }); + data.append(FP8x23 { mag: 7325134, sign: true }); + data.append(FP8x23 { mag: 2692019, sign: false }); + data.append(FP8x23 { mag: 874681, sign: true }); + data.append(FP8x23 { mag: 6650540, sign: false }); + data.append(FP8x23 { mag: 10089647, sign: false }); + data.append(FP8x23 { mag: 4923024, sign: true }); + data.append(FP8x23 { mag: 3315151, sign: false }); + data.append(FP8x23 { mag: 1457470, sign: false }); + data.append(FP8x23 { mag: 5470786, sign: false }); + data.append(FP8x23 { mag: 2868822, sign: true }); + data.append(FP8x23 { mag: 4246805, sign: true }); + data.append(FP8x23 { mag: 18505256, sign: true }); + data.append(FP8x23 { mag: 3936190, sign: true }); + data.append(FP8x23 { mag: 8093713, sign: true }); + data.append(FP8x23 { mag: 16349175, sign: false }); + data.append(FP8x23 { mag: 11068122, sign: false }); + data.append(FP8x23 { mag: 3749413, sign: false }); + data.append(FP8x23 { mag: 17441864, sign: true }); + data.append(FP8x23 { mag: 1883478, sign: false }); + data.append(FP8x23 { mag: 9263616, sign: false }); + data.append(FP8x23 { mag: 7243952, sign: true }); + data.append(FP8x23 { mag: 405480, sign: false }); + data.append(FP8x23 { mag: 7575996, sign: false }); + data.append(FP8x23 { mag: 10759260, sign: false }); + data.append(FP8x23 { mag: 2551835, sign: true }); + data.append(FP8x23 { mag: 856625, sign: true }); + data.append(FP8x23 { mag: 7553555, sign: false }); + data.append(FP8x23 { mag: 1352994, sign: false }); + data.append(FP8x23 { mag: 208875, sign: true }); + data.append(FP8x23 { mag: 8348104, sign: true }); + data.append(FP8x23 { mag: 491335, sign: true }); + data.append(FP8x23 { mag: 11149267, sign: true }); + data.append(FP8x23 { mag: 5898778, sign: false }); + data.append(FP8x23 { mag: 4338052, sign: false }); + data.append(FP8x23 { mag: 11249455, sign: true }); + data.append(FP8x23 { mag: 756821, sign: true }); + data.append(FP8x23 { mag: 3970259, sign: false }); + data.append(FP8x23 { mag: 5989580, sign: true }); + data.append(FP8x23 { mag: 11286085, sign: true }); + data.append(FP8x23 { mag: 3635279, sign: false }); + data.append(FP8x23 { mag: 3133278, sign: true }); + data.append(FP8x23 { mag: 20313782, sign: false }); + data.append(FP8x23 { mag: 13736921, sign: true }); + data.append(FP8x23 { mag: 6854841, sign: true }); + data.append(FP8x23 { mag: 14518657, sign: false }); + data.append(FP8x23 { mag: 16244271, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_4/input_2.cairo b/tests/nodes/layer_normalization_4d_axis_negative_4/input_2.cairo index 993d1b2b5..1ab64c787 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_4/input_2.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_4/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { @@ -11,125 +11,125 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1565206, sign: true }); - data.append(FP8x23 { mag: 8440746, sign: false }); - data.append(FP8x23 { mag: 73220, sign: true }); - data.append(FP8x23 { mag: 9789189, sign: false }); - data.append(FP8x23 { mag: 3941934, sign: false }); - data.append(FP8x23 { mag: 870617, sign: false }); - data.append(FP8x23 { mag: 9469178, sign: true }); - data.append(FP8x23 { mag: 2579358, sign: true }); - data.append(FP8x23 { mag: 11437672, sign: true }); - data.append(FP8x23 { mag: 4638952, sign: false }); - data.append(FP8x23 { mag: 6273082, sign: true }); - data.append(FP8x23 { mag: 6222525, sign: true }); - data.append(FP8x23 { mag: 10101133, sign: true }); - data.append(FP8x23 { mag: 5359626, sign: true }); - data.append(FP8x23 { mag: 3085420, sign: false }); - data.append(FP8x23 { mag: 9194004, sign: false }); - data.append(FP8x23 { mag: 6966236, sign: false }); - data.append(FP8x23 { mag: 6880860, sign: true }); - data.append(FP8x23 { mag: 5546158, sign: false }); - data.append(FP8x23 { mag: 6934687, sign: true }); - data.append(FP8x23 { mag: 987627, sign: true }); - data.append(FP8x23 { mag: 4104909, sign: false }); - data.append(FP8x23 { mag: 10332664, sign: true }); - data.append(FP8x23 { mag: 6589758, sign: true }); - data.append(FP8x23 { mag: 13722424, sign: true }); - data.append(FP8x23 { mag: 9462928, sign: true }); - data.append(FP8x23 { mag: 13947351, sign: true }); - data.append(FP8x23 { mag: 5509455, sign: true }); - data.append(FP8x23 { mag: 644274, sign: true }); - data.append(FP8x23 { mag: 2030384, sign: true }); - data.append(FP8x23 { mag: 1089765, sign: true }); - data.append(FP8x23 { mag: 175051, sign: false }); - data.append(FP8x23 { mag: 10990995, sign: false }); - data.append(FP8x23 { mag: 950685, sign: true }); - data.append(FP8x23 { mag: 6512231, sign: false }); - data.append(FP8x23 { mag: 980559, sign: true }); - data.append(FP8x23 { mag: 2639622, sign: true }); - data.append(FP8x23 { mag: 6566764, sign: true }); - data.append(FP8x23 { mag: 5196593, sign: true }); - data.append(FP8x23 { mag: 12299425, sign: true }); - data.append(FP8x23 { mag: 98068, sign: true }); - data.append(FP8x23 { mag: 5477706, sign: false }); - data.append(FP8x23 { mag: 540028, sign: false }); - data.append(FP8x23 { mag: 6323924, sign: false }); - data.append(FP8x23 { mag: 4402990, sign: false }); - data.append(FP8x23 { mag: 4425289, sign: true }); - data.append(FP8x23 { mag: 1864532, sign: true }); - data.append(FP8x23 { mag: 3821369, sign: true }); - data.append(FP8x23 { mag: 4152119, sign: true }); - data.append(FP8x23 { mag: 13493616, sign: false }); - data.append(FP8x23 { mag: 16485032, sign: false }); - data.append(FP8x23 { mag: 47558, sign: true }); - data.append(FP8x23 { mag: 4175409, sign: false }); - data.append(FP8x23 { mag: 1769218, sign: true }); - data.append(FP8x23 { mag: 1835677, sign: true }); - data.append(FP8x23 { mag: 6190130, sign: false }); - data.append(FP8x23 { mag: 9290798, sign: true }); - data.append(FP8x23 { mag: 14518570, sign: false }); - data.append(FP8x23 { mag: 5531764, sign: false }); - data.append(FP8x23 { mag: 3781891, sign: true }); - data.append(FP8x23 { mag: 8213439, sign: true }); - data.append(FP8x23 { mag: 5323399, sign: false }); - data.append(FP8x23 { mag: 15125746, sign: true }); - data.append(FP8x23 { mag: 3776717, sign: false }); - data.append(FP8x23 { mag: 5903805, sign: false }); - data.append(FP8x23 { mag: 735915, sign: true }); - data.append(FP8x23 { mag: 2326781, sign: false }); - data.append(FP8x23 { mag: 10726848, sign: true }); - data.append(FP8x23 { mag: 8423845, sign: false }); - data.append(FP8x23 { mag: 5989648, sign: true }); - data.append(FP8x23 { mag: 9314061, sign: false }); - data.append(FP8x23 { mag: 11670752, sign: false }); - data.append(FP8x23 { mag: 364021, sign: false }); - data.append(FP8x23 { mag: 1428671, sign: true }); - data.append(FP8x23 { mag: 2859786, sign: true }); - data.append(FP8x23 { mag: 367369, sign: false }); - data.append(FP8x23 { mag: 2107786, sign: true }); - data.append(FP8x23 { mag: 5419940, sign: true }); - data.append(FP8x23 { mag: 8748640, sign: false }); - data.append(FP8x23 { mag: 6783550, sign: true }); - data.append(FP8x23 { mag: 1174084, sign: false }); - data.append(FP8x23 { mag: 1244741, sign: false }); - data.append(FP8x23 { mag: 628290, sign: false }); - data.append(FP8x23 { mag: 7245872, sign: false }); - data.append(FP8x23 { mag: 10358153, sign: true }); - data.append(FP8x23 { mag: 11037845, sign: true }); - data.append(FP8x23 { mag: 7181495, sign: false }); - data.append(FP8x23 { mag: 9622438, sign: true }); - data.append(FP8x23 { mag: 433991, sign: true }); - data.append(FP8x23 { mag: 1950004, sign: true }); - data.append(FP8x23 { mag: 172993, sign: false }); - data.append(FP8x23 { mag: 5089314, sign: true }); - data.append(FP8x23 { mag: 2494218, sign: true }); - data.append(FP8x23 { mag: 6786513, sign: true }); - data.append(FP8x23 { mag: 757032, sign: false }); - data.append(FP8x23 { mag: 265511, sign: false }); - data.append(FP8x23 { mag: 3655001, sign: true }); - data.append(FP8x23 { mag: 1933308, sign: false }); - data.append(FP8x23 { mag: 13213099, sign: true }); - data.append(FP8x23 { mag: 4142122, sign: false }); - data.append(FP8x23 { mag: 1604209, sign: false }); - data.append(FP8x23 { mag: 11013449, sign: false }); - data.append(FP8x23 { mag: 9016796, sign: true }); - data.append(FP8x23 { mag: 12822414, sign: true }); - data.append(FP8x23 { mag: 5674089, sign: true }); - data.append(FP8x23 { mag: 7284811, sign: false }); - data.append(FP8x23 { mag: 5380566, sign: false }); - data.append(FP8x23 { mag: 1200376, sign: true }); - data.append(FP8x23 { mag: 4449674, sign: false }); - data.append(FP8x23 { mag: 2509265, sign: true }); - data.append(FP8x23 { mag: 11423904, sign: false }); - data.append(FP8x23 { mag: 182801, sign: true }); - data.append(FP8x23 { mag: 61327, sign: true }); - data.append(FP8x23 { mag: 20514282, sign: false }); - data.append(FP8x23 { mag: 2488749, sign: true }); - data.append(FP8x23 { mag: 4664432, sign: false }); - data.append(FP8x23 { mag: 12670565, sign: false }); - data.append(FP8x23 { mag: 4800221, sign: true }); - data.append(FP8x23 { mag: 5916248, sign: false }); - data.append(FP8x23 { mag: 2870212, sign: false }); + data.append(FP8x23 { mag: 9356669, sign: false }); + data.append(FP8x23 { mag: 4321566, sign: false }); + data.append(FP8x23 { mag: 12889196, sign: false }); + data.append(FP8x23 { mag: 12649253, sign: true }); + data.append(FP8x23 { mag: 9137760, sign: true }); + data.append(FP8x23 { mag: 655513, sign: false }); + data.append(FP8x23 { mag: 1740834, sign: true }); + data.append(FP8x23 { mag: 21648278, sign: true }); + data.append(FP8x23 { mag: 664188, sign: true }); + data.append(FP8x23 { mag: 10367219, sign: false }); + data.append(FP8x23 { mag: 477453, sign: true }); + data.append(FP8x23 { mag: 10536956, sign: false }); + data.append(FP8x23 { mag: 9226832, sign: false }); + data.append(FP8x23 { mag: 10996161, sign: true }); + data.append(FP8x23 { mag: 5104221, sign: true }); + data.append(FP8x23 { mag: 9511266, sign: true }); + data.append(FP8x23 { mag: 974460, sign: false }); + data.append(FP8x23 { mag: 4847155, sign: false }); + data.append(FP8x23 { mag: 8103556, sign: false }); + data.append(FP8x23 { mag: 3244957, sign: true }); + data.append(FP8x23 { mag: 2802236, sign: false }); + data.append(FP8x23 { mag: 1587211, sign: true }); + data.append(FP8x23 { mag: 2695125, sign: false }); + data.append(FP8x23 { mag: 2733983, sign: false }); + data.append(FP8x23 { mag: 9818284, sign: false }); + data.append(FP8x23 { mag: 13530923, sign: true }); + data.append(FP8x23 { mag: 2639953, sign: true }); + data.append(FP8x23 { mag: 2824861, sign: true }); + data.append(FP8x23 { mag: 321756, sign: true }); + data.append(FP8x23 { mag: 9810377, sign: false }); + data.append(FP8x23 { mag: 19373754, sign: true }); + data.append(FP8x23 { mag: 6743712, sign: true }); + data.append(FP8x23 { mag: 15551278, sign: true }); + data.append(FP8x23 { mag: 1501830, sign: false }); + data.append(FP8x23 { mag: 5746712, sign: false }); + data.append(FP8x23 { mag: 2844757, sign: false }); + data.append(FP8x23 { mag: 1073141, sign: true }); + data.append(FP8x23 { mag: 129722, sign: true }); + data.append(FP8x23 { mag: 1379474, sign: true }); + data.append(FP8x23 { mag: 6218418, sign: true }); + data.append(FP8x23 { mag: 4615243, sign: false }); + data.append(FP8x23 { mag: 9323116, sign: false }); + data.append(FP8x23 { mag: 15992441, sign: false }); + data.append(FP8x23 { mag: 14940432, sign: false }); + data.append(FP8x23 { mag: 938580, sign: true }); + data.append(FP8x23 { mag: 5536288, sign: true }); + data.append(FP8x23 { mag: 10426515, sign: false }); + data.append(FP8x23 { mag: 9866679, sign: false }); + data.append(FP8x23 { mag: 12881712, sign: true }); + data.append(FP8x23 { mag: 1205361, sign: false }); + data.append(FP8x23 { mag: 2116248, sign: true }); + data.append(FP8x23 { mag: 2551278, sign: true }); + data.append(FP8x23 { mag: 12211160, sign: true }); + data.append(FP8x23 { mag: 12214886, sign: true }); + data.append(FP8x23 { mag: 1060373, sign: false }); + data.append(FP8x23 { mag: 1544064, sign: true }); + data.append(FP8x23 { mag: 9528255, sign: true }); + data.append(FP8x23 { mag: 1485134, sign: true }); + data.append(FP8x23 { mag: 2533885, sign: false }); + data.append(FP8x23 { mag: 11694236, sign: true }); + data.append(FP8x23 { mag: 8034937, sign: false }); + data.append(FP8x23 { mag: 5450222, sign: true }); + data.append(FP8x23 { mag: 9130253, sign: false }); + data.append(FP8x23 { mag: 1643301, sign: false }); + data.append(FP8x23 { mag: 330497, sign: true }); + data.append(FP8x23 { mag: 18730094, sign: true }); + data.append(FP8x23 { mag: 9596369, sign: true }); + data.append(FP8x23 { mag: 1349540, sign: false }); + data.append(FP8x23 { mag: 825993, sign: true }); + data.append(FP8x23 { mag: 2628970, sign: true }); + data.append(FP8x23 { mag: 5667817, sign: true }); + data.append(FP8x23 { mag: 18206424, sign: false }); + data.append(FP8x23 { mag: 1710864, sign: true }); + data.append(FP8x23 { mag: 8111602, sign: false }); + data.append(FP8x23 { mag: 8977911, sign: true }); + data.append(FP8x23 { mag: 1211268, sign: true }); + data.append(FP8x23 { mag: 2455632, sign: true }); + data.append(FP8x23 { mag: 1977709, sign: false }); + data.append(FP8x23 { mag: 11296273, sign: true }); + data.append(FP8x23 { mag: 16922314, sign: true }); + data.append(FP8x23 { mag: 9726242, sign: false }); + data.append(FP8x23 { mag: 795335, sign: true }); + data.append(FP8x23 { mag: 566574, sign: false }); + data.append(FP8x23 { mag: 10365729, sign: false }); + data.append(FP8x23 { mag: 8084625, sign: true }); + data.append(FP8x23 { mag: 8689213, sign: false }); + data.append(FP8x23 { mag: 4856601, sign: true }); + data.append(FP8x23 { mag: 11550873, sign: true }); + data.append(FP8x23 { mag: 4699438, sign: false }); + data.append(FP8x23 { mag: 275684, sign: true }); + data.append(FP8x23 { mag: 8704336, sign: true }); + data.append(FP8x23 { mag: 379253, sign: false }); + data.append(FP8x23 { mag: 4344884, sign: true }); + data.append(FP8x23 { mag: 22511138, sign: true }); + data.append(FP8x23 { mag: 9166379, sign: false }); + data.append(FP8x23 { mag: 2883054, sign: true }); + data.append(FP8x23 { mag: 5212371, sign: true }); + data.append(FP8x23 { mag: 11557156, sign: false }); + data.append(FP8x23 { mag: 1653742, sign: true }); + data.append(FP8x23 { mag: 17620446, sign: true }); + data.append(FP8x23 { mag: 2869877, sign: true }); + data.append(FP8x23 { mag: 12529882, sign: true }); + data.append(FP8x23 { mag: 6358051, sign: false }); + data.append(FP8x23 { mag: 3299874, sign: false }); + data.append(FP8x23 { mag: 2066510, sign: false }); + data.append(FP8x23 { mag: 6576978, sign: false }); + data.append(FP8x23 { mag: 5426550, sign: false }); + data.append(FP8x23 { mag: 14043765, sign: true }); + data.append(FP8x23 { mag: 101030, sign: false }); + data.append(FP8x23 { mag: 2547235, sign: true }); + data.append(FP8x23 { mag: 10267325, sign: false }); + data.append(FP8x23 { mag: 5464667, sign: true }); + data.append(FP8x23 { mag: 3669542, sign: false }); + data.append(FP8x23 { mag: 9605139, sign: false }); + data.append(FP8x23 { mag: 8012144, sign: false }); + data.append(FP8x23 { mag: 3023674, sign: false }); + data.append(FP8x23 { mag: 12049591, sign: true }); + data.append(FP8x23 { mag: 13005965, sign: false }); + data.append(FP8x23 { mag: 5010748, sign: true }); + data.append(FP8x23 { mag: 4764491, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_4d_axis_negative_4/output_0.cairo b/tests/nodes/layer_normalization_4d_axis_negative_4/output_0.cairo index 915c0e6b9..a6205c695 100644 --- a/tests/nodes/layer_normalization_4d_axis_negative_4/output_0.cairo +++ b/tests/nodes/layer_normalization_4d_axis_negative_4/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 2424743, sign: true }); - data.append(FP8x23 { mag: 6230880, sign: false }); - data.append(FP8x23 { mag: 1347738, sign: true }); - data.append(FP8x23 { mag: 11835814, sign: false }); - data.append(FP8x23 { mag: 8560172, sign: true }); - data.append(FP8x23 { mag: 18353888, sign: true }); - data.append(FP8x23 { mag: 9644270, sign: true }); - data.append(FP8x23 { mag: 1531681, sign: true }); - data.append(FP8x23 { mag: 12454719, sign: true }); - data.append(FP8x23 { mag: 9308055, sign: false }); - data.append(FP8x23 { mag: 11949580, sign: true }); - data.append(FP8x23 { mag: 4039623, sign: true }); - data.append(FP8x23 { mag: 31716300, sign: true }); - data.append(FP8x23 { mag: 15707956, sign: true }); - data.append(FP8x23 { mag: 8486900, sign: false }); - data.append(FP8x23 { mag: 9430574, sign: false }); - data.append(FP8x23 { mag: 6804483, sign: false }); - data.append(FP8x23 { mag: 2207451, sign: true }); - data.append(FP8x23 { mag: 13474301, sign: false }); - data.append(FP8x23 { mag: 16478194, sign: true }); - data.append(FP8x23 { mag: 150738, sign: false }); - data.append(FP8x23 { mag: 13342368, sign: true }); - data.append(FP8x23 { mag: 10913451, sign: true }); - data.append(FP8x23 { mag: 7620089, sign: false }); - data.append(FP8x23 { mag: 16835534, sign: true }); - data.append(FP8x23 { mag: 15912140, sign: false }); - data.append(FP8x23 { mag: 15652847, sign: true }); - data.append(FP8x23 { mag: 6149347, sign: true }); - data.append(FP8x23 { mag: 1506302, sign: true }); - data.append(FP8x23 { mag: 1084043, sign: true }); - data.append(FP8x23 { mag: 4556684, sign: false }); - data.append(FP8x23 { mag: 2254544, sign: false }); - data.append(FP8x23 { mag: 11823707, sign: false }); - data.append(FP8x23 { mag: 1215629, sign: true }); - data.append(FP8x23 { mag: 4100511, sign: false }); - data.append(FP8x23 { mag: 3945443, sign: false }); - data.append(FP8x23 { mag: 13197695, sign: true }); - data.append(FP8x23 { mag: 2657681, sign: true }); - data.append(FP8x23 { mag: 16811968, sign: true }); - data.append(FP8x23 { mag: 16634120, sign: true }); - data.append(FP8x23 { mag: 2191530, sign: false }); - data.append(FP8x23 { mag: 6326118, sign: false }); - data.append(FP8x23 { mag: 18484424, sign: false }); - data.append(FP8x23 { mag: 3436880, sign: true }); - data.append(FP8x23 { mag: 5361301, sign: false }); - data.append(FP8x23 { mag: 3829618, sign: false }); - data.append(FP8x23 { mag: 1176182, sign: true }); - data.append(FP8x23 { mag: 4586050, sign: true }); - data.append(FP8x23 { mag: 6607650, sign: true }); - data.append(FP8x23 { mag: 9475522, sign: false }); - data.append(FP8x23 { mag: 13766757, sign: false }); - data.append(FP8x23 { mag: 762316, sign: false }); - data.append(FP8x23 { mag: 1284229, sign: false }); - data.append(FP8x23 { mag: 129063, sign: false }); - data.append(FP8x23 { mag: 22939360, sign: false }); - data.append(FP8x23 { mag: 12797228, sign: false }); - data.append(FP8x23 { mag: 8114181, sign: true }); - data.append(FP8x23 { mag: 11090552, sign: false }); - data.append(FP8x23 { mag: 7201685, sign: false }); - data.append(FP8x23 { mag: 3322697, sign: true }); - data.append(FP8x23 { mag: 17097544, sign: true }); - data.append(FP8x23 { mag: 6065884, sign: false }); - data.append(FP8x23 { mag: 13238165, sign: true }); - data.append(FP8x23 { mag: 3890634, sign: false }); - data.append(FP8x23 { mag: 11693645, sign: false }); - data.append(FP8x23 { mag: 3705815, sign: false }); - data.append(FP8x23 { mag: 4143846, sign: true }); - data.append(FP8x23 { mag: 18670984, sign: true }); - data.append(FP8x23 { mag: 10667477, sign: true }); - data.append(FP8x23 { mag: 18529098, sign: true }); - data.append(FP8x23 { mag: 9000333, sign: false }); - data.append(FP8x23 { mag: 11380511, sign: false }); - data.append(FP8x23 { mag: 894273, sign: false }); - data.append(FP8x23 { mag: 16982722, sign: true }); - data.append(FP8x23 { mag: 11570541, sign: true }); - data.append(FP8x23 { mag: 6023858, sign: true }); - data.append(FP8x23 { mag: 6541442, sign: true }); - data.append(FP8x23 { mag: 3458935, sign: true }); - data.append(FP8x23 { mag: 8882136, sign: false }); - data.append(FP8x23 { mag: 4963218, sign: true }); - data.append(FP8x23 { mag: 13530222, sign: false }); - data.append(FP8x23 { mag: 1276796, sign: false }); - data.append(FP8x23 { mag: 34420188, sign: true }); - data.append(FP8x23 { mag: 11609153, sign: false }); - data.append(FP8x23 { mag: 15829801, sign: true }); - data.append(FP8x23 { mag: 29074996, sign: true }); - data.append(FP8x23 { mag: 3762691, sign: false }); - data.append(FP8x23 { mag: 15404224, sign: true }); - data.append(FP8x23 { mag: 9107420, sign: false }); - data.append(FP8x23 { mag: 2895097, sign: true }); - data.append(FP8x23 { mag: 3503790, sign: true }); - data.append(FP8x23 { mag: 21504250, sign: true }); - data.append(FP8x23 { mag: 810151, sign: true }); - data.append(FP8x23 { mag: 12349691, sign: true }); - data.append(FP8x23 { mag: 27176632, sign: true }); - data.append(FP8x23 { mag: 949305, sign: false }); - data.append(FP8x23 { mag: 4704694, sign: true }); - data.append(FP8x23 { mag: 7530050, sign: false }); - data.append(FP8x23 { mag: 12245252, sign: true }); - data.append(FP8x23 { mag: 4252376, sign: false }); - data.append(FP8x23 { mag: 4476849, sign: false }); - data.append(FP8x23 { mag: 11722556, sign: false }); - data.append(FP8x23 { mag: 6701965, sign: false }); - data.append(FP8x23 { mag: 13039167, sign: true }); - data.append(FP8x23 { mag: 5275358, sign: true }); - data.append(FP8x23 { mag: 3438951, sign: false }); - data.append(FP8x23 { mag: 6515470, sign: false }); - data.append(FP8x23 { mag: 461279, sign: true }); - data.append(FP8x23 { mag: 32284742, sign: true }); - data.append(FP8x23 { mag: 1878248, sign: false }); - data.append(FP8x23 { mag: 12415928, sign: false }); - data.append(FP8x23 { mag: 866962, sign: false }); - data.append(FP8x23 { mag: 5170767, sign: false }); - data.append(FP8x23 { mag: 24572292, sign: false }); - data.append(FP8x23 { mag: 1832665, sign: true }); - data.append(FP8x23 { mag: 15074726, sign: true }); - data.append(FP8x23 { mag: 21567628, sign: false }); - data.append(FP8x23 { mag: 4603829, sign: true }); - data.append(FP8x23 { mag: 12786682, sign: false }); - data.append(FP8x23 { mag: 1155521, sign: true }); + data.append(FP8x23 { mag: 1635828, sign: false }); + data.append(FP8x23 { mag: 15119412, sign: false }); + data.append(FP8x23 { mag: 13272471, sign: false }); + data.append(FP8x23 { mag: 15356888, sign: true }); + data.append(FP8x23 { mag: 17971400, sign: true }); + data.append(FP8x23 { mag: 12310023, sign: false }); + data.append(FP8x23 { mag: 997595, sign: false }); + data.append(FP8x23 { mag: 1448470, sign: true }); + data.append(FP8x23 { mag: 71442, sign: false }); + data.append(FP8x23 { mag: 5210973, sign: false }); + data.append(FP8x23 { mag: 3348107, sign: false }); + data.append(FP8x23 { mag: 1638514, sign: false }); + data.append(FP8x23 { mag: 8443650, sign: false }); + data.append(FP8x23 { mag: 7939849, sign: true }); + data.append(FP8x23 { mag: 3885465, sign: true }); + data.append(FP8x23 { mag: 7576798, sign: true }); + data.append(FP8x23 { mag: 371979, sign: false }); + data.append(FP8x23 { mag: 7473513, sign: true }); + data.append(FP8x23 { mag: 2166138, sign: false }); + data.append(FP8x23 { mag: 24382900, sign: false }); + data.append(FP8x23 { mag: 2098648, sign: false }); + data.append(FP8x23 { mag: 482226, sign: true }); + data.append(FP8x23 { mag: 2453855, sign: false }); + data.append(FP8x23 { mag: 9170470, sign: false }); + data.append(FP8x23 { mag: 8559846, sign: false }); + data.append(FP8x23 { mag: 13986947, sign: true }); + data.append(FP8x23 { mag: 15939734, sign: true }); + data.append(FP8x23 { mag: 6064824, sign: false }); + data.append(FP8x23 { mag: 3550536, sign: false }); + data.append(FP8x23 { mag: 16655951, sign: false }); + data.append(FP8x23 { mag: 21709898, sign: false }); + data.append(FP8x23 { mag: 3820554, sign: true }); + data.append(FP8x23 { mag: 3724540, sign: false }); + data.append(FP8x23 { mag: 15258496, sign: true }); + data.append(FP8x23 { mag: 6599915, sign: false }); + data.append(FP8x23 { mag: 3365518, sign: true }); + data.append(FP8x23 { mag: 15436782, sign: false }); + data.append(FP8x23 { mag: 6686343, sign: true }); + data.append(FP8x23 { mag: 1759188, sign: true }); + data.append(FP8x23 { mag: 10585142, sign: true }); + data.append(FP8x23 { mag: 2508703, sign: false }); + data.append(FP8x23 { mag: 22303900, sign: false }); + data.append(FP8x23 { mag: 13908498, sign: false }); + data.append(FP8x23 { mag: 18662316, sign: false }); + data.append(FP8x23 { mag: 13740165, sign: true }); + data.append(FP8x23 { mag: 6120731, sign: true }); + data.append(FP8x23 { mag: 18792740, sign: false }); + data.append(FP8x23 { mag: 10295619, sign: false }); + data.append(FP8x23 { mag: 12746493, sign: true }); + data.append(FP8x23 { mag: 1407339, sign: true }); + data.append(FP8x23 { mag: 2889584, sign: true }); + data.append(FP8x23 { mag: 16333434, sign: false }); + data.append(FP8x23 { mag: 11330107, sign: true }); + data.append(FP8x23 { mag: 21985066, sign: true }); + data.append(FP8x23 { mag: 999620, sign: true }); + data.append(FP8x23 { mag: 2322364, sign: true }); + data.append(FP8x23 { mag: 12751276, sign: true }); + data.append(FP8x23 { mag: 3802842, sign: true }); + data.append(FP8x23 { mag: 6523586, sign: true }); + data.append(FP8x23 { mag: 13480076, sign: true }); + data.append(FP8x23 { mag: 13960264, sign: false }); + data.append(FP8x23 { mag: 14821762, sign: false }); + data.append(FP8x23 { mag: 27043336, sign: true }); + data.append(FP8x23 { mag: 542922, sign: true }); + data.append(FP8x23 { mag: 43128104, sign: true }); + data.append(FP8x23 { mag: 18380770, sign: true }); + data.append(FP8x23 { mag: 7244983, sign: true }); + data.append(FP8x23 { mag: 113904, sign: false }); + data.append(FP8x23 { mag: 1038282, sign: true }); + data.append(FP8x23 { mag: 2843327, sign: true }); + data.append(FP8x23 { mag: 8828154, sign: true }); + data.append(FP8x23 { mag: 14284936, sign: false }); + data.append(FP8x23 { mag: 2248393, sign: false }); + data.append(FP8x23 { mag: 7470248, sign: false }); + data.append(FP8x23 { mag: 5846187, sign: true }); + data.append(FP8x23 { mag: 2225206, sign: true }); + data.append(FP8x23 { mag: 2108722, sign: true }); + data.append(FP8x23 { mag: 12565851, sign: false }); + data.append(FP8x23 { mag: 12016079, sign: true }); + data.append(FP8x23 { mag: 12249987, sign: true }); + data.append(FP8x23 { mag: 8050175, sign: false }); + data.append(FP8x23 { mag: 506957, sign: true }); + data.append(FP8x23 { mag: 1227756, sign: true }); + data.append(FP8x23 { mag: 14287121, sign: false }); + data.append(FP8x23 { mag: 5589607, sign: true }); + data.append(FP8x23 { mag: 30727100, sign: false }); + data.append(FP8x23 { mag: 11083630, sign: true }); + data.append(FP8x23 { mag: 3675577, sign: false }); + data.append(FP8x23 { mag: 39273680, sign: false }); + data.append(FP8x23 { mag: 1473504, sign: false }); + data.append(FP8x23 { mag: 10599726, sign: true }); + data.append(FP8x23 { mag: 15024036, sign: true }); + data.append(FP8x23 { mag: 6978806, sign: true }); + data.append(FP8x23 { mag: 10134630, sign: true }); + data.append(FP8x23 { mag: 10481579, sign: false }); + data.append(FP8x23 { mag: 3138070, sign: true }); + data.append(FP8x23 { mag: 6581176, sign: true }); + data.append(FP8x23 { mag: 19131162, sign: false }); + data.append(FP8x23 { mag: 3307076, sign: true }); + data.append(FP8x23 { mag: 18127018, sign: true }); + data.append(FP8x23 { mag: 6087514, sign: true }); + data.append(FP8x23 { mag: 12713040, sign: true }); + data.append(FP8x23 { mag: 6452089, sign: false }); + data.append(FP8x23 { mag: 2977957, sign: false }); + data.append(FP8x23 { mag: 1473198, sign: false }); + data.append(FP8x23 { mag: 9559340, sign: true }); + data.append(FP8x23 { mag: 7041180, sign: false }); + data.append(FP8x23 { mag: 12327230, sign: true }); + data.append(FP8x23 { mag: 5344226, sign: false }); + data.append(FP8x23 { mag: 2301738, sign: true }); + data.append(FP8x23 { mag: 12985185, sign: false }); + data.append(FP8x23 { mag: 1244468, sign: true }); + data.append(FP8x23 { mag: 1712494, sign: false }); + data.append(FP8x23 { mag: 10575880, sign: false }); + data.append(FP8x23 { mag: 8647239, sign: false }); + data.append(FP8x23 { mag: 1095909, sign: false }); + data.append(FP8x23 { mag: 7072431, sign: true }); + data.append(FP8x23 { mag: 2381521, sign: false }); + data.append(FP8x23 { mag: 2169412, sign: true }); + data.append(FP8x23 { mag: 3224816, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_default_axis.cairo b/tests/nodes/layer_normalization_default_axis.cairo index 1d1e1db90..dd792e731 100644 --- a/tests/nodes/layer_normalization_default_axis.cairo +++ b/tests/nodes/layer_normalization_default_axis.cairo @@ -4,12 +4,12 @@ mod input_2; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{IntegerTrait, i32, FixedTrait}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -19,10 +19,7 @@ fn test_layer_normalization_default_axis() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, Option::Some(@input_2), Option::None, Option::None, Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::None,Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_default_axis/input_0.cairo b/tests/nodes/layer_normalization_default_axis/input_0.cairo index d8da4e64e..0d0ec9843 100644 --- a/tests/nodes/layer_normalization_default_axis/input_0.cairo +++ b/tests/nodes/layer_normalization_default_axis/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -11,125 +11,125 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 162162, sign: true }); - data.append(FP16x16 { mag: 29273, sign: true }); - data.append(FP16x16 { mag: 155457, sign: true }); - data.append(FP16x16 { mag: 50795, sign: false }); - data.append(FP16x16 { mag: 17629, sign: true }); - data.append(FP16x16 { mag: 26642, sign: false }); - data.append(FP16x16 { mag: 29753, sign: true }); - data.append(FP16x16 { mag: 76017, sign: true }); - data.append(FP16x16 { mag: 58145, sign: true }); - data.append(FP16x16 { mag: 81397, sign: false }); - data.append(FP16x16 { mag: 56926, sign: true }); - data.append(FP16x16 { mag: 92380, sign: true }); - data.append(FP16x16 { mag: 5200, sign: true }); - data.append(FP16x16 { mag: 24905, sign: false }); - data.append(FP16x16 { mag: 14892, sign: true }); - data.append(FP16x16 { mag: 37085, sign: false }); - data.append(FP16x16 { mag: 120688, sign: false }); - data.append(FP16x16 { mag: 24518, sign: true }); - data.append(FP16x16 { mag: 56437, sign: true }); - data.append(FP16x16 { mag: 68199, sign: true }); - data.append(FP16x16 { mag: 49008, sign: true }); - data.append(FP16x16 { mag: 6080, sign: false }); - data.append(FP16x16 { mag: 72783, sign: true }); - data.append(FP16x16 { mag: 100706, sign: true }); - data.append(FP16x16 { mag: 86624, sign: false }); - data.append(FP16x16 { mag: 72942, sign: false }); - data.append(FP16x16 { mag: 416, sign: false }); - data.append(FP16x16 { mag: 60084, sign: false }); - data.append(FP16x16 { mag: 13763, sign: false }); - data.append(FP16x16 { mag: 29895, sign: false }); - data.append(FP16x16 { mag: 70876, sign: false }); - data.append(FP16x16 { mag: 29792, sign: false }); - data.append(FP16x16 { mag: 50085, sign: false }); - data.append(FP16x16 { mag: 14512, sign: false }); - data.append(FP16x16 { mag: 69956, sign: true }); - data.append(FP16x16 { mag: 23179, sign: true }); - data.append(FP16x16 { mag: 34593, sign: false }); - data.append(FP16x16 { mag: 94827, sign: true }); - data.append(FP16x16 { mag: 36976, sign: true }); - data.append(FP16x16 { mag: 66090, sign: true }); - data.append(FP16x16 { mag: 46310, sign: true }); - data.append(FP16x16 { mag: 1270, sign: false }); - data.append(FP16x16 { mag: 10179, sign: false }); - data.append(FP16x16 { mag: 2421, sign: false }); - data.append(FP16x16 { mag: 41063, sign: false }); - data.append(FP16x16 { mag: 10014, sign: true }); - data.append(FP16x16 { mag: 23971, sign: true }); - data.append(FP16x16 { mag: 38734, sign: false }); - data.append(FP16x16 { mag: 252987, sign: false }); - data.append(FP16x16 { mag: 15276, sign: false }); - data.append(FP16x16 { mag: 94190, sign: true }); - data.append(FP16x16 { mag: 152835, sign: true }); - data.append(FP16x16 { mag: 120387, sign: true }); - data.append(FP16x16 { mag: 11624, sign: true }); - data.append(FP16x16 { mag: 83095, sign: false }); - data.append(FP16x16 { mag: 120401, sign: true }); - data.append(FP16x16 { mag: 32613, sign: false }); - data.append(FP16x16 { mag: 125957, sign: true }); - data.append(FP16x16 { mag: 44002, sign: true }); - data.append(FP16x16 { mag: 98578, sign: false }); - data.append(FP16x16 { mag: 40668, sign: true }); - data.append(FP16x16 { mag: 15027, sign: true }); - data.append(FP16x16 { mag: 80889, sign: true }); - data.append(FP16x16 { mag: 46530, sign: true }); - data.append(FP16x16 { mag: 14759, sign: false }); - data.append(FP16x16 { mag: 67967, sign: false }); - data.append(FP16x16 { mag: 83003, sign: false }); - data.append(FP16x16 { mag: 59413, sign: true }); - data.append(FP16x16 { mag: 24514, sign: false }); - data.append(FP16x16 { mag: 33820, sign: true }); - data.append(FP16x16 { mag: 71782, sign: false }); - data.append(FP16x16 { mag: 102396, sign: false }); - data.append(FP16x16 { mag: 118, sign: true }); - data.append(FP16x16 { mag: 1158, sign: true }); - data.append(FP16x16 { mag: 60291, sign: true }); - data.append(FP16x16 { mag: 41730, sign: true }); - data.append(FP16x16 { mag: 17552, sign: true }); - data.append(FP16x16 { mag: 27965, sign: true }); - data.append(FP16x16 { mag: 12189, sign: true }); - data.append(FP16x16 { mag: 1007, sign: true }); - data.append(FP16x16 { mag: 75390, sign: false }); - data.append(FP16x16 { mag: 29536, sign: true }); - data.append(FP16x16 { mag: 39461, sign: true }); - data.append(FP16x16 { mag: 36937, sign: false }); - data.append(FP16x16 { mag: 74171, sign: false }); - data.append(FP16x16 { mag: 18374, sign: false }); - data.append(FP16x16 { mag: 25540, sign: false }); - data.append(FP16x16 { mag: 72170, sign: true }); - data.append(FP16x16 { mag: 13960, sign: true }); - data.append(FP16x16 { mag: 25485, sign: false }); - data.append(FP16x16 { mag: 36529, sign: true }); - data.append(FP16x16 { mag: 157843, sign: false }); - data.append(FP16x16 { mag: 18027, sign: false }); - data.append(FP16x16 { mag: 49602, sign: false }); - data.append(FP16x16 { mag: 78001, sign: false }); - data.append(FP16x16 { mag: 12776, sign: false }); - data.append(FP16x16 { mag: 2507, sign: false }); - data.append(FP16x16 { mag: 85706, sign: false }); - data.append(FP16x16 { mag: 76268, sign: true }); - data.append(FP16x16 { mag: 20694, sign: false }); - data.append(FP16x16 { mag: 111079, sign: true }); - data.append(FP16x16 { mag: 118166, sign: false }); - data.append(FP16x16 { mag: 84064, sign: false }); - data.append(FP16x16 { mag: 146152, sign: false }); - data.append(FP16x16 { mag: 99879, sign: false }); - data.append(FP16x16 { mag: 101373, sign: false }); - data.append(FP16x16 { mag: 138415, sign: false }); - data.append(FP16x16 { mag: 34200, sign: true }); - data.append(FP16x16 { mag: 61986, sign: true }); - data.append(FP16x16 { mag: 99859, sign: false }); - data.append(FP16x16 { mag: 35109, sign: true }); - data.append(FP16x16 { mag: 28029, sign: false }); - data.append(FP16x16 { mag: 56997, sign: false }); - data.append(FP16x16 { mag: 19277, sign: false }); - data.append(FP16x16 { mag: 38195, sign: true }); - data.append(FP16x16 { mag: 56295, sign: true }); - data.append(FP16x16 { mag: 25408, sign: false }); - data.append(FP16x16 { mag: 72993, sign: true }); - data.append(FP16x16 { mag: 28011, sign: false }); - data.append(FP16x16 { mag: 63069, sign: true }); + data.append(FP16x16 { mag: 64602, sign: false }); + data.append(FP16x16 { mag: 26167, sign: false }); + data.append(FP16x16 { mag: 88402, sign: true }); + data.append(FP16x16 { mag: 30731, sign: false }); + data.append(FP16x16 { mag: 20146, sign: false }); + data.append(FP16x16 { mag: 26491, sign: false }); + data.append(FP16x16 { mag: 57414, sign: false }); + data.append(FP16x16 { mag: 19431, sign: true }); + data.append(FP16x16 { mag: 8560, sign: false }); + data.append(FP16x16 { mag: 28768, sign: true }); + data.append(FP16x16 { mag: 117108, sign: true }); + data.append(FP16x16 { mag: 161076, sign: true }); + data.append(FP16x16 { mag: 60002, sign: false }); + data.append(FP16x16 { mag: 25748, sign: false }); + data.append(FP16x16 { mag: 45775, sign: true }); + data.append(FP16x16 { mag: 8379, sign: true }); + data.append(FP16x16 { mag: 4860, sign: true }); + data.append(FP16x16 { mag: 19966, sign: false }); + data.append(FP16x16 { mag: 123117, sign: false }); + data.append(FP16x16 { mag: 39789, sign: false }); + data.append(FP16x16 { mag: 156001, sign: true }); + data.append(FP16x16 { mag: 26549, sign: false }); + data.append(FP16x16 { mag: 191014, sign: false }); + data.append(FP16x16 { mag: 62627, sign: true }); + data.append(FP16x16 { mag: 59690, sign: true }); + data.append(FP16x16 { mag: 68003, sign: true }); + data.append(FP16x16 { mag: 133782, sign: true }); + data.append(FP16x16 { mag: 20370, sign: false }); + data.append(FP16x16 { mag: 78702, sign: false }); + data.append(FP16x16 { mag: 2397, sign: false }); + data.append(FP16x16 { mag: 37450, sign: false }); + data.append(FP16x16 { mag: 64629, sign: false }); + data.append(FP16x16 { mag: 39733, sign: false }); + data.append(FP16x16 { mag: 104565, sign: false }); + data.append(FP16x16 { mag: 56385, sign: false }); + data.append(FP16x16 { mag: 11447, sign: false }); + data.append(FP16x16 { mag: 135879, sign: false }); + data.append(FP16x16 { mag: 67891, sign: true }); + data.append(FP16x16 { mag: 121976, sign: true }); + data.append(FP16x16 { mag: 5320, sign: false }); + data.append(FP16x16 { mag: 53119, sign: true }); + data.append(FP16x16 { mag: 84, sign: false }); + data.append(FP16x16 { mag: 21896, sign: false }); + data.append(FP16x16 { mag: 34587, sign: true }); + data.append(FP16x16 { mag: 83500, sign: true }); + data.append(FP16x16 { mag: 7325, sign: false }); + data.append(FP16x16 { mag: 85656, sign: true }); + data.append(FP16x16 { mag: 87252, sign: false }); + data.append(FP16x16 { mag: 7076, sign: true }); + data.append(FP16x16 { mag: 23654, sign: true }); + data.append(FP16x16 { mag: 67732, sign: false }); + data.append(FP16x16 { mag: 37838, sign: true }); + data.append(FP16x16 { mag: 18205, sign: true }); + data.append(FP16x16 { mag: 39334, sign: true }); + data.append(FP16x16 { mag: 2652, sign: true }); + data.append(FP16x16 { mag: 11349, sign: true }); + data.append(FP16x16 { mag: 109949, sign: false }); + data.append(FP16x16 { mag: 16940, sign: true }); + data.append(FP16x16 { mag: 128278, sign: true }); + data.append(FP16x16 { mag: 67936, sign: true }); + data.append(FP16x16 { mag: 14710, sign: false }); + data.append(FP16x16 { mag: 28567, sign: true }); + data.append(FP16x16 { mag: 68311, sign: false }); + data.append(FP16x16 { mag: 55974, sign: false }); + data.append(FP16x16 { mag: 63420, sign: false }); + data.append(FP16x16 { mag: 75349, sign: true }); + data.append(FP16x16 { mag: 3746, sign: true }); + data.append(FP16x16 { mag: 998, sign: false }); + data.append(FP16x16 { mag: 119081, sign: true }); + data.append(FP16x16 { mag: 25450, sign: false }); + data.append(FP16x16 { mag: 81231, sign: false }); + data.append(FP16x16 { mag: 65013, sign: true }); + data.append(FP16x16 { mag: 16931, sign: false }); + data.append(FP16x16 { mag: 14035, sign: true }); + data.append(FP16x16 { mag: 7760, sign: false }); + data.append(FP16x16 { mag: 28307, sign: false }); + data.append(FP16x16 { mag: 4283, sign: false }); + data.append(FP16x16 { mag: 13410, sign: true }); + data.append(FP16x16 { mag: 22979, sign: true }); + data.append(FP16x16 { mag: 17571, sign: true }); + data.append(FP16x16 { mag: 2523, sign: false }); + data.append(FP16x16 { mag: 38005, sign: false }); + data.append(FP16x16 { mag: 86948, sign: false }); + data.append(FP16x16 { mag: 4605, sign: true }); + data.append(FP16x16 { mag: 34628, sign: false }); + data.append(FP16x16 { mag: 11983, sign: false }); + data.append(FP16x16 { mag: 3697, sign: false }); + data.append(FP16x16 { mag: 24864, sign: false }); + data.append(FP16x16 { mag: 21188, sign: true }); + data.append(FP16x16 { mag: 73912, sign: false }); + data.append(FP16x16 { mag: 77630, sign: true }); + data.append(FP16x16 { mag: 45833, sign: true }); + data.append(FP16x16 { mag: 87681, sign: true }); + data.append(FP16x16 { mag: 3396, sign: false }); + data.append(FP16x16 { mag: 3239, sign: false }); + data.append(FP16x16 { mag: 68960, sign: true }); + data.append(FP16x16 { mag: 11032, sign: false }); + data.append(FP16x16 { mag: 51110, sign: false }); + data.append(FP16x16 { mag: 21945, sign: true }); + data.append(FP16x16 { mag: 63090, sign: false }); + data.append(FP16x16 { mag: 5950, sign: true }); + data.append(FP16x16 { mag: 117950, sign: false }); + data.append(FP16x16 { mag: 68215, sign: false }); + data.append(FP16x16 { mag: 62288, sign: true }); + data.append(FP16x16 { mag: 47333, sign: false }); + data.append(FP16x16 { mag: 133116, sign: true }); + data.append(FP16x16 { mag: 63795, sign: false }); + data.append(FP16x16 { mag: 23343, sign: false }); + data.append(FP16x16 { mag: 74308, sign: true }); + data.append(FP16x16 { mag: 54548, sign: true }); + data.append(FP16x16 { mag: 12541, sign: true }); + data.append(FP16x16 { mag: 26795, sign: true }); + data.append(FP16x16 { mag: 2291, sign: false }); + data.append(FP16x16 { mag: 88058, sign: true }); + data.append(FP16x16 { mag: 14460, sign: true }); + data.append(FP16x16 { mag: 173994, sign: false }); + data.append(FP16x16 { mag: 138436, sign: true }); + data.append(FP16x16 { mag: 33664, sign: false }); + data.append(FP16x16 { mag: 53676, sign: true }); + data.append(FP16x16 { mag: 61132, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_default_axis/input_1.cairo b/tests/nodes/layer_normalization_default_axis/input_1.cairo index f180a8bd1..cf82c012d 100644 --- a/tests/nodes/layer_normalization_default_axis/input_1.cairo +++ b/tests/nodes/layer_normalization_default_axis/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -8,10 +8,10 @@ fn input_1() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 8602, sign: true }); - data.append(FP16x16 { mag: 134121, sign: true }); - data.append(FP16x16 { mag: 39230, sign: false }); - data.append(FP16x16 { mag: 17052, sign: true }); - data.append(FP16x16 { mag: 24886, sign: false }); + data.append(FP16x16 { mag: 35508, sign: false }); + data.append(FP16x16 { mag: 113098, sign: false }); + data.append(FP16x16 { mag: 98425, sign: true }); + data.append(FP16x16 { mag: 17510, sign: true }); + data.append(FP16x16 { mag: 105804, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_default_axis/input_2.cairo b/tests/nodes/layer_normalization_default_axis/input_2.cairo index 540f8c89b..14d77c35f 100644 --- a/tests/nodes/layer_normalization_default_axis/input_2.cairo +++ b/tests/nodes/layer_normalization_default_axis/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -8,10 +8,10 @@ fn input_2() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 35619, sign: true }); - data.append(FP16x16 { mag: 31160, sign: false }); - data.append(FP16x16 { mag: 51197, sign: true }); - data.append(FP16x16 { mag: 150071, sign: true }); - data.append(FP16x16 { mag: 57770, sign: false }); + data.append(FP16x16 { mag: 111176, sign: false }); + data.append(FP16x16 { mag: 17239, sign: false }); + data.append(FP16x16 { mag: 61606, sign: false }); + data.append(FP16x16 { mag: 56902, sign: false }); + data.append(FP16x16 { mag: 5890, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_default_axis/output_0.cairo b/tests/nodes/layer_normalization_default_axis/output_0.cairo index 78cc8f3c2..087cecc38 100644 --- a/tests/nodes/layer_normalization_default_axis/output_0.cairo +++ b/tests/nodes/layer_normalization_default_axis/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -11,125 +11,125 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 25327, sign: true }); - data.append(FP16x16 { mag: 22863, sign: true }); - data.append(FP16x16 { mag: 94966, sign: true }); - data.append(FP16x16 { mag: 173370, sign: true }); - data.append(FP16x16 { mag: 71281, sign: false }); - data.append(FP16x16 { mag: 41238, sign: true }); - data.append(FP16x16 { mag: 74203, sign: false }); - data.append(FP16x16 { mag: 95139, sign: true }); - data.append(FP16x16 { mag: 136235, sign: true }); - data.append(FP16x16 { mag: 97567, sign: false }); - data.append(FP16x16 { mag: 29760, sign: true }); - data.append(FP16x16 { mag: 238045, sign: false }); - data.append(FP16x16 { mag: 28606, sign: true }); - data.append(FP16x16 { mag: 172365, sign: true }); - data.append(FP16x16 { mag: 66239, sign: false }); - data.append(FP16x16 { mag: 39976, sign: true }); - data.append(FP16x16 { mag: 197413, sign: true }); - data.append(FP16x16 { mag: 65945, sign: true }); - data.append(FP16x16 { mag: 135863, sign: true }); - data.append(FP16x16 { mag: 32841, sign: false }); - data.append(FP16x16 { mag: 32630, sign: true }); - data.append(FP16x16 { mag: 33602, sign: true }); - data.append(FP16x16 { mag: 78882, sign: true }); - data.append(FP16x16 { mag: 130860, sign: true }); - data.append(FP16x16 { mag: 99996, sign: false }); - data.append(FP16x16 { mag: 47418, sign: true }); - data.append(FP16x16 { mag: 202789, sign: false }); - data.append(FP16x16 { mag: 15824, sign: true }); - data.append(FP16x16 { mag: 136570, sign: true }); - data.append(FP16x16 { mag: 52743, sign: false }); - data.append(FP16x16 { mag: 44830, sign: true }); - data.append(FP16x16 { mag: 1418, sign: false }); - data.append(FP16x16 { mag: 26045, sign: true }); - data.append(FP16x16 { mag: 148467, sign: true }); - data.append(FP16x16 { mag: 11987, sign: false }); - data.append(FP16x16 { mag: 38404, sign: true }); - data.append(FP16x16 { mag: 189961, sign: true }); - data.append(FP16x16 { mag: 102957, sign: true }); - data.append(FP16x16 { mag: 150196, sign: true }); - data.append(FP16x16 { mag: 41335, sign: false }); - data.append(FP16x16 { mag: 20875, sign: true }); - data.append(FP16x16 { mag: 33337, sign: false }); - data.append(FP16x16 { mag: 39363, sign: true }); - data.append(FP16x16 { mag: 150495, sign: true }); - data.append(FP16x16 { mag: 92702, sign: false }); - data.append(FP16x16 { mag: 30142, sign: true }); - data.append(FP16x16 { mag: 134994, sign: false }); - data.append(FP16x16 { mag: 57330, sign: true }); - data.append(FP16x16 { mag: 183402, sign: true }); - data.append(FP16x16 { mag: 48127, sign: false }); - data.append(FP16x16 { mag: 32082, sign: true }); - data.append(FP16x16 { mag: 178676, sign: false }); - data.append(FP16x16 { mag: 79394, sign: true }); - data.append(FP16x16 { mag: 159596, sign: true }); - data.append(FP16x16 { mag: 99358, sign: false }); - data.append(FP16x16 { mag: 26881, sign: true }); - data.append(FP16x16 { mag: 67973, sign: true }); - data.append(FP16x16 { mag: 93546, sign: true }); - data.append(FP16x16 { mag: 147691, sign: true }); - data.append(FP16x16 { mag: 94992, sign: false }); - data.append(FP16x16 { mag: 33741, sign: true }); - data.append(FP16x16 { mag: 46849, sign: true }); - data.append(FP16x16 { mag: 108987, sign: true }); - data.append(FP16x16 { mag: 143230, sign: true }); - data.append(FP16x16 { mag: 95371, sign: false }); - data.append(FP16x16 { mag: 43596, sign: true }); - data.append(FP16x16 { mag: 129515, sign: true }); - data.append(FP16x16 { mag: 104770, sign: true }); - data.append(FP16x16 { mag: 152546, sign: true }); - data.append(FP16x16 { mag: 35250, sign: false }); - data.append(FP16x16 { mag: 42942, sign: true }); - data.append(FP16x16 { mag: 153994, sign: true }); - data.append(FP16x16 { mag: 66548, sign: true }); - data.append(FP16x16 { mag: 143091, sign: true }); - data.append(FP16x16 { mag: 22149, sign: false }); - data.append(FP16x16 { mag: 22209, sign: true }); - data.append(FP16x16 { mag: 6651, sign: false }); - data.append(FP16x16 { mag: 73456, sign: true }); - data.append(FP16x16 { mag: 159774, sign: true }); - data.append(FP16x16 { mag: 91978, sign: false }); - data.append(FP16x16 { mag: 44648, sign: true }); - data.append(FP16x16 { mag: 175059, sign: false }); - data.append(FP16x16 { mag: 101164, sign: true }); - data.append(FP16x16 { mag: 154706, sign: true }); - data.append(FP16x16 { mag: 83280, sign: false }); - data.append(FP16x16 { mag: 40617, sign: true }); - data.append(FP16x16 { mag: 72477, sign: true }); - data.append(FP16x16 { mag: 123424, sign: true }); - data.append(FP16x16 { mag: 145228, sign: true }); - data.append(FP16x16 { mag: 76964, sign: false }); - data.append(FP16x16 { mag: 23646, sign: true }); - data.append(FP16x16 { mag: 185699, sign: true }); - data.append(FP16x16 { mag: 72671, sign: true }); - data.append(FP16x16 { mag: 149071, sign: true }); - data.append(FP16x16 { mag: 67251, sign: false }); - data.append(FP16x16 { mag: 36234, sign: true }); - data.append(FP16x16 { mag: 48229, sign: false }); - data.append(FP16x16 { mag: 6980, sign: false }); - data.append(FP16x16 { mag: 121901, sign: true }); - data.append(FP16x16 { mag: 63362, sign: false }); - data.append(FP16x16 { mag: 18857, sign: true }); - data.append(FP16x16 { mag: 43105, sign: true }); - data.append(FP16x16 { mag: 44077, sign: true }); - data.append(FP16x16 { mag: 164722, sign: true }); - data.append(FP16x16 { mag: 66582, sign: false }); - data.append(FP16x16 { mag: 41234, sign: true }); - data.append(FP16x16 { mag: 117951, sign: true }); - data.append(FP16x16 { mag: 91492, sign: true }); - data.append(FP16x16 { mag: 126684, sign: true }); - data.append(FP16x16 { mag: 73548, sign: false }); - data.append(FP16x16 { mag: 26057, sign: true }); - data.append(FP16x16 { mag: 47620, sign: true }); - data.append(FP16x16 { mag: 2425, sign: false }); - data.append(FP16x16 { mag: 156071, sign: true }); - data.append(FP16x16 { mag: 28040, sign: false }); - data.append(FP16x16 { mag: 30148, sign: true }); - data.append(FP16x16 { mag: 128023, sign: true }); - data.append(FP16x16 { mag: 90764, sign: true }); - data.append(FP16x16 { mag: 171299, sign: true }); - data.append(FP16x16 { mag: 38179, sign: false }); + data.append(FP16x16 { mag: 148105, sign: false }); + data.append(FP16x16 { mag: 51069, sign: false }); + data.append(FP16x16 { mag: 249530, sign: false }); + data.append(FP16x16 { mag: 50124, sign: false }); + data.append(FP16x16 { mag: 25260, sign: false }); + data.append(FP16x16 { mag: 131213, sign: false }); + data.append(FP16x16 { mag: 192949, sign: false }); + data.append(FP16x16 { mag: 150671, sign: false }); + data.append(FP16x16 { mag: 57066, sign: false }); + data.append(FP16x16 { mag: 121458, sign: true }); + data.append(FP16x16 { mag: 81554, sign: false }); + data.append(FP16x16 { mag: 136827, sign: true }); + data.append(FP16x16 { mag: 65628, sign: true }); + data.append(FP16x16 { mag: 41469, sign: false }); + data.append(FP16x16 { mag: 8262, sign: false }); + data.append(FP16x16 { mag: 79823, sign: false }); + data.append(FP16x16 { mag: 74314, sign: true }); + data.append(FP16x16 { mag: 90284, sign: false }); + data.append(FP16x16 { mag: 24306, sign: false }); + data.append(FP16x16 { mag: 18836, sign: false }); + data.append(FP16x16 { mag: 67465, sign: false }); + data.append(FP16x16 { mag: 54695, sign: false }); + data.append(FP16x16 { mag: 109517, sign: true }); + data.append(FP16x16 { mag: 64466, sign: false }); + data.append(FP16x16 { mag: 37152, sign: true }); + data.append(FP16x16 { mag: 88064, sign: false }); + data.append(FP16x16 { mag: 157380, sign: true }); + data.append(FP16x16 { mag: 7574, sign: false }); + data.append(FP16x16 { mag: 33421, sign: false }); + data.append(FP16x16 { mag: 38156, sign: false }); + data.append(FP16x16 { mag: 77338, sign: false }); + data.append(FP16x16 { mag: 36257, sign: false }); + data.append(FP16x16 { mag: 146134, sign: false }); + data.append(FP16x16 { mag: 25111, sign: false }); + data.append(FP16x16 { mag: 12299, sign: true }); + data.append(FP16x16 { mag: 118888, sign: false }); + data.append(FP16x16 { mag: 203585, sign: false }); + data.append(FP16x16 { mag: 130002, sign: false }); + data.append(FP16x16 { mag: 79958, sign: false }); + data.append(FP16x16 { mag: 21416, sign: false }); + data.append(FP16x16 { mag: 89115, sign: false }); + data.append(FP16x16 { mag: 107601, sign: false }); + data.append(FP16x16 { mag: 74343, sign: true }); + data.append(FP16x16 { mag: 59119, sign: false }); + data.append(FP16x16 { mag: 145656, sign: true }); + data.append(FP16x16 { mag: 118625, sign: false }); + data.append(FP16x16 { mag: 147797, sign: true }); + data.append(FP16x16 { mag: 100250, sign: true }); + data.append(FP16x16 { mag: 57755, sign: false }); + data.append(FP16x16 { mag: 30748, sign: true }); + data.append(FP16x16 { mag: 177852, sign: false }); + data.append(FP16x16 { mag: 74217, sign: true }); + data.append(FP16x16 { mag: 92027, sign: false }); + data.append(FP16x16 { mag: 71729, sign: false }); + data.append(FP16x16 { mag: 15065, sign: false }); + data.append(FP16x16 { mag: 116394, sign: false }); + data.append(FP16x16 { mag: 208223, sign: false }); + data.append(FP16x16 { mag: 54137, sign: false }); + data.append(FP16x16 { mag: 80353, sign: false }); + data.append(FP16x16 { mag: 54658, sign: true }); + data.append(FP16x16 { mag: 91876, sign: false }); + data.append(FP16x16 { mag: 176865, sign: true }); + data.append(FP16x16 { mag: 27849, sign: true }); + data.append(FP16x16 { mag: 46841, sign: false }); + data.append(FP16x16 { mag: 88031, sign: false }); + data.append(FP16x16 { mag: 84253, sign: false }); + data.append(FP16x16 { mag: 81232, sign: false }); + data.append(FP16x16 { mag: 2720, sign: true }); + data.append(FP16x16 { mag: 84339, sign: false }); + data.append(FP16x16 { mag: 122880, sign: false }); + data.append(FP16x16 { mag: 168024, sign: false }); + data.append(FP16x16 { mag: 150776, sign: true }); + data.append(FP16x16 { mag: 37600, sign: false }); + data.append(FP16x16 { mag: 64076, sign: false }); + data.append(FP16x16 { mag: 11218, sign: false }); + data.append(FP16x16 { mag: 173101, sign: false }); + data.append(FP16x16 { mag: 69045, sign: false }); + data.append(FP16x16 { mag: 109739, sign: false }); + data.append(FP16x16 { mag: 74434, sign: false }); + data.append(FP16x16 { mag: 69416, sign: true }); + data.append(FP16x16 { mag: 79483, sign: false }); + data.append(FP16x16 { mag: 39901, sign: false }); + data.append(FP16x16 { mag: 106494, sign: true }); + data.append(FP16x16 { mag: 76376, sign: false }); + data.append(FP16x16 { mag: 16086, sign: false }); + data.append(FP16x16 { mag: 103647, sign: false }); + data.append(FP16x16 { mag: 36533, sign: true }); + data.append(FP16x16 { mag: 42174, sign: false }); + data.append(FP16x16 { mag: 79080, sign: false }); + data.append(FP16x16 { mag: 191746, sign: false }); + data.append(FP16x16 { mag: 77441, sign: false }); + data.append(FP16x16 { mag: 2812, sign: false }); + data.append(FP16x16 { mag: 180705, sign: false }); + data.append(FP16x16 { mag: 36837, sign: false }); + data.append(FP16x16 { mag: 126699, sign: false }); + data.append(FP16x16 { mag: 55555, sign: false }); + data.append(FP16x16 { mag: 26973, sign: false }); + data.append(FP16x16 { mag: 28356, sign: true }); + data.append(FP16x16 { mag: 67324, sign: false }); + data.append(FP16x16 { mag: 128783, sign: false }); + data.append(FP16x16 { mag: 88862, sign: false }); + data.append(FP16x16 { mag: 171949, sign: false }); + data.append(FP16x16 { mag: 5842, sign: false }); + data.append(FP16x16 { mag: 83802, sign: false }); + data.append(FP16x16 { mag: 30236, sign: false }); + data.append(FP16x16 { mag: 61609, sign: false }); + data.append(FP16x16 { mag: 176100, sign: false }); + data.append(FP16x16 { mag: 20018, sign: true }); + data.append(FP16x16 { mag: 66700, sign: false }); + data.append(FP16x16 { mag: 23575, sign: true }); + data.append(FP16x16 { mag: 128526, sign: false }); + data.append(FP16x16 { mag: 21255, sign: false }); + data.append(FP16x16 { mag: 32892, sign: true }); + data.append(FP16x16 { mag: 90380, sign: false }); + data.append(FP16x16 { mag: 51132, sign: false }); + data.append(FP16x16 { mag: 164403, sign: false }); + data.append(FP16x16 { mag: 147072, sign: true }); + data.append(FP16x16 { mag: 44562, sign: false }); + data.append(FP16x16 { mag: 68319, sign: false }); + data.append(FP16x16 { mag: 51670, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_test.cairo b/tests/nodes/layer_normalization_test.cairo index 02235bd8b..631dc6f46 100644 --- a/tests/nodes/layer_normalization_test.cairo +++ b/tests/nodes/layer_normalization_test.cairo @@ -5,11 +5,11 @@ mod output_0; use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::numbers::{FixedTrait, FP16x16}; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::operators::tensor::FP16x16TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::{FixedTrait, FP16x16}; #[test] #[available_gas(2000000000)] @@ -19,10 +19,7 @@ fn test_layer_normalization_test() { let input_2 = input_2::input_2(); let z_0 = output_0::output_0(); - let (y_0, _, _) = input_0 - .layer_normalization( - @input_1, Option::Some(@input_2), Option::None, Option::None, Option::None - ); + let (y_0, _, _) = input_0.layer_normalization(@input_1,Option::Some(@input_2),Option::None,Option::None,Option::None); assert_eq(y_0, z_0); } diff --git a/tests/nodes/layer_normalization_test/input_0.cairo b/tests/nodes/layer_normalization_test/input_0.cairo index 6a1e2573e..932e27d84 100644 --- a/tests/nodes/layer_normalization_test/input_0.cairo +++ b/tests/nodes/layer_normalization_test/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -9,17 +9,17 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 41143, sign: true }); - data.append(FP16x16 { mag: 51803, sign: false }); - data.append(FP16x16 { mag: 113556, sign: false }); - data.append(FP16x16 { mag: 64774, sign: false }); - data.append(FP16x16 { mag: 866, sign: false }); - data.append(FP16x16 { mag: 698, sign: true }); - data.append(FP16x16 { mag: 106500, sign: false }); - data.append(FP16x16 { mag: 98929, sign: false }); - data.append(FP16x16 { mag: 7551, sign: false }); - data.append(FP16x16 { mag: 30689, sign: true }); - data.append(FP16x16 { mag: 38325, sign: false }); - data.append(FP16x16 { mag: 48164, sign: false }); + data.append(FP16x16 { mag: 60552, sign: false }); + data.append(FP16x16 { mag: 32131, sign: true }); + data.append(FP16x16 { mag: 17263, sign: false }); + data.append(FP16x16 { mag: 17309, sign: false }); + data.append(FP16x16 { mag: 75079, sign: true }); + data.append(FP16x16 { mag: 132412, sign: true }); + data.append(FP16x16 { mag: 72947, sign: false }); + data.append(FP16x16 { mag: 89468, sign: false }); + data.append(FP16x16 { mag: 9763, sign: false }); + data.append(FP16x16 { mag: 43535, sign: true }); + data.append(FP16x16 { mag: 137407, sign: false }); + data.append(FP16x16 { mag: 45433, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_test/input_1.cairo b/tests/nodes/layer_normalization_test/input_1.cairo index c56fcc649..012cb6488 100644 --- a/tests/nodes/layer_normalization_test/input_1.cairo +++ b/tests/nodes/layer_normalization_test/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { @@ -8,9 +8,9 @@ fn input_1() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 49855, sign: false }); - data.append(FP16x16 { mag: 150787, sign: false }); - data.append(FP16x16 { mag: 83498, sign: true }); - data.append(FP16x16 { mag: 30346, sign: false }); + data.append(FP16x16 { mag: 60302, sign: false }); + data.append(FP16x16 { mag: 171263, sign: false }); + data.append(FP16x16 { mag: 38170, sign: true }); + data.append(FP16x16 { mag: 102181, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_test/input_2.cairo b/tests/nodes/layer_normalization_test/input_2.cairo index 9c662c873..c2d2aaaea 100644 --- a/tests/nodes/layer_normalization_test/input_2.cairo +++ b/tests/nodes/layer_normalization_test/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { @@ -8,9 +8,9 @@ fn input_2() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 54864, sign: true }); - data.append(FP16x16 { mag: 50952, sign: false }); - data.append(FP16x16 { mag: 8870, sign: true }); - data.append(FP16x16 { mag: 23216, sign: true }); + data.append(FP16x16 { mag: 15701, sign: true }); + data.append(FP16x16 { mag: 15386, sign: false }); + data.append(FP16x16 { mag: 38358, sign: false }); + data.append(FP16x16 { mag: 48407, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/layer_normalization_test/output_0.cairo b/tests/nodes/layer_normalization_test/output_0.cairo index c7ddbe92d..3e0dc607f 100644 --- a/tests/nodes/layer_normalization_test/output_0.cairo +++ b/tests/nodes/layer_normalization_test/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -9,17 +9,17 @@ fn output_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 133576, sign: true }); - data.append(FP16x16 { mag: 63223, sign: false }); - data.append(FP16x16 { mag: 107763, sign: true }); - data.append(FP16x16 { mag: 13716, sign: true }); - data.append(FP16x16 { mag: 103890, sign: true }); - data.append(FP16x16 { mag: 101915, sign: true }); - data.append(FP16x16 { mag: 98400, sign: true }); - data.append(FP16x16 { mag: 4851, sign: false }); - data.append(FP16x16 { mag: 68295, sign: true }); - data.append(FP16x16 { mag: 177139, sign: true }); - data.append(FP16x16 { mag: 69916, sign: true }); - data.append(FP16x16 { mag: 8677, sign: false }); + data.append(FP16x16 { mag: 66655, sign: false }); + data.append(FP16x16 { mag: 234574, sign: true }); + data.append(FP16x16 { mag: 36595, sign: false }); + data.append(FP16x16 { mag: 43544, sign: false }); + data.append(FP16x16 { mag: 56268, sign: true }); + data.append(FP16x16 { mag: 203346, sign: true }); + data.append(FP16x16 { mag: 4468, sign: false }); + data.append(FP16x16 { mag: 60114, sign: true }); + data.append(FP16x16 { mag: 19585, sign: true }); + data.append(FP16x16 { mag: 118482, sign: true }); + data.append(FP16x16 { mag: 24747, sign: true }); + data.append(FP16x16 { mag: 130887, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/leaky_relu_fp16x16.cairo b/tests/nodes/leaky_relu_fp16x16.cairo index 99e6df74d..dcae7d0dc 100644 --- a/tests/nodes/leaky_relu_fp16x16.cairo +++ b/tests/nodes/leaky_relu_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; use orion::operators::nn::FP16x16NN; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::NNTrait; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/leaky_relu_fp16x16/input_0.cairo b/tests/nodes/leaky_relu_fp16x16/input_0.cairo index df9cc6b05..8477f1574 100644 --- a/tests/nodes/leaky_relu_fp16x16/input_0.cairo +++ b/tests/nodes/leaky_relu_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 401540, sign: false }); - data.append(FP16x16 { mag: 47813, sign: true }); - data.append(FP16x16 { mag: 206992, sign: false }); - data.append(FP16x16 { mag: 323041, sign: true }); + data.append(FP16x16 { mag: 262956, sign: true }); + data.append(FP16x16 { mag: 93265, sign: false }); + data.append(FP16x16 { mag: 218381, sign: true }); + data.append(FP16x16 { mag: 244376, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/leaky_relu_fp16x16/output_0.cairo b/tests/nodes/leaky_relu_fp16x16/output_0.cairo index 08a7a8249..f1684354b 100644 --- a/tests/nodes/leaky_relu_fp16x16/output_0.cairo +++ b/tests/nodes/leaky_relu_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 401540, sign: false }); - data.append(FP16x16 { mag: 4781, sign: true }); - data.append(FP16x16 { mag: 206992, sign: false }); - data.append(FP16x16 { mag: 32304, sign: true }); + data.append(FP16x16 { mag: 26295, sign: true }); + data.append(FP16x16 { mag: 93265, sign: false }); + data.append(FP16x16 { mag: 21838, sign: true }); + data.append(FP16x16 { mag: 24437, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/leaky_relu_fp8x23.cairo b/tests/nodes/leaky_relu_fp8x23.cairo index 75646c23d..027d57148 100644 --- a/tests/nodes/leaky_relu_fp8x23.cairo +++ b/tests/nodes/leaky_relu_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; -use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::numbers::FixedTrait; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::NNTrait; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/leaky_relu_fp8x23/input_0.cairo b/tests/nodes/leaky_relu_fp8x23/input_0.cairo index 2daf30233..abb225c07 100644 --- a/tests/nodes/leaky_relu_fp8x23/input_0.cairo +++ b/tests/nodes/leaky_relu_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 12477177, sign: false }); - data.append(FP8x23 { mag: 29017046, sign: false }); - data.append(FP8x23 { mag: 26929960, sign: true }); - data.append(FP8x23 { mag: 689284, sign: false }); + data.append(FP8x23 { mag: 14080598, sign: false }); + data.append(FP8x23 { mag: 57593374, sign: false }); + data.append(FP8x23 { mag: 23686131, sign: false }); + data.append(FP8x23 { mag: 26702392, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/leaky_relu_fp8x23/output_0.cairo b/tests/nodes/leaky_relu_fp8x23/output_0.cairo index 138290006..c72c6e6f3 100644 --- a/tests/nodes/leaky_relu_fp8x23/output_0.cairo +++ b/tests/nodes/leaky_relu_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 12477178, sign: false }); - data.append(FP8x23 { mag: 29017046, sign: false }); - data.append(FP8x23 { mag: 2692996, sign: true }); - data.append(FP8x23 { mag: 689284, sign: false }); + data.append(FP8x23 { mag: 14080599, sign: false }); + data.append(FP8x23 { mag: 57593376, sign: false }); + data.append(FP8x23 { mag: 23686132, sign: false }); + data.append(FP8x23 { mag: 2670239, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp16x16.cairo b/tests/nodes/less_equal_fp16x16.cairo index 01dd44c74..19fe42d2d 100644 --- a/tests/nodes/less_equal_fp16x16.cairo +++ b/tests/nodes/less_equal_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_fp16x16/input_0.cairo b/tests/nodes/less_equal_fp16x16/input_0.cairo index 90e4b909f..ec0027d22 100644 --- a/tests/nodes/less_equal_fp16x16/input_0.cairo +++ b/tests/nodes/less_equal_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp16x16/input_1.cairo b/tests/nodes/less_equal_fp16x16/input_1.cairo index 0a40b9159..5cc407dc5 100644 --- a/tests/nodes/less_equal_fp16x16/input_1.cairo +++ b/tests/nodes/less_equal_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp16x16/output_0.cairo b/tests/nodes/less_equal_fp16x16/output_0.cairo index 6bcb5ce4a..7e2cee38d 100644 --- a/tests/nodes/less_equal_fp16x16/output_0.cairo +++ b/tests/nodes/less_equal_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); data.append(1); data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp16x16_broadcast.cairo b/tests/nodes/less_equal_fp16x16_broadcast.cairo index 4cc567d85..6ca29eb78 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo b/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo index 04ca1a696..13261de0d 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo b/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo index ffd9b9389..25a595400 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +10,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo b/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo index 6bcb5ce4a..31cf673d4 100644 --- a/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,8 +8,8 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/less_equal_fp8x23.cairo b/tests/nodes/less_equal_fp8x23.cairo index ddb34f50b..3ee472dce 100644 --- a/tests/nodes/less_equal_fp8x23.cairo +++ b/tests/nodes/less_equal_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_fp8x23/input_0.cairo b/tests/nodes/less_equal_fp8x23/input_0.cairo index 0893c087b..cac7e356e 100644 --- a/tests/nodes/less_equal_fp8x23/input_0.cairo +++ b/tests/nodes/less_equal_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp8x23/input_1.cairo b/tests/nodes/less_equal_fp8x23/input_1.cairo index bc0b0ffac..6a5e5a086 100644 --- a/tests/nodes/less_equal_fp8x23/input_1.cairo +++ b/tests/nodes/less_equal_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp8x23/output_0.cairo b/tests/nodes/less_equal_fp8x23/output_0.cairo index 5991fffde..07948a48e 100644 --- a/tests/nodes/less_equal_fp8x23/output_0.cairo +++ b/tests/nodes/less_equal_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/less_equal_fp8x23_broadcast.cairo b/tests/nodes/less_equal_fp8x23_broadcast.cairo index 3262dc089..8cf36a6ba 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo b/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo index 4e6aa0fe6..597e948e1 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo b/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo index f8a80f8f8..6a7c55548 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo b/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo index 226ba2d48..62010885f 100644 --- a/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); data.append(1); - data.append(0); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i32.cairo b/tests/nodes/less_equal_i32.cairo index bafb26070..3072a59b0 100644 --- a/tests/nodes/less_equal_i32.cairo +++ b/tests/nodes/less_equal_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_i32/input_0.cairo b/tests/nodes/less_equal_i32/input_0.cairo index 3f46b1b05..11c8e73ff 100644 --- a/tests/nodes/less_equal_i32/input_0.cairo +++ b/tests/nodes/less_equal_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i32/input_1.cairo b/tests/nodes/less_equal_i32/input_1.cairo index 429120ed2..330426cd7 100644 --- a/tests/nodes/less_equal_i32/input_1.cairo +++ b/tests/nodes/less_equal_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(2); + data.append(2); + data.append(-3); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i32/output_0.cairo b/tests/nodes/less_equal_i32/output_0.cairo index 6a5b87888..8442d0d0c 100644 --- a/tests/nodes/less_equal_i32/output_0.cairo +++ b/tests/nodes/less_equal_i32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(1); data.append(1); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i32_broadcast.cairo b/tests/nodes/less_equal_i32_broadcast.cairo index 69c4edd7f..3657b38d9 100644 --- a/tests/nodes/less_equal_i32_broadcast.cairo +++ b/tests/nodes/less_equal_i32_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::I32TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_i32_broadcast/input_0.cairo b/tests/nodes/less_equal_i32_broadcast/input_0.cairo index d5c2fe6d9..9f1d44f37 100644 --- a/tests/nodes/less_equal_i32_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(-2); + data.append(1); + data.append(-3); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i32_broadcast/input_1.cairo b/tests/nodes/less_equal_i32_broadcast/input_1.cairo index 42212b3d2..dc3c54f94 100644 --- a/tests/nodes/less_equal_i32_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(-2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i32_broadcast/output_0.cairo b/tests/nodes/less_equal_i32_broadcast/output_0.cairo index 938538d87..31cf673d4 100644 --- a/tests/nodes/less_equal_i32_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_i32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); + data.append(0); data.append(1); data.append(1); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i8.cairo b/tests/nodes/less_equal_i8.cairo index 829ef26c3..c86a70ec1 100644 --- a/tests/nodes/less_equal_i8.cairo +++ b/tests/nodes/less_equal_i8.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_i8/input_0.cairo b/tests/nodes/less_equal_i8/input_0.cairo index 32fd5cd0e..4f53a978e 100644 --- a/tests/nodes/less_equal_i8/input_0.cairo +++ b/tests/nodes/less_equal_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i8/input_1.cairo b/tests/nodes/less_equal_i8/input_1.cairo index 42cb662c2..6cb982144 100644 --- a/tests/nodes/less_equal_i8/input_1.cairo +++ b/tests/nodes/less_equal_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(0); + data.append(-2); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i8/output_0.cairo b/tests/nodes/less_equal_i8/output_0.cairo index eb0deaedb..31cf673d4 100644 --- a/tests/nodes/less_equal_i8/output_0.cairo +++ b/tests/nodes/less_equal_i8/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/less_equal_i8_broadcast.cairo b/tests/nodes/less_equal_i8_broadcast.cairo index ba6bee9e1..ac53e3aa6 100644 --- a/tests/nodes/less_equal_i8_broadcast.cairo +++ b/tests/nodes/less_equal_i8_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_i8_broadcast/input_0.cairo b/tests/nodes/less_equal_i8_broadcast/input_0.cairo index ccd3e624f..835e66354 100644 --- a/tests/nodes/less_equal_i8_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(2); + data.append(2); + data.append(2); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i8_broadcast/input_1.cairo b/tests/nodes/less_equal_i8_broadcast/input_1.cairo index 3c2300f86..02ff8facd 100644 --- a/tests/nodes/less_equal_i8_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); + data.append(-3); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_i8_broadcast/output_0.cairo b/tests/nodes/less_equal_i8_broadcast/output_0.cairo index e9d17d59b..9a2391c78 100644 --- a/tests/nodes/less_equal_i8_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_i8_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); data.append(0); data.append(0); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_u32.cairo b/tests/nodes/less_equal_u32.cairo index 57f6be4fe..8a1e7aab4 100644 --- a/tests/nodes/less_equal_u32.cairo +++ b/tests/nodes/less_equal_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_u32/input_0.cairo b/tests/nodes/less_equal_u32/input_0.cairo index c7ae27243..84b61d7cc 100644 --- a/tests/nodes/less_equal_u32/input_0.cairo +++ b/tests/nodes/less_equal_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); - data.append(0); - data.append(0); + data.append(2); + data.append(5); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_u32/input_1.cairo b/tests/nodes/less_equal_u32/input_1.cairo index 2632540eb..fe6539464 100644 --- a/tests/nodes/less_equal_u32/input_1.cairo +++ b/tests/nodes/less_equal_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(2); + data.append(4); data.append(5); - data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_u32/output_0.cairo b/tests/nodes/less_equal_u32/output_0.cairo index 6bcb5ce4a..de313d890 100644 --- a/tests/nodes/less_equal_u32/output_0.cairo +++ b/tests/nodes/less_equal_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +11,6 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(1); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_u32_broadcast.cairo b/tests/nodes/less_equal_u32_broadcast.cairo index b9186607d..dc695687d 100644 --- a/tests/nodes/less_equal_u32_broadcast.cairo +++ b/tests/nodes/less_equal_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_equal_u32_broadcast/input_0.cairo b/tests/nodes/less_equal_u32_broadcast/input_0.cairo index 60ef951e2..a6bf00a7c 100644 --- a/tests/nodes/less_equal_u32_broadcast/input_0.cairo +++ b/tests/nodes/less_equal_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); - data.append(3); - data.append(3); + data.append(0); + data.append(5); + data.append(4); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_u32_broadcast/input_1.cairo b/tests/nodes/less_equal_u32_broadcast/input_1.cairo index 56ffa8a3e..8e7328b81 100644 --- a/tests/nodes/less_equal_u32_broadcast/input_1.cairo +++ b/tests/nodes/less_equal_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(5); + data.append(1); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_equal_u32_broadcast/output_0.cairo b/tests/nodes/less_equal_u32_broadcast/output_0.cairo index 226ba2d48..ef770fa07 100644 --- a/tests/nodes/less_equal_u32_broadcast/output_0.cairo +++ b/tests/nodes/less_equal_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(0); - data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp16x16.cairo b/tests/nodes/less_fp16x16.cairo index e6262a01a..04ac88b63 100644 --- a/tests/nodes/less_fp16x16.cairo +++ b/tests/nodes/less_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_fp16x16/input_0.cairo b/tests/nodes/less_fp16x16/input_0.cairo index 0cb8927fe..41fa7524d 100644 --- a/tests/nodes/less_fp16x16/input_0.cairo +++ b/tests/nodes/less_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp16x16/input_1.cairo b/tests/nodes/less_fp16x16/input_1.cairo index 7d3e6fd4a..fe0e56e41 100644 --- a/tests/nodes/less_fp16x16/input_1.cairo +++ b/tests/nodes/less_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp16x16/output_0.cairo b/tests/nodes/less_fp16x16/output_0.cairo index c9c25288a..ff7a8e63d 100644 --- a/tests/nodes/less_fp16x16/output_0.cairo +++ b/tests/nodes/less_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,15 +11,14 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(1); - data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); + data.append(1); data.append(0); data.append(1); data.append(1); @@ -27,13 +26,14 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(0); - data.append(0); + data.append(1); data.append(0); data.append(1); data.append(1); data.append(0); data.append(1); data.append(0); + data.append(1); data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/less_fp16x16_broadcast.cairo b/tests/nodes/less_fp16x16_broadcast.cairo index e605c84df..787c07448 100644 --- a/tests/nodes/less_fp16x16_broadcast.cairo +++ b/tests/nodes/less_fp16x16_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_fp16x16_broadcast/input_0.cairo b/tests/nodes/less_fp16x16_broadcast/input_0.cairo index 0f16faa9f..18782c0dd 100644 --- a/tests/nodes/less_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/less_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp16x16_broadcast/input_1.cairo b/tests/nodes/less_fp16x16_broadcast/input_1.cairo index 07b1ed014..743355c3d 100644 --- a/tests/nodes/less_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/less_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp16x16_broadcast/output_0.cairo b/tests/nodes/less_fp16x16_broadcast/output_0.cairo index ee02d6d22..7d4613a88 100644 --- a/tests/nodes/less_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/less_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,17 +9,13 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(0); - data.append(0); data.append(1); data.append(0); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); @@ -27,7 +23,8 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); @@ -35,6 +32,9 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); + data.append(0); + data.append(0); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp8x23.cairo b/tests/nodes/less_fp8x23.cairo index d8c9a1add..6fe7b08b8 100644 --- a/tests/nodes/less_fp8x23.cairo +++ b/tests/nodes/less_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_fp8x23/input_0.cairo b/tests/nodes/less_fp8x23/input_0.cairo index f3777b615..fbcd9f2a8 100644 --- a/tests/nodes/less_fp8x23/input_0.cairo +++ b/tests/nodes/less_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp8x23/input_1.cairo b/tests/nodes/less_fp8x23/input_1.cairo index 9624d1e8f..e27ba84da 100644 --- a/tests/nodes/less_fp8x23/input_1.cairo +++ b/tests/nodes/less_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp8x23/output_0.cairo b/tests/nodes/less_fp8x23/output_0.cairo index 61ee608d5..33906ca90 100644 --- a/tests/nodes/less_fp8x23/output_0.cairo +++ b/tests/nodes/less_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,6 +13,9 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); + data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(0); data.append(0); @@ -25,15 +28,12 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(1); - data.append(1); - data.append(0); - data.append(0); data.append(0); + data.append(1); data.append(0); data.append(1); data.append(1); - data.append(0); + data.append(1); data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/less_fp8x23_broadcast.cairo b/tests/nodes/less_fp8x23_broadcast.cairo index ad408c4e1..e8b3155c5 100644 --- a/tests/nodes/less_fp8x23_broadcast.cairo +++ b/tests/nodes/less_fp8x23_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_fp8x23_broadcast/input_0.cairo b/tests/nodes/less_fp8x23_broadcast/input_0.cairo index abaa6d523..88ad7277b 100644 --- a/tests/nodes/less_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/less_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp8x23_broadcast/input_1.cairo b/tests/nodes/less_fp8x23_broadcast/input_1.cairo index c13dc39dd..29b68e7c3 100644 --- a/tests/nodes/less_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/less_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,7 +11,7 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_fp8x23_broadcast/output_0.cairo b/tests/nodes/less_fp8x23_broadcast/output_0.cairo index 766a8a4e2..fbf242193 100644 --- a/tests/nodes/less_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/less_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,7 +11,6 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); @@ -19,22 +18,23 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(0); + data.append(1); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i32.cairo b/tests/nodes/less_i32.cairo index c73bdb338..4a251b995 100644 --- a/tests/nodes/less_i32.cairo +++ b/tests/nodes/less_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_i32/input_0.cairo b/tests/nodes/less_i32/input_0.cairo index ce1333168..ab59d73f2 100644 --- a/tests/nodes/less_i32/input_0.cairo +++ b/tests/nodes/less_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(-1); + data.append(-2); + data.append(2); + data.append(2); + data.append(2); + data.append(-2); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(2); + data.append(-2); + data.append(-1); + data.append(-3); + data.append(0); + data.append(0); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(2); + data.append(-3); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i32/input_1.cairo b/tests/nodes/less_i32/input_1.cairo index 4644f8747..cadacc785 100644 --- a/tests/nodes/less_i32/input_1.cairo +++ b/tests/nodes/less_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(0); + data.append(-1); + data.append(0); + data.append(-2); + data.append(2); + data.append(1); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(-2); + data.append(2); + data.append(-1); + data.append(-3); + data.append(2); + data.append(1); + data.append(-2); + data.append(-1); + data.append(-2); + data.append(1); + data.append(-3); + data.append(-1); + data.append(0); + data.append(1); + data.append(0); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i32/output_0.cairo b/tests/nodes/less_i32/output_0.cairo index 6e419643b..bff093e8b 100644 --- a/tests/nodes/less_i32/output_0.cairo +++ b/tests/nodes/less_i32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(1); data.append(1); data.append(0); - data.append(0); data.append(1); data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i32_broadcast.cairo b/tests/nodes/less_i32_broadcast.cairo index 3c4dc9f84..552150976 100644 --- a/tests/nodes/less_i32_broadcast.cairo +++ b/tests/nodes/less_i32_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_i32_broadcast/input_0.cairo b/tests/nodes/less_i32_broadcast/input_0.cairo index bdc05d398..e49eaf809 100644 --- a/tests/nodes/less_i32_broadcast/input_0.cairo +++ b/tests/nodes/less_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-3); + data.append(-2); + data.append(1); + data.append(-3); + data.append(2); + data.append(-1); + data.append(-3); + data.append(0); + data.append(2); + data.append(1); + data.append(-1); + data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(-3); + data.append(2); + data.append(1); + data.append(2); + data.append(0); + data.append(0); + data.append(0); + data.append(-3); + data.append(0); + data.append(2); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i32_broadcast/input_1.cairo b/tests/nodes/less_i32_broadcast/input_1.cairo index 8ef33a862..99c50d44f 100644 --- a/tests/nodes/less_i32_broadcast/input_1.cairo +++ b/tests/nodes/less_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(-3); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i32_broadcast/output_0.cairo b/tests/nodes/less_i32_broadcast/output_0.cairo index d46252adb..79967537c 100644 --- a/tests/nodes/less_i32_broadcast/output_0.cairo +++ b/tests/nodes/less_i32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,16 +10,14 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(1); - data.append(1); - data.append(0); - data.append(0); - data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(1); data.append(1); + data.append(1); + data.append(0); data.append(0); data.append(0); data.append(0); @@ -27,8 +25,6 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(1); data.append(0); data.append(0); @@ -36,5 +32,9 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i8.cairo b/tests/nodes/less_i8.cairo index 29b72afdd..085a6da35 100644 --- a/tests/nodes/less_i8.cairo +++ b/tests/nodes/less_i8.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_i8/input_0.cairo b/tests/nodes/less_i8/input_0.cairo index 66c5d7d25..28dd5a905 100644 --- a/tests/nodes/less_i8/input_0.cairo +++ b/tests/nodes/less_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); + data.append(-3); + data.append(0); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(2); + data.append(-1); + data.append(-3); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(1); + data.append(-2); + data.append(0); + data.append(-3); + data.append(2); + data.append(-3); + data.append(-2); + data.append(2); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i8/input_1.cairo b/tests/nodes/less_i8/input_1.cairo index 2bc709b4f..9dc4e7a6c 100644 --- a/tests/nodes/less_i8/input_1.cairo +++ b/tests/nodes/less_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); + data.append(-3); + data.append(1); + data.append(-2); + data.append(-3); + data.append(2); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-2); + data.append(1); + data.append(0); + data.append(2); + data.append(-2); + data.append(1); + data.append(-2); + data.append(-3); + data.append(2); + data.append(0); + data.append(-1); + data.append(0); + data.append(0); + data.append(-2); + data.append(2); + data.append(-1); + data.append(2); + data.append(0); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i8/output_0.cairo b/tests/nodes/less_i8/output_0.cairo index d212fd030..9398cc8d3 100644 --- a/tests/nodes/less_i8/output_0.cairo +++ b/tests/nodes/less_i8/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); data.append(1); data.append(1); data.append(0); - data.append(0); data.append(1); data.append(0); - data.append(0); data.append(1); - data.append(0); - data.append(0); - data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(1); data.append(0); + data.append(1); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i8_broadcast.cairo b/tests/nodes/less_i8_broadcast.cairo index 2dfae5b8d..fb705a81d 100644 --- a/tests/nodes/less_i8_broadcast.cairo +++ b/tests/nodes/less_i8_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_i8_broadcast/input_0.cairo b/tests/nodes/less_i8_broadcast/input_0.cairo index 9c74f07f9..eac6c02fd 100644 --- a/tests/nodes/less_i8_broadcast/input_0.cairo +++ b/tests/nodes/less_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(-2); + data.append(-2); + data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(-1); + data.append(-3); + data.append(0); + data.append(2); + data.append(-3); + data.append(1); + data.append(1); + data.append(2); + data.append(-3); + data.append(2); + data.append(-3); + data.append(2); + data.append(1); + data.append(0); + data.append(-1); + data.append(0); + data.append(-1); + data.append(1); + data.append(0); + data.append(-2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i8_broadcast/input_1.cairo b/tests/nodes/less_i8_broadcast/input_1.cairo index 2d8e6c2ac..d593d06e4 100644 --- a/tests/nodes/less_i8_broadcast/input_1.cairo +++ b/tests/nodes/less_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(-1); + data.append(-2); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_i8_broadcast/output_0.cairo b/tests/nodes/less_i8_broadcast/output_0.cairo index 1634319a2..f68e15ea8 100644 --- a/tests/nodes/less_i8_broadcast/output_0.cairo +++ b/tests/nodes/less_i8_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,6 +10,11 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); data.append(0); data.append(0); data.append(0); @@ -17,21 +22,16 @@ fn output_0() -> Tensor { data.append(1); data.append(0); data.append(0); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/less_u32.cairo b/tests/nodes/less_u32.cairo index 7421b5252..412895527 100644 --- a/tests/nodes/less_u32.cairo +++ b/tests/nodes/less_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_u32/input_0.cairo b/tests/nodes/less_u32/input_0.cairo index 6104d8e2e..15b2924f3 100644 --- a/tests/nodes/less_u32/input_0.cairo +++ b/tests/nodes/less_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); data.append(2); - data.append(1); - data.append(2); - data.append(3); - data.append(3); - data.append(5); - data.append(5); + data.append(0); + data.append(4); data.append(5); + data.append(0); + data.append(4); + data.append(4); data.append(1); data.append(5); data.append(3); data.append(3); - data.append(3); - data.append(5); - data.append(2); - data.append(3); - data.append(0); - data.append(1); data.append(2); data.append(5); data.append(5); + data.append(4); data.append(1); - data.append(5); - data.append(3); + data.append(1); + data.append(4); + data.append(4); data.append(2); - data.append(5); + data.append(2); + data.append(2); + data.append(4); + data.append(4); data.append(3); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_u32/input_1.cairo b/tests/nodes/less_u32/input_1.cairo index 0f0b6823d..e540f7f40 100644 --- a/tests/nodes/less_u32/input_1.cairo +++ b/tests/nodes/less_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(4); - data.append(5); + data.append(1); data.append(5); - data.append(4); - data.append(0); - data.append(4); - data.append(3); data.append(5); - data.append(0); data.append(2); - data.append(5); data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(3); data.append(3); + data.append(0); data.append(5); + data.append(2); + data.append(0); data.append(0); - data.append(1); - data.append(4); - data.append(4); data.append(0); data.append(4); + data.append(1); + data.append(1); data.append(5); - data.append(3); - data.append(0); - data.append(2); + data.append(4); data.append(4); data.append(2); + data.append(3); + data.append(2); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_u32/output_0.cairo b/tests/nodes/less_u32/output_0.cairo index b0e256d44..75a278131 100644 --- a/tests/nodes/less_u32/output_0.cairo +++ b/tests/nodes/less_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,28 +10,28 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); - data.append(1); + data.append(0); data.append(0); data.append(0); data.append(1); data.append(0); data.append(0); - data.append(1); data.append(0); - data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(1); - data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/less_u32_broadcast.cairo b/tests/nodes/less_u32_broadcast.cairo index 7154a5420..9a7ac7a22 100644 --- a/tests/nodes/less_u32_broadcast.cairo +++ b/tests/nodes/less_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/less_u32_broadcast/input_0.cairo b/tests/nodes/less_u32_broadcast/input_0.cairo index 2c5da0ac6..655814fc8 100644 --- a/tests/nodes/less_u32_broadcast/input_0.cairo +++ b/tests/nodes/less_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,30 +11,30 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(5); data.append(5); - data.append(0); - data.append(4); - data.append(1); data.append(3); - data.append(0); + data.append(4); data.append(4); data.append(5); - data.append(2); - data.append(2); - data.append(0); data.append(3); data.append(0); data.append(5); - data.append(4); - data.append(0); - data.append(5); data.append(3); - data.append(1); data.append(3); - data.append(1); data.append(0); + data.append(4); data.append(1); + data.append(5); data.append(0); + data.append(2); + data.append(2); + data.append(1); data.append(3); + data.append(5); + data.append(5); + data.append(5); + data.append(4); + data.append(5); + data.append(5); data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_u32_broadcast/input_1.cairo b/tests/nodes/less_u32_broadcast/input_1.cairo index f49c5cd0f..bcb20d101 100644 --- a/tests/nodes/less_u32_broadcast/input_1.cairo +++ b/tests/nodes/less_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(5); - data.append(3); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/less_u32_broadcast/output_0.cairo b/tests/nodes/less_u32_broadcast/output_0.cairo index 7c34ff09d..ad7acc0af 100644 --- a/tests/nodes/less_u32_broadcast/output_0.cairo +++ b/tests/nodes/less_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,30 +11,30 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); - data.append(1); + data.append(0); + data.append(0); data.append(0); data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); data.append(0); data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp16x16.cairo b/tests/nodes/linear_fp16x16.cairo index c8999e570..3e1f50775 100644 --- a/tests/nodes/linear_fp16x16.cairo +++ b/tests/nodes/linear_fp16x16.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; -use orion::numbers::FixedTrait; use orion::operators::nn::FP16x16NN; +use orion::numbers::FixedTrait; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/linear_fp16x16/input_0.cairo b/tests/nodes/linear_fp16x16/input_0.cairo index 5533c3513..ff1d6cceb 100644 --- a/tests/nodes/linear_fp16x16/input_0.cairo +++ b/tests/nodes/linear_fp16x16/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 57550, sign: false }); - data.append(FP16x16 { mag: 313427, sign: true }); - data.append(FP16x16 { mag: 31559, sign: false }); + data.append(FP16x16 { mag: 185755, sign: false }); + data.append(FP16x16 { mag: 99924, sign: true }); + data.append(FP16x16 { mag: 46055, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp16x16/input_1.cairo b/tests/nodes/linear_fp16x16/input_1.cairo index d18d10575..5d170c9a8 100644 --- a/tests/nodes/linear_fp16x16/input_1.cairo +++ b/tests/nodes/linear_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,11 +9,11 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 316249, sign: true }); - data.append(FP16x16 { mag: 223592, sign: true }); - data.append(FP16x16 { mag: 238282, sign: true }); - data.append(FP16x16 { mag: 452809, sign: false }); - data.append(FP16x16 { mag: 234567, sign: false }); - data.append(FP16x16 { mag: 135020, sign: false }); + data.append(FP16x16 { mag: 429406, sign: false }); + data.append(FP16x16 { mag: 288523, sign: false }); + data.append(FP16x16 { mag: 414929, sign: false }); + data.append(FP16x16 { mag: 259811, sign: true }); + data.append(FP16x16 { mag: 394274, sign: false }); + data.append(FP16x16 { mag: 314398, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp16x16/input_2.cairo b/tests/nodes/linear_fp16x16/input_2.cairo index b25e7df95..4644df303 100644 --- a/tests/nodes/linear_fp16x16/input_2.cairo +++ b/tests/nodes/linear_fp16x16/input_2.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 362925, sign: false }); - data.append(FP16x16 { mag: 184207, sign: true }); + data.append(FP16x16 { mag: 18363, sign: true }); + data.append(FP16x16 { mag: 80823, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp16x16/output_0.cairo b/tests/nodes/linear_fp16x16/output_0.cairo index b2d46e903..632d114e2 100644 --- a/tests/nodes/linear_fp16x16/output_0.cairo +++ b/tests/nodes/linear_fp16x16/output_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1039798, sign: false }); - data.append(FP16x16 { mag: 843374, sign: true }); + data.append(FP16x16 { mag: 467238, sign: false }); + data.append(FP16x16 { mag: 1035802, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp8x23.cairo b/tests/nodes/linear_fp8x23.cairo index bb3c07779..9882ed636 100644 --- a/tests/nodes/linear_fp8x23.cairo +++ b/tests/nodes/linear_fp8x23.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/linear_fp8x23/input_0.cairo b/tests/nodes/linear_fp8x23/input_0.cairo index a68c9965f..9b9eba46b 100644 --- a/tests/nodes/linear_fp8x23/input_0.cairo +++ b/tests/nodes/linear_fp8x23/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 11919257, sign: false }); - data.append(FP8x23 { mag: 4840922, sign: false }); - data.append(FP8x23 { mag: 47921258, sign: false }); + data.append(FP8x23 { mag: 55312980, sign: false }); + data.append(FP8x23 { mag: 3192975, sign: true }); + data.append(FP8x23 { mag: 30534236, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp8x23/input_1.cairo b/tests/nodes/linear_fp8x23/input_1.cairo index ca5ac8c52..cf8be8bd6 100644 --- a/tests/nodes/linear_fp8x23/input_1.cairo +++ b/tests/nodes/linear_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,11 +9,11 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 52315818, sign: false }); - data.append(FP8x23 { mag: 2320148, sign: false }); - data.append(FP8x23 { mag: 22884193, sign: true }); - data.append(FP8x23 { mag: 21749272, sign: false }); - data.append(FP8x23 { mag: 29980322, sign: true }); - data.append(FP8x23 { mag: 34817611, sign: true }); + data.append(FP8x23 { mag: 53179762, sign: false }); + data.append(FP8x23 { mag: 34716255, sign: false }); + data.append(FP8x23 { mag: 6923297, sign: false }); + data.append(FP8x23 { mag: 2365083, sign: true }); + data.append(FP8x23 { mag: 35449593, sign: true }); + data.append(FP8x23 { mag: 46253431, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp8x23/input_2.cairo b/tests/nodes/linear_fp8x23/input_2.cairo index a2bc072da..5d5fb51cd 100644 --- a/tests/nodes/linear_fp8x23/input_2.cairo +++ b/tests/nodes/linear_fp8x23/input_2.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8723741, sign: false }); - data.append(FP8x23 { mag: 54398803, sign: false }); + data.append(FP8x23 { mag: 57085261, sign: false }); + data.append(FP8x23 { mag: 10010743, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_fp8x23/output_0.cairo b/tests/nodes/linear_fp8x23/output_0.cairo index 2211e90af..7548732ae 100644 --- a/tests/nodes/linear_fp8x23/output_0.cairo +++ b/tests/nodes/linear_fp8x23/output_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 46332113, sign: true }); - data.append(FP8x23 { mag: 130900238, sign: true }); + data.append(FP8x23 { mag: 419729535, sign: false }); + data.append(FP8x23 { mag: 176269923, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i32.cairo b/tests/nodes/linear_i32.cairo index a90ccb36c..88b62cc66 100644 --- a/tests/nodes/linear_i32.cairo +++ b/tests/nodes/linear_i32.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use orion::operators::nn::NNTrait; -use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::I32NN; +use orion::operators::nn::NNTrait; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::numbers::FixedTrait; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/linear_i32/input_0.cairo b/tests/nodes/linear_i32/input_0.cairo index 2d264809a..7335b290a 100644 --- a/tests/nodes/linear_i32/input_0.cairo +++ b/tests/nodes/linear_i32/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(5); + data.append(-1); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i32/input_1.cairo b/tests/nodes/linear_i32/input_1.cairo index d1d66fc4f..95adb0e3d 100644 --- a/tests/nodes/linear_i32/input_1.cairo +++ b/tests/nodes/linear_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); + data.append(6); + data.append(6); + data.append(5); + data.append(-3); + data.append(6); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i32/input_2.cairo b/tests/nodes/linear_i32/input_2.cairo index 861e5f245..92739b3e9 100644 --- a/tests/nodes/linear_i32/input_2.cairo +++ b/tests/nodes/linear_i32/input_2.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(-3); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i32/output_0.cairo b/tests/nodes/linear_i32/output_0.cairo index 1575672d1..aa8979ac7 100644 --- a/tests/nodes/linear_i32/output_0.cairo +++ b/tests/nodes/linear_i32/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 36, sign: true }); + data.append(36); + data.append(-9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i8.cairo b/tests/nodes/linear_i8.cairo index 7c67bc12c..d5d5993b9 100644 --- a/tests/nodes/linear_i8.cairo +++ b/tests/nodes/linear_i8.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; +use orion::operators::tensor::I8TensorPartialEq; use orion::numbers::FixedTrait; use orion::operators::nn::I8NN; -use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/linear_i8/input_0.cairo b/tests/nodes/linear_i8/input_0.cairo index 0db917d17..3fc062079 100644 --- a/tests/nodes/linear_i8/input_0.cairo +++ b/tests/nodes/linear_i8/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); + data.append(-2); + data.append(-3); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i8/input_1.cairo b/tests/nodes/linear_i8/input_1.cairo index d79fb3b74..1b706fda1 100644 --- a/tests/nodes/linear_i8/input_1.cairo +++ b/tests/nodes/linear_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(0); + data.append(0); + data.append(-3); + data.append(-2); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i8/input_2.cairo b/tests/nodes/linear_i8/input_2.cairo index 77ee2f571..9ca7010e7 100644 --- a/tests/nodes/linear_i8/input_2.cairo +++ b/tests/nodes/linear_i8/input_2.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_i8/output_0.cairo b/tests/nodes/linear_i8/output_0.cairo index fc3374e64..89df3f590 100644 --- a/tests/nodes/linear_i8/output_0.cairo +++ b/tests/nodes/linear_i8/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 7, sign: false }); + data.append(2); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_u32.cairo b/tests/nodes/linear_u32.cairo index 3e3397fbc..fa65c05cb 100644 --- a/tests/nodes/linear_u32.cairo +++ b/tests/nodes/linear_u32.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::U32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; use orion::operators::nn::U32NN; -use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/linear_u32/input_0.cairo b/tests/nodes/linear_u32/input_0.cairo index 7db1bbbe0..083dff811 100644 --- a/tests/nodes/linear_u32/input_0.cairo +++ b/tests/nodes/linear_u32/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); data.append(0); - data.append(4); - data.append(5); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_u32/input_1.cairo b/tests/nodes/linear_u32/input_1.cairo index 6a84bb9f3..c5d4cb66a 100644 --- a/tests/nodes/linear_u32/input_1.cairo +++ b/tests/nodes/linear_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,11 +8,11 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(4); + data.append(3); data.append(4); + data.append(5); + data.append(3); + data.append(1); data.append(4); - data.append(2); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_u32/input_2.cairo b/tests/nodes/linear_u32/input_2.cairo index 6a2177e75..ce98c34a0 100644 --- a/tests/nodes/linear_u32/input_2.cairo +++ b/tests/nodes/linear_u32/input_2.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(5); - data.append(3); + data.append(4); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/linear_u32/output_0.cairo b/tests/nodes/linear_u32/output_0.cairo index 4c5134a8e..609ec3dce 100644 --- a/tests/nodes/linear_u32/output_0.cairo +++ b/tests/nodes/linear_u32/output_0.cairo @@ -1,13 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(41); - data.append(11); + data.append(17); + data.append(15); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/log_fp16x16.cairo b/tests/nodes/log_fp16x16.cairo index c44a3f057..202a75eeb 100644 --- a/tests/nodes/log_fp16x16.cairo +++ b/tests/nodes/log_fp16x16.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/log_fp16x16/input_0.cairo b/tests/nodes/log_fp16x16/input_0.cairo index 2383c9a1b..9f8a2715a 100644 --- a/tests/nodes/log_fp16x16/input_0.cairo +++ b/tests/nodes/log_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2469811, sign: false }); - data.append(FP16x16 { mag: 841664, sign: false }); - data.append(FP16x16 { mag: 6861780, sign: false }); - data.append(FP16x16 { mag: 3475757, sign: false }); + data.append(FP16x16 { mag: 1614287, sign: false }); + data.append(FP16x16 { mag: 3665868, sign: false }); + data.append(FP16x16 { mag: 4581929, sign: false }); + data.append(FP16x16 { mag: 1000635, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/log_fp16x16/output_0.cairo b/tests/nodes/log_fp16x16/output_0.cairo index 371e3a7c9..94a808969 100644 --- a/tests/nodes/log_fp16x16/output_0.cairo +++ b/tests/nodes/log_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 237849, sign: false }); - data.append(FP16x16 { mag: 167299, sign: false }); - data.append(FP16x16 { mag: 304815, sign: false }); - data.append(FP16x16 { mag: 260241, sign: false }); + data.append(FP16x16 { mag: 209980, sign: false }); + data.append(FP16x16 { mag: 263731, sign: false }); + data.append(FP16x16 { mag: 278349, sign: false }); + data.append(FP16x16 { mag: 178637, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/log_fp8x23.cairo b/tests/nodes/log_fp8x23.cairo index 929d6bd6b..5dc0b2e3c 100644 --- a/tests/nodes/log_fp8x23.cairo +++ b/tests/nodes/log_fp8x23.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/log_fp8x23/input_0.cairo b/tests/nodes/log_fp8x23/input_0.cairo index cb7acfe75..e5e595ec3 100644 --- a/tests/nodes/log_fp8x23/input_0.cairo +++ b/tests/nodes/log_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 193551844, sign: false }); - data.append(FP8x23 { mag: 202689108, sign: false }); - data.append(FP8x23 { mag: 535508695, sign: false }); - data.append(FP8x23 { mag: 235726980, sign: false }); + data.append(FP8x23 { mag: 339939403, sign: false }); + data.append(FP8x23 { mag: 689657480, sign: false }); + data.append(FP8x23 { mag: 360525458, sign: false }); + data.append(FP8x23 { mag: 745926917, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/log_fp8x23/output_0.cairo b/tests/nodes/log_fp8x23/output_0.cairo index 0a850c105..e97d3a606 100644 --- a/tests/nodes/log_fp8x23/output_0.cairo +++ b/tests/nodes/log_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 26329079, sign: false }); - data.append(FP8x23 { mag: 26716028, sign: false }); - data.append(FP8x23 { mag: 34865928, sign: false }); - data.append(FP8x23 { mag: 27982715, sign: false }); + data.append(FP8x23 { mag: 31053727, sign: false }); + data.append(FP8x23 { mag: 36988061, sign: false }); + data.append(FP8x23 { mag: 31546937, sign: false }); + data.append(FP8x23 { mag: 37646001, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp16x16_axis_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_0.cairo index 4456feaa1..71819cf55 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_0.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; -use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::NNTrait; +use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo index 95d243629..0893d5385 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_0/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 174259, sign: false }); - data.append(FP16x16 { mag: 162527, sign: false }); - data.append(FP16x16 { mag: 121375, sign: false }); - data.append(FP16x16 { mag: 140007, sign: true }); + data.append(FP16x16 { mag: 71864, sign: true }); + data.append(FP16x16 { mag: 148859, sign: true }); + data.append(FP16x16 { mag: 72361, sign: true }); + data.append(FP16x16 { mag: 31682, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo index b94ea8b48..65ed6ebf3 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_0/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 24179, sign: true }); - data.append(FP16x16 { mag: 644, sign: true }); - data.append(FP16x16 { mag: 77063, sign: true }); - data.append(FP16x16 { mag: 303179, sign: true }); + data.append(FP16x16 { mag: 45178, sign: true }); + data.append(FP16x16 { mag: 127314, sign: true }); + data.append(FP16x16 { mag: 45674, sign: true }); + data.append(FP16x16 { mag: 10137, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp16x16_axis_1.cairo b/tests/nodes/logsoftmax_fp16x16_axis_1.cairo index aba224dad..34eb36e61 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_1.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; -use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::NNTrait; +use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo index 750cf9f0f..c5a780cd1 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131507, sign: true }); - data.append(FP16x16 { mag: 114767, sign: true }); - data.append(FP16x16 { mag: 44400, sign: true }); - data.append(FP16x16 { mag: 107661, sign: false }); + data.append(FP16x16 { mag: 55516, sign: true }); + data.append(FP16x16 { mag: 94686, sign: false }); + data.append(FP16x16 { mag: 154182, sign: false }); + data.append(FP16x16 { mag: 54374, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo b/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo index 2a1abf33b..aa10eed4f 100644 --- a/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo +++ b/tests/nodes/logsoftmax_fp16x16_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 54329, sign: true }); - data.append(FP16x16 { mag: 37588, sign: true }); - data.append(FP16x16 { mag: 158203, sign: true }); - data.append(FP16x16 { mag: 6141, sign: true }); + data.append(FP16x16 { mag: 156513, sign: true }); + data.append(FP16x16 { mag: 6310, sign: true }); + data.append(FP16x16 { mag: 2664, sign: true }); + data.append(FP16x16 { mag: 211221, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp8x23_axis_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_0.cairo index 75f51a63c..65e8d1b21 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_0.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; +use orion::operators::nn::NNTrait; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo index 0cb3f524b..2543f0217 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_0/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 13176366, sign: false }); - data.append(FP8x23 { mag: 22787205, sign: true }); - data.append(FP8x23 { mag: 3037628, sign: false }); - data.append(FP8x23 { mag: 15135492, sign: true }); + data.append(FP8x23 { mag: 21668022, sign: true }); + data.append(FP8x23 { mag: 1186402, sign: false }); + data.append(FP8x23 { mag: 16768523, sign: true }); + data.append(FP8x23 { mag: 20022676, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo index ecea2a496..3712018c9 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_0/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 2191868, sign: true }); - data.append(FP8x23 { mag: 10484172, sign: true }); - data.append(FP8x23 { mag: 12330606, sign: true }); - data.append(FP8x23 { mag: 2832460, sign: true }); + data.append(FP8x23 { mag: 8617021, sign: true }); + data.append(FP8x23 { mag: 19680507, sign: true }); + data.append(FP8x23 { mag: 3717522, sign: true }); + data.append(FP8x23 { mag: 844233, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp8x23_axis_1.cairo b/tests/nodes/logsoftmax_fp8x23_axis_1.cairo index 3d66edbd7..94ae4ce07 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_1.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; +use orion::operators::nn::NNTrait; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo index e500d0f30..c791c76c0 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 14864085, sign: false }); - data.append(FP8x23 { mag: 748527, sign: false }); - data.append(FP8x23 { mag: 13216170, sign: false }); - data.append(FP8x23 { mag: 10738967, sign: true }); + data.append(FP8x23 { mag: 13710717, sign: true }); + data.append(FP8x23 { mag: 10127369, sign: true }); + data.append(FP8x23 { mag: 16322929, sign: true }); + data.append(FP8x23 { mag: 5550537, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo b/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo index c17cd7403..efa77ce44 100644 --- a/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo +++ b/tests/nodes/logsoftmax_fp8x23_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1430064, sign: true }); - data.append(FP8x23 { mag: 15545622, sign: true }); - data.append(FP8x23 { mag: 469121, sign: true }); - data.append(FP8x23 { mag: 24424260, sign: true }); + data.append(FP8x23 { mag: 7796112, sign: true }); + data.append(FP8x23 { mag: 4212765, sign: true }); + data.append(FP8x23 { mag: 12822736, sign: true }); + data.append(FP8x23 { mag: 2050343, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_1d.cairo b/tests/nodes/matmul_fp16x16_1d.cairo index 2aaa7425e..0ae4502cf 100644 --- a/tests/nodes/matmul_fp16x16_1d.cairo +++ b/tests/nodes/matmul_fp16x16_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp16x16_1d/input_0.cairo b/tests/nodes/matmul_fp16x16_1d/input_0.cairo index 308e2fc18..2d1804d7b 100644 --- a/tests/nodes/matmul_fp16x16_1d/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_1d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +10,6 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_1d/input_1.cairo b/tests/nodes/matmul_fp16x16_1d/input_1.cairo index d73613662..e42f7e810 100644 --- a/tests/nodes/matmul_fp16x16_1d/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_1d/input_1.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_1d/output_0.cairo b/tests/nodes/matmul_fp16x16_1d/output_0.cairo index e6161d2f3..747f05de2 100644 --- a/tests/nodes/matmul_fp16x16_1d/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_1d/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 458752, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_1x2.cairo b/tests/nodes/matmul_fp16x16_1x2.cairo index a018242cd..05fb96808 100644 --- a/tests/nodes/matmul_fp16x16_1x2.cairo +++ b/tests/nodes/matmul_fp16x16_1x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp16x16_1x2/input_0.cairo b/tests/nodes/matmul_fp16x16_1x2/input_0.cairo index 56451ce73..9a8de084c 100644 --- a/tests/nodes/matmul_fp16x16_1x2/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_1x2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_1x2/input_1.cairo b/tests/nodes/matmul_fp16x16_1x2/input_1.cairo index 8866c3fe4..577654bcd 100644 --- a/tests/nodes/matmul_fp16x16_1x2/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_1x2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_1x2/output_0.cairo b/tests/nodes/matmul_fp16x16_1x2/output_0.cairo index bb16c27aa..def1e9307 100644 --- a/tests/nodes/matmul_fp16x16_1x2/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_1x2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,6 +9,6 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_2x1.cairo b/tests/nodes/matmul_fp16x16_2x1.cairo index 54924d306..eb424617e 100644 --- a/tests/nodes/matmul_fp16x16_2x1.cairo +++ b/tests/nodes/matmul_fp16x16_2x1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp16x16_2x1/input_0.cairo b/tests/nodes/matmul_fp16x16_2x1/input_0.cairo index 8f6c1e425..6ca4ce6f2 100644 --- a/tests/nodes/matmul_fp16x16_2x1/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_2x1/input_1.cairo b/tests/nodes/matmul_fp16x16_2x1/input_1.cairo index 0e2b28d46..c8ddc358f 100644 --- a/tests/nodes/matmul_fp16x16_2x1/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_2x1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_2x1/output_0.cairo b/tests/nodes/matmul_fp16x16_2x1/output_0.cairo index eb180786a..c37292865 100644 --- a/tests/nodes/matmul_fp16x16_2x1/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_2x2.cairo b/tests/nodes/matmul_fp16x16_2x2.cairo index 5d9ad3bee..8821a6d08 100644 --- a/tests/nodes/matmul_fp16x16_2x2.cairo +++ b/tests/nodes/matmul_fp16x16_2x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp16x16_2x2/input_0.cairo b/tests/nodes/matmul_fp16x16_2x2/input_0.cairo index 622cae9d8..7d09668a2 100644 --- a/tests/nodes/matmul_fp16x16_2x2/input_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_2x2/input_1.cairo b/tests/nodes/matmul_fp16x16_2x2/input_1.cairo index 73dee7735..10ef8f5a9 100644 --- a/tests/nodes/matmul_fp16x16_2x2/input_1.cairo +++ b/tests/nodes/matmul_fp16x16_2x2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp16x16_2x2/output_0.cairo b/tests/nodes/matmul_fp16x16_2x2/output_0.cairo index 65342c3e7..5f9ab986e 100644 --- a/tests/nodes/matmul_fp16x16_2x2/output_0.cairo +++ b/tests/nodes/matmul_fp16x16_2x2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorDiv}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_1d.cairo b/tests/nodes/matmul_fp8x23_1d.cairo index 4e70adfa2..4061730d6 100644 --- a/tests/nodes/matmul_fp8x23_1d.cairo +++ b/tests/nodes/matmul_fp8x23_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp8x23_1d/input_0.cairo b/tests/nodes/matmul_fp8x23_1d/input_0.cairo index e3c2f2751..9c321435e 100644 --- a/tests/nodes/matmul_fp8x23_1d/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_1d/input_0.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_1d/input_1.cairo b/tests/nodes/matmul_fp8x23_1d/input_1.cairo index 8fdf2b933..8fd0df22b 100644 --- a/tests/nodes/matmul_fp8x23_1d/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_1d/input_1.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_1d/output_0.cairo b/tests/nodes/matmul_fp8x23_1d/output_0.cairo index 13ebba401..48b2b150d 100644 --- a/tests/nodes/matmul_fp8x23_1d/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_1d/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_1x2.cairo b/tests/nodes/matmul_fp8x23_1x2.cairo index 0bc4e3296..133fa03c9 100644 --- a/tests/nodes/matmul_fp8x23_1x2.cairo +++ b/tests/nodes/matmul_fp8x23_1x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp8x23_1x2/input_0.cairo b/tests/nodes/matmul_fp8x23_1x2/input_0.cairo index ee3117c1d..4869f6c4d 100644 --- a/tests/nodes/matmul_fp8x23_1x2/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_1x2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_1x2/input_1.cairo b/tests/nodes/matmul_fp8x23_1x2/input_1.cairo index afbfcc62b..383e0adcb 100644 --- a/tests/nodes/matmul_fp8x23_1x2/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_1x2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +10,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_1x2/output_0.cairo b/tests/nodes/matmul_fp8x23_1x2/output_0.cairo index 573b1d12b..26b2893e4 100644 --- a/tests/nodes/matmul_fp8x23_1x2/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_1x2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,6 +9,6 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_2x1.cairo b/tests/nodes/matmul_fp8x23_2x1.cairo index a770c3daf..80fd9dfc8 100644 --- a/tests/nodes/matmul_fp8x23_2x1.cairo +++ b/tests/nodes/matmul_fp8x23_2x1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp8x23_2x1/input_0.cairo b/tests/nodes/matmul_fp8x23_2x1/input_0.cairo index 1f4b836bf..e9932e3f5 100644 --- a/tests/nodes/matmul_fp8x23_2x1/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_2x1/input_1.cairo b/tests/nodes/matmul_fp8x23_2x1/input_1.cairo index 1976cc3ab..cdd3805b8 100644 --- a/tests/nodes/matmul_fp8x23_2x1/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_2x1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_2x1/output_0.cairo b/tests/nodes/matmul_fp8x23_2x1/output_0.cairo index d61218aa8..bcad056be 100644 --- a/tests/nodes/matmul_fp8x23_2x1/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_2x2.cairo b/tests/nodes/matmul_fp8x23_2x2.cairo index c797b19fa..4d8f7cd5a 100644 --- a/tests/nodes/matmul_fp8x23_2x2.cairo +++ b/tests/nodes/matmul_fp8x23_2x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_fp8x23_2x2/input_0.cairo b/tests/nodes/matmul_fp8x23_2x2/input_0.cairo index 7ab1057cb..9ac78c0b1 100644 --- a/tests/nodes/matmul_fp8x23_2x2/input_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x2/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_2x2/input_1.cairo b/tests/nodes/matmul_fp8x23_2x2/input_1.cairo index f330d31d5..91f9b61f9 100644 --- a/tests/nodes/matmul_fp8x23_2x2/input_1.cairo +++ b/tests/nodes/matmul_fp8x23_2x2/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_fp8x23_2x2/output_0.cairo b/tests/nodes/matmul_fp8x23_2x2/output_0.cairo index df051d978..4bb02e98f 100644 --- a/tests/nodes/matmul_fp8x23_2x2/output_0.cairo +++ b/tests/nodes/matmul_fp8x23_2x2/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorDiv}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_1d.cairo b/tests/nodes/matmul_i32_1d.cairo index 34d324ec3..d1f347847 100644 --- a/tests/nodes/matmul_i32_1d.cairo +++ b/tests/nodes/matmul_i32_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i32_1d/input_0.cairo b/tests/nodes/matmul_i32_1d/input_0.cairo index b63b5af03..659790348 100644 --- a/tests/nodes/matmul_i32_1d/input_0.cairo +++ b/tests/nodes/matmul_i32_1d/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 37, sign: true }); + data.append(-96); + data.append(50); + data.append(16); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_1d/input_1.cairo b/tests/nodes/matmul_i32_1d/input_1.cairo index 3ca3cdb7b..7d21fd141 100644 --- a/tests/nodes/matmul_i32_1d/input_1.cairo +++ b/tests/nodes/matmul_i32_1d/input_1.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 59, sign: true }); + data.append(23); + data.append(89); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_1d/output_0.cairo b/tests/nodes/matmul_i32_1d/output_0.cairo index 80be75229..189514154 100644 --- a/tests/nodes/matmul_i32_1d/output_0.cairo +++ b/tests/nodes/matmul_i32_1d/output_0.cairo @@ -1,13 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 681, sign: false }); + data.append(2338); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_1x2.cairo b/tests/nodes/matmul_i32_1x2.cairo index 52f857d00..9ad27ca8a 100644 --- a/tests/nodes/matmul_i32_1x2.cairo +++ b/tests/nodes/matmul_i32_1x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i32_1x2/input_0.cairo b/tests/nodes/matmul_i32_1x2/input_0.cairo index 25e032fe5..227d616f6 100644 --- a/tests/nodes/matmul_i32_1x2/input_0.cairo +++ b/tests/nodes/matmul_i32_1x2/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 36, sign: true }); + data.append(-86); + data.append(43); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_1x2/input_1.cairo b/tests/nodes/matmul_i32_1x2/input_1.cairo index 215101501..0c7111f33 100644 --- a/tests/nodes/matmul_i32_1x2/input_1.cairo +++ b/tests/nodes/matmul_i32_1x2/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 84, sign: false }); + data.append(125); + data.append(-59); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_1x2/output_0.cairo b/tests/nodes/matmul_i32_1x2/output_0.cairo index 62cb8bf2e..5ee7cb4f5 100644 --- a/tests/nodes/matmul_i32_1x2/output_0.cairo +++ b/tests/nodes/matmul_i32_1x2/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1524, sign: true }); + data.append(-13287); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_2x1.cairo b/tests/nodes/matmul_i32_2x1.cairo index 8c85513b7..00f56078c 100644 --- a/tests/nodes/matmul_i32_2x1.cairo +++ b/tests/nodes/matmul_i32_2x1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i32_2x1/input_0.cairo b/tests/nodes/matmul_i32_2x1/input_0.cairo index 54ce53dfc..261ca9e8e 100644 --- a/tests/nodes/matmul_i32_2x1/input_0.cairo +++ b/tests/nodes/matmul_i32_2x1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 37, sign: false }); + data.append(115); + data.append(-24); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_2x1/input_1.cairo b/tests/nodes/matmul_i32_2x1/input_1.cairo index a47a6b9a7..d20e2a5a3 100644 --- a/tests/nodes/matmul_i32_2x1/input_1.cairo +++ b/tests/nodes/matmul_i32_2x1/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 106, sign: false }); + data.append(-103); + data.append(-90); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_2x1/output_0.cairo b/tests/nodes/matmul_i32_2x1/output_0.cairo index 7c4540530..bd0612780 100644 --- a/tests/nodes/matmul_i32_2x1/output_0.cairo +++ b/tests/nodes/matmul_i32_2x1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5876, sign: true }); - data.append(i32 { mag: 5512, sign: false }); - data.append(i32 { mag: 4181, sign: true }); - data.append(i32 { mag: 3922, sign: false }); + data.append(-11845); + data.append(-10350); + data.append(2472); + data.append(2160); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_2x2.cairo b/tests/nodes/matmul_i32_2x2.cairo index c10cd13c0..6fe8fc3fd 100644 --- a/tests/nodes/matmul_i32_2x2.cairo +++ b/tests/nodes/matmul_i32_2x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i32_2x2/input_0.cairo b/tests/nodes/matmul_i32_2x2/input_0.cairo index c6aee9811..bd377e2c6 100644 --- a/tests/nodes/matmul_i32_2x2/input_0.cairo +++ b/tests/nodes/matmul_i32_2x2/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 53, sign: false }); + data.append(74); + data.append(-16); + data.append(61); + data.append(-21); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_2x2/input_1.cairo b/tests/nodes/matmul_i32_2x2/input_1.cairo index 07c822d28..3c7f91deb 100644 --- a/tests/nodes/matmul_i32_2x2/input_1.cairo +++ b/tests/nodes/matmul_i32_2x2/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 71, sign: false }); + data.append(33); + data.append(119); + data.append(15); + data.append(113); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i32_2x2/output_0.cairo b/tests/nodes/matmul_i32_2x2/output_0.cairo index abd8b7d39..a6cd5d3f5 100644 --- a/tests/nodes/matmul_i32_2x2/output_0.cairo +++ b/tests/nodes/matmul_i32_2x2/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5136, sign: true }); - data.append(i32 { mag: 15456, sign: false }); - data.append(i32 { mag: 3518, sign: true }); - data.append(i32 { mag: 10483, sign: false }); + data.append(2202); + data.append(6998); + data.append(1698); + data.append(4886); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_1d.cairo b/tests/nodes/matmul_i8_1d.cairo index 54b9367ba..5230f9209 100644 --- a/tests/nodes/matmul_i8_1d.cairo +++ b/tests/nodes/matmul_i8_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i8_1d/input_0.cairo b/tests/nodes/matmul_i8_1d/input_0.cairo index 832dda701..7a573dc03 100644 --- a/tests/nodes/matmul_i8_1d/input_0.cairo +++ b/tests/nodes/matmul_i8_1d/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(-2); + data.append(-2); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_1d/input_1.cairo b/tests/nodes/matmul_i8_1d/input_1.cairo index f81c184f8..26aebc810 100644 --- a/tests/nodes/matmul_i8_1d/input_1.cairo +++ b/tests/nodes/matmul_i8_1d/input_1.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(-2); + data.append(-1); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_1d/output_0.cairo b/tests/nodes/matmul_i8_1d/output_0.cairo index 5c69ebadf..616732847 100644 --- a/tests/nodes/matmul_i8_1d/output_0.cairo +++ b/tests/nodes/matmul_i8_1d/output_0.cairo @@ -1,13 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 14, sign: false }); + data.append(10); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_1x2.cairo b/tests/nodes/matmul_i8_1x2.cairo index 42eba3f7e..1fc145c95 100644 --- a/tests/nodes/matmul_i8_1x2.cairo +++ b/tests/nodes/matmul_i8_1x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i8_1x2/input_0.cairo b/tests/nodes/matmul_i8_1x2/input_0.cairo index c66e96b84..83b2e0d65 100644 --- a/tests/nodes/matmul_i8_1x2/input_0.cairo +++ b/tests/nodes/matmul_i8_1x2/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(-3); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_1x2/input_1.cairo b/tests/nodes/matmul_i8_1x2/input_1.cairo index dd53db9c3..f3d60871b 100644 --- a/tests/nodes/matmul_i8_1x2/input_1.cairo +++ b/tests/nodes/matmul_i8_1x2/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_1x2/output_0.cairo b/tests/nodes/matmul_i8_1x2/output_0.cairo index f56c64ae1..51981a943 100644 --- a/tests/nodes/matmul_i8_1x2/output_0.cairo +++ b/tests/nodes/matmul_i8_1x2/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); + data.append(-17); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_2x1.cairo b/tests/nodes/matmul_i8_2x1.cairo index 6e3f472ea..50a367412 100644 --- a/tests/nodes/matmul_i8_2x1.cairo +++ b/tests/nodes/matmul_i8_2x1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i8_2x1/input_0.cairo b/tests/nodes/matmul_i8_2x1/input_0.cairo index 2d30585eb..1ba418176 100644 --- a/tests/nodes/matmul_i8_2x1/input_0.cairo +++ b/tests/nodes/matmul_i8_2x1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(0); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_2x1/input_1.cairo b/tests/nodes/matmul_i8_2x1/input_1.cairo index f845cfe88..3da364e60 100644 --- a/tests/nodes/matmul_i8_2x1/input_1.cairo +++ b/tests/nodes/matmul_i8_2x1/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(0); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_2x1/output_0.cairo b/tests/nodes/matmul_i8_2x1/output_0.cairo index 3c1151535..e3c8a8f9f 100644 --- a/tests/nodes/matmul_i8_2x1/output_0.cairo +++ b/tests/nodes/matmul_i8_2x1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 9, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(-9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_2x2.cairo b/tests/nodes/matmul_i8_2x2.cairo index 3ba287daa..a88880d58 100644 --- a/tests/nodes/matmul_i8_2x2.cairo +++ b/tests/nodes/matmul_i8_2x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_i8_2x2/input_0.cairo b/tests/nodes/matmul_i8_2x2/input_0.cairo index 37e2a8e61..cf2051a8e 100644 --- a/tests/nodes/matmul_i8_2x2/input_0.cairo +++ b/tests/nodes/matmul_i8_2x2/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); + data.append(2); + data.append(3); + data.append(-3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_2x2/input_1.cairo b/tests/nodes/matmul_i8_2x2/input_1.cairo index 850f314e4..00f7bda36 100644 --- a/tests/nodes/matmul_i8_2x2/input_1.cairo +++ b/tests/nodes/matmul_i8_2x2/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(-1); + data.append(-1); + data.append(2); + data.append(-4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_i8_2x2/output_0.cairo b/tests/nodes/matmul_i8_2x2/output_0.cairo index b850fe611..532c41224 100644 --- a/tests/nodes/matmul_i8_2x2/output_0.cairo +++ b/tests/nodes/matmul_i8_2x2/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); + data.append(4); + data.append(-14); + data.append(11); + data.append(-13); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_1d.cairo b/tests/nodes/matmul_u32_1d.cairo index f3173367b..ae57d6e50 100644 --- a/tests/nodes/matmul_u32_1d.cairo +++ b/tests/nodes/matmul_u32_1d.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_u32_1d/input_0.cairo b/tests/nodes/matmul_u32_1d/input_0.cairo index 8c74691e3..64ee3bf05 100644 --- a/tests/nodes/matmul_u32_1d/input_0.cairo +++ b/tests/nodes/matmul_u32_1d/input_0.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(160); - data.append(50); - data.append(195); + data.append(184); + data.append(244); + data.append(49); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_1d/input_1.cairo b/tests/nodes/matmul_u32_1d/input_1.cairo index 52fb2fc9f..df7267f29 100644 --- a/tests/nodes/matmul_u32_1d/input_1.cairo +++ b/tests/nodes/matmul_u32_1d/input_1.cairo @@ -1,14 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(15); - data.append(90); - data.append(53); + data.append(45); + data.append(178); + data.append(105); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_1d/output_0.cairo b/tests/nodes/matmul_u32_1d/output_0.cairo index 4b9db64d3..60b599a48 100644 --- a/tests/nodes/matmul_u32_1d/output_0.cairo +++ b/tests/nodes/matmul_u32_1d/output_0.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(17235); + data.append(56857); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_1x2.cairo b/tests/nodes/matmul_u32_1x2.cairo index 033b31c35..cb582aa3c 100644 --- a/tests/nodes/matmul_u32_1x2.cairo +++ b/tests/nodes/matmul_u32_1x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_u32_1x2/input_0.cairo b/tests/nodes/matmul_u32_1x2/input_0.cairo index 8f45ef5a6..a96df492a 100644 --- a/tests/nodes/matmul_u32_1x2/input_0.cairo +++ b/tests/nodes/matmul_u32_1x2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(38); - data.append(186); + data.append(204); + data.append(167); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_1x2/input_1.cairo b/tests/nodes/matmul_u32_1x2/input_1.cairo index 50c61c6fb..e429fc357 100644 --- a/tests/nodes/matmul_u32_1x2/input_1.cairo +++ b/tests/nodes/matmul_u32_1x2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(192); - data.append(48); + data.append(179); + data.append(76); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_1x2/output_0.cairo b/tests/nodes/matmul_u32_1x2/output_0.cairo index 2da232334..e3b6627c5 100644 --- a/tests/nodes/matmul_u32_1x2/output_0.cairo +++ b/tests/nodes/matmul_u32_1x2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,6 +8,6 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(16224); + data.append(49208); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_2x1.cairo b/tests/nodes/matmul_u32_2x1.cairo index 33f410332..b7d44036c 100644 --- a/tests/nodes/matmul_u32_2x1.cairo +++ b/tests/nodes/matmul_u32_2x1.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_u32_2x1/input_0.cairo b/tests/nodes/matmul_u32_2x1/input_0.cairo index f06a7820f..3d176b2d4 100644 --- a/tests/nodes/matmul_u32_2x1/input_0.cairo +++ b/tests/nodes/matmul_u32_2x1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(36); - data.append(127); + data.append(104); + data.append(169); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_2x1/input_1.cairo b/tests/nodes/matmul_u32_2x1/input_1.cairo index 8d178126c..98f62f818 100644 --- a/tests/nodes/matmul_u32_2x1/input_1.cairo +++ b/tests/nodes/matmul_u32_2x1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(184); - data.append(114); + data.append(118); + data.append(37); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_2x1/output_0.cairo b/tests/nodes/matmul_u32_2x1/output_0.cairo index e40d583e9..9b9591e02 100644 --- a/tests/nodes/matmul_u32_2x1/output_0.cairo +++ b/tests/nodes/matmul_u32_2x1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(6624); - data.append(4104); - data.append(23368); - data.append(14478); + data.append(12272); + data.append(3848); + data.append(19942); + data.append(6253); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_2x2.cairo b/tests/nodes/matmul_u32_2x2.cairo index c3da2d556..c77f429ca 100644 --- a/tests/nodes/matmul_u32_2x2.cairo +++ b/tests/nodes/matmul_u32_2x2.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/matmul_u32_2x2/input_0.cairo b/tests/nodes/matmul_u32_2x2/input_0.cairo index 850fe9254..5929a9588 100644 --- a/tests/nodes/matmul_u32_2x2/input_0.cairo +++ b/tests/nodes/matmul_u32_2x2/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(66); - data.append(225); - data.append(132); - data.append(40); + data.append(162); + data.append(101); + data.append(130); + data.append(82); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_2x2/input_1.cairo b/tests/nodes/matmul_u32_2x2/input_1.cairo index 06dc41064..7c2581c10 100644 --- a/tests/nodes/matmul_u32_2x2/input_1.cairo +++ b/tests/nodes/matmul_u32_2x2/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(153); - data.append(79); - data.append(80); - data.append(131); + data.append(149); + data.append(196); + data.append(137); + data.append(132); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/matmul_u32_2x2/output_0.cairo b/tests/nodes/matmul_u32_2x2/output_0.cairo index fbf2fbb15..9183714e6 100644 --- a/tests/nodes/matmul_u32_2x2/output_0.cairo +++ b/tests/nodes/matmul_u32_2x2/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorDiv}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(28098); - data.append(34689); - data.append(23396); - data.append(15668); + data.append(37975); + data.append(45084); + data.append(30604); + data.append(36304); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo b/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo index d55e44ec9..a5cf70e93 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_0.cairo b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_0.cairo index 778aab8a3..60cdbf533 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_1.cairo b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_1.cairo index baf18ebfe..aae61d413 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_2.cairo b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_2.cairo index ea0a758aa..17a13fcf2 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/max_fp16x16_broadcast_three_tensors/output_0.cairo b/tests/nodes/max_fp16x16_broadcast_three_tensors/output_0.cairo index bc9139e4e..0baf287a7 100644 --- a/tests/nodes/max_fp16x16_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo b/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo index 1666abaa3..fd0e226f5 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp16x16_broadcast_two_tensors/input_0.cairo b/tests/nodes/max_fp16x16_broadcast_two_tensors/input_0.cairo index 24e8f8b8e..c4fcf921e 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_broadcast_two_tensors/input_1.cairo b/tests/nodes/max_fp16x16_broadcast_two_tensors/input_1.cairo index d072d75b1..da0ff4a69 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_broadcast_two_tensors/output_0.cairo b/tests/nodes/max_fp16x16_broadcast_two_tensors/output_0.cairo index 484b2249a..9a48663ff 100644 --- a/tests/nodes/max_fp16x16_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_broadcast_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_three_tensors.cairo b/tests/nodes/max_fp16x16_three_tensors.cairo index 7a26e6ead..b25879b93 100644 --- a/tests/nodes/max_fp16x16_three_tensors.cairo +++ b/tests/nodes/max_fp16x16_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp16x16_three_tensors/input_0.cairo b/tests/nodes/max_fp16x16_three_tensors/input_0.cairo index 3d48611ef..0f4292598 100644 --- a/tests/nodes/max_fp16x16_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_three_tensors/input_1.cairo b/tests/nodes/max_fp16x16_three_tensors/input_1.cairo index ac3dc7f2f..4ac193840 100644 --- a/tests/nodes/max_fp16x16_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_three_tensors/input_2.cairo b/tests/nodes/max_fp16x16_three_tensors/input_2.cairo index 1e43ebad3..ab6e90bad 100644 --- a/tests/nodes/max_fp16x16_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,31 +10,31 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/max_fp16x16_three_tensors/output_0.cairo b/tests/nodes/max_fp16x16_three_tensors/output_0.cairo index 04516ebdc..4cb8a3ab2 100644 --- a/tests/nodes/max_fp16x16_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,6 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); @@ -25,18 +17,25 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_two_tensors.cairo b/tests/nodes/max_fp16x16_two_tensors.cairo index 45e3dae90..330d8e154 100644 --- a/tests/nodes/max_fp16x16_two_tensors.cairo +++ b/tests/nodes/max_fp16x16_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp16x16_two_tensors/input_0.cairo b/tests/nodes/max_fp16x16_two_tensors/input_0.cairo index fcd9192a7..b5b9f42a1 100644 --- a/tests/nodes/max_fp16x16_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp16x16_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_two_tensors/input_1.cairo b/tests/nodes/max_fp16x16_two_tensors/input_1.cairo index 6c66ba133..64960d3ce 100644 --- a/tests/nodes/max_fp16x16_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp16x16_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp16x16_two_tensors/output_0.cairo b/tests/nodes/max_fp16x16_two_tensors/output_0.cairo index e931d954e..fb43c387b 100644 --- a/tests/nodes/max_fp16x16_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp16x16_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo b/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo index d419434a8..1ca1d0b4a 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_0.cairo b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_0.cairo index c52eb203d..2292b717c 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_1.cairo b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_1.cairo index f8a80f8f8..e5a7d6537 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_2.cairo b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_2.cairo index e147b7161..574086314 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,6 +9,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_broadcast_three_tensors/output_0.cairo b/tests/nodes/max_fp8x23_broadcast_three_tensors/output_0.cairo index dac992481..f33dc9c82 100644 --- a/tests/nodes/max_fp8x23_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo b/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo index ba4939674..1628ee7e7 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp8x23_broadcast_two_tensors/input_0.cairo b/tests/nodes/max_fp8x23_broadcast_two_tensors/input_0.cairo index a0b2eb92d..6675dd445 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_broadcast_two_tensors/input_1.cairo b/tests/nodes/max_fp8x23_broadcast_two_tensors/input_1.cairo index 933377541..6477e1e74 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_broadcast_two_tensors/output_0.cairo b/tests/nodes/max_fp8x23_broadcast_two_tensors/output_0.cairo index c2a761925..8ab56c1ac 100644 --- a/tests/nodes/max_fp8x23_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_broadcast_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_three_tensors.cairo b/tests/nodes/max_fp8x23_three_tensors.cairo index 10561482b..1da99bc48 100644 --- a/tests/nodes/max_fp8x23_three_tensors.cairo +++ b/tests/nodes/max_fp8x23_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp8x23_three_tensors/input_0.cairo b/tests/nodes/max_fp8x23_three_tensors/input_0.cairo index bbbb1044b..12b4a7489 100644 --- a/tests/nodes/max_fp8x23_three_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_three_tensors/input_1.cairo b/tests/nodes/max_fp8x23_three_tensors/input_1.cairo index 73e643666..10f27275b 100644 --- a/tests/nodes/max_fp8x23_three_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_three_tensors/input_2.cairo b/tests/nodes/max_fp8x23_three_tensors/input_2.cairo index 121df7c0b..08cb36e6b 100644 --- a/tests/nodes/max_fp8x23_three_tensors/input_2.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_three_tensors/output_0.cairo b/tests/nodes/max_fp8x23_three_tensors/output_0.cairo index 5eb68ff1b..df48de706 100644 --- a/tests/nodes/max_fp8x23_three_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_two_tensors.cairo b/tests/nodes/max_fp8x23_two_tensors.cairo index 4c8b5d68a..f9c90bffb 100644 --- a/tests/nodes/max_fp8x23_two_tensors.cairo +++ b/tests/nodes/max_fp8x23_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_fp8x23_two_tensors/input_0.cairo b/tests/nodes/max_fp8x23_two_tensors/input_0.cairo index 084c015c4..e71e1194f 100644 --- a/tests/nodes/max_fp8x23_two_tensors/input_0.cairo +++ b/tests/nodes/max_fp8x23_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_two_tensors/input_1.cairo b/tests/nodes/max_fp8x23_two_tensors/input_1.cairo index 2220ef4d0..0d90d786a 100644 --- a/tests/nodes/max_fp8x23_two_tensors/input_1.cairo +++ b/tests/nodes/max_fp8x23_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_fp8x23_two_tensors/output_0.cairo b/tests/nodes/max_fp8x23_two_tensors/output_0.cairo index e82faa6dc..40932f6b5 100644 --- a/tests/nodes/max_fp8x23_two_tensors/output_0.cairo +++ b/tests/nodes/max_fp8x23_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_broadcast_three_tensors.cairo b/tests/nodes/max_i32_broadcast_three_tensors.cairo index 188dc0842..0b394a7ca 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i32_broadcast_three_tensors/input_0.cairo b/tests/nodes/max_i32_broadcast_three_tensors/input_0.cairo index 807141e20..291d9cd42 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_broadcast_three_tensors/input_1.cairo b/tests/nodes/max_i32_broadcast_three_tensors/input_1.cairo index 8764c5239..caf1fa1a2 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(4); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_broadcast_three_tensors/input_2.cairo b/tests/nodes/max_i32_broadcast_three_tensors/input_2.cairo index ce77c4586..2fb894e4b 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_broadcast_three_tensors/output_0.cairo b/tests/nodes/max_i32_broadcast_three_tensors/output_0.cairo index 386aa9a01..fdae2fe19 100644 --- a/tests/nodes/max_i32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_i32_broadcast_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(4); + data.append(4); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_broadcast_two_tensors.cairo b/tests/nodes/max_i32_broadcast_two_tensors.cairo index a6a534854..9a7110728 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i32_broadcast_two_tensors/input_0.cairo b/tests/nodes/max_i32_broadcast_two_tensors/input_0.cairo index 22c769b82..b0d4dd9b7 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(4); + data.append(0); + data.append(2); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_broadcast_two_tensors/input_1.cairo b/tests/nodes/max_i32_broadcast_two_tensors/input_1.cairo index 7ce31b724..dc64d2699 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(3); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_broadcast_two_tensors/output_0.cairo b/tests/nodes/max_i32_broadcast_two_tensors/output_0.cairo index 3f5ecdd31..9a02c9e9c 100644 --- a/tests/nodes/max_i32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_i32_broadcast_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(4); + data.append(0); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_three_tensors.cairo b/tests/nodes/max_i32_three_tensors.cairo index f88934b30..2f307f8d7 100644 --- a/tests/nodes/max_i32_three_tensors.cairo +++ b/tests/nodes/max_i32_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i32_three_tensors/input_0.cairo b/tests/nodes/max_i32_three_tensors/input_0.cairo index 6a6d72350..6e3577e59 100644 --- a/tests/nodes/max_i32_three_tensors/input_0.cairo +++ b/tests/nodes/max_i32_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(2); + data.append(2); + data.append(1); + data.append(5); + data.append(0); + data.append(4); + data.append(4); + data.append(4); + data.append(0); + data.append(5); + data.append(0); + data.append(3); + data.append(1); + data.append(5); + data.append(5); + data.append(0); + data.append(1); + data.append(4); + data.append(1); + data.append(0); + data.append(4); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(3); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_three_tensors/input_1.cairo b/tests/nodes/max_i32_three_tensors/input_1.cairo index 1941030b1..0f422aeb7 100644 --- a/tests/nodes/max_i32_three_tensors/input_1.cairo +++ b/tests/nodes/max_i32_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(2); + data.append(2); + data.append(4); + data.append(1); + data.append(0); + data.append(1); + data.append(0); + data.append(2); + data.append(4); + data.append(5); + data.append(3); + data.append(2); + data.append(4); + data.append(1); + data.append(5); + data.append(2); + data.append(4); + data.append(3); + data.append(0); + data.append(0); + data.append(0); + data.append(2); + data.append(0); + data.append(3); + data.append(1); + data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_three_tensors/input_2.cairo b/tests/nodes/max_i32_three_tensors/input_2.cairo index 6eb3170b0..010f35f0f 100644 --- a/tests/nodes/max_i32_three_tensors/input_2.cairo +++ b/tests/nodes/max_i32_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(5); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(5); + data.append(4); + data.append(4); + data.append(4); + data.append(4); + data.append(2); + data.append(0); + data.append(1); + data.append(0); + data.append(3); + data.append(1); + data.append(3); + data.append(1); + data.append(3); + data.append(2); + data.append(2); + data.append(2); + data.append(4); + data.append(0); + data.append(5); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_three_tensors/output_0.cairo b/tests/nodes/max_i32_three_tensors/output_0.cairo index 2272f495e..ae2088c15 100644 --- a/tests/nodes/max_i32_three_tensors/output_0.cairo +++ b/tests/nodes/max_i32_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(5); + data.append(2); + data.append(4); + data.append(5); + data.append(0); + data.append(4); + data.append(5); + data.append(4); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(4); + data.append(5); + data.append(5); + data.append(3); + data.append(4); + data.append(4); + data.append(1); + data.append(3); + data.append(4); + data.append(2); + data.append(2); + data.append(4); + data.append(1); + data.append(5); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_two_tensors.cairo b/tests/nodes/max_i32_two_tensors.cairo index 3dbe292df..3dcae620e 100644 --- a/tests/nodes/max_i32_two_tensors.cairo +++ b/tests/nodes/max_i32_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i32_two_tensors/input_0.cairo b/tests/nodes/max_i32_two_tensors/input_0.cairo index 0492dca0f..c46f8f39b 100644 --- a/tests/nodes/max_i32_two_tensors/input_0.cairo +++ b/tests/nodes/max_i32_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(4); + data.append(3); + data.append(5); + data.append(5); + data.append(0); + data.append(1); + data.append(4); + data.append(4); + data.append(3); + data.append(1); + data.append(4); + data.append(4); + data.append(5); + data.append(3); + data.append(0); + data.append(4); + data.append(0); + data.append(3); + data.append(4); + data.append(4); + data.append(4); + data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(5); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_two_tensors/input_1.cairo b/tests/nodes/max_i32_two_tensors/input_1.cairo index 2b8efc418..19c5b61b9 100644 --- a/tests/nodes/max_i32_two_tensors/input_1.cairo +++ b/tests/nodes/max_i32_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(2); + data.append(4); + data.append(2); + data.append(1); + data.append(4); + data.append(0); + data.append(3); + data.append(1); + data.append(5); + data.append(0); + data.append(5); + data.append(4); + data.append(0); + data.append(4); + data.append(3); + data.append(0); + data.append(0); + data.append(0); + data.append(2); + data.append(0); + data.append(1); + data.append(2); + data.append(4); + data.append(2); + data.append(4); + data.append(1); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i32_two_tensors/output_0.cairo b/tests/nodes/max_i32_two_tensors/output_0.cairo index 4b5273dc6..05353683b 100644 --- a/tests/nodes/max_i32_two_tensors/output_0.cairo +++ b/tests/nodes/max_i32_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(4); + data.append(4); + data.append(5); + data.append(5); + data.append(4); + data.append(1); + data.append(4); + data.append(4); + data.append(5); + data.append(1); + data.append(5); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(4); + data.append(0); + data.append(3); + data.append(4); + data.append(4); + data.append(4); + data.append(2); + data.append(4); + data.append(2); + data.append(4); + data.append(5); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_broadcast_three_tensors.cairo b/tests/nodes/max_i8_broadcast_three_tensors.cairo index 53fb8a66e..140b8acf6 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i8_broadcast_three_tensors/input_0.cairo b/tests/nodes/max_i8_broadcast_three_tensors/input_0.cairo index c87ef840d..5a57919b9 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(2); + data.append(3); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_broadcast_three_tensors/input_1.cairo b/tests/nodes/max_i8_broadcast_three_tensors/input_1.cairo index a192579b6..62748a36e 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_broadcast_three_tensors/input_2.cairo b/tests/nodes/max_i8_broadcast_three_tensors/input_2.cairo index e11b8c948..f999cb47a 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_broadcast_three_tensors/output_0.cairo b/tests/nodes/max_i8_broadcast_three_tensors/output_0.cairo index 00d79d15b..8199d1f57 100644 --- a/tests/nodes/max_i8_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_i8_broadcast_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(3); + data.append(3); + data.append(3); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_broadcast_two_tensors.cairo b/tests/nodes/max_i8_broadcast_two_tensors.cairo index f38611ad2..bea51e2ae 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i8_broadcast_two_tensors/input_0.cairo b/tests/nodes/max_i8_broadcast_two_tensors/input_0.cairo index 3b8516e09..cb33b1fdc 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(1); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_broadcast_two_tensors/input_1.cairo b/tests/nodes/max_i8_broadcast_two_tensors/input_1.cairo index a192579b6..76dbd7469 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(5); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_broadcast_two_tensors/output_0.cairo b/tests/nodes/max_i8_broadcast_two_tensors/output_0.cairo index 14254b2b9..f5b711a6d 100644 --- a/tests/nodes/max_i8_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_i8_broadcast_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(5); + data.append(3); + data.append(5); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_three_tensors.cairo b/tests/nodes/max_i8_three_tensors.cairo index 6bb0dce85..ab497c52c 100644 --- a/tests/nodes/max_i8_three_tensors.cairo +++ b/tests/nodes/max_i8_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i8_three_tensors/input_0.cairo b/tests/nodes/max_i8_three_tensors/input_0.cairo index b41615b80..38976dcf4 100644 --- a/tests/nodes/max_i8_three_tensors/input_0.cairo +++ b/tests/nodes/max_i8_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(3); + data.append(1); + data.append(4); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(4); + data.append(4); + data.append(5); + data.append(5); + data.append(3); + data.append(5); + data.append(4); + data.append(4); + data.append(5); + data.append(4); + data.append(5); + data.append(2); + data.append(0); + data.append(4); + data.append(0); + data.append(4); + data.append(3); + data.append(3); + data.append(1); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_three_tensors/input_1.cairo b/tests/nodes/max_i8_three_tensors/input_1.cairo index 930d9fc66..f3a78ebdf 100644 --- a/tests/nodes/max_i8_three_tensors/input_1.cairo +++ b/tests/nodes/max_i8_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(5); + data.append(3); + data.append(4); + data.append(5); + data.append(2); + data.append(3); + data.append(2); + data.append(5); + data.append(1); + data.append(0); + data.append(3); + data.append(1); + data.append(5); + data.append(0); + data.append(2); + data.append(2); + data.append(1); + data.append(3); + data.append(3); + data.append(1); + data.append(3); + data.append(3); + data.append(5); + data.append(3); + data.append(3); + data.append(1); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_three_tensors/input_2.cairo b/tests/nodes/max_i8_three_tensors/input_2.cairo index b95518572..7de2731dd 100644 --- a/tests/nodes/max_i8_three_tensors/input_2.cairo +++ b/tests/nodes/max_i8_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(5); + data.append(3); + data.append(3); + data.append(2); + data.append(2); + data.append(3); + data.append(5); + data.append(4); + data.append(0); + data.append(3); + data.append(2); + data.append(0); + data.append(2); + data.append(0); + data.append(0); + data.append(5); + data.append(5); + data.append(1); + data.append(1); + data.append(0); + data.append(4); + data.append(5); + data.append(1); + data.append(0); + data.append(3); + data.append(2); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_three_tensors/output_0.cairo b/tests/nodes/max_i8_three_tensors/output_0.cairo index ecafa2dd1..4c09f6cfb 100644 --- a/tests/nodes/max_i8_three_tensors/output_0.cairo +++ b/tests/nodes/max_i8_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(5); + data.append(3); + data.append(4); + data.append(5); + data.append(2); + data.append(3); + data.append(5); + data.append(5); + data.append(4); + data.append(5); + data.append(5); + data.append(3); + data.append(5); + data.append(4); + data.append(4); + data.append(5); + data.append(5); + data.append(5); + data.append(3); + data.append(1); + data.append(4); + data.append(5); + data.append(5); + data.append(3); + data.append(3); + data.append(2); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_two_tensors.cairo b/tests/nodes/max_i8_two_tensors.cairo index d6ddf4acb..57a5d6570 100644 --- a/tests/nodes/max_i8_two_tensors.cairo +++ b/tests/nodes/max_i8_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_i8_two_tensors/input_0.cairo b/tests/nodes/max_i8_two_tensors/input_0.cairo index 0fd03f27c..0d4273b0d 100644 --- a/tests/nodes/max_i8_two_tensors/input_0.cairo +++ b/tests/nodes/max_i8_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(1); + data.append(5); + data.append(4); + data.append(0); + data.append(3); + data.append(5); + data.append(5); + data.append(2); + data.append(0); + data.append(1); + data.append(3); + data.append(5); + data.append(5); + data.append(5); + data.append(1); + data.append(4); + data.append(5); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(5); + data.append(0); + data.append(1); + data.append(0); + data.append(3); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_two_tensors/input_1.cairo b/tests/nodes/max_i8_two_tensors/input_1.cairo index 93a09a056..a854ff865 100644 --- a/tests/nodes/max_i8_two_tensors/input_1.cairo +++ b/tests/nodes/max_i8_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(5); + data.append(4); + data.append(5); + data.append(3); + data.append(2); + data.append(2); + data.append(0); + data.append(5); + data.append(2); + data.append(1); + data.append(3); + data.append(5); + data.append(1); + data.append(0); + data.append(5); + data.append(1); + data.append(0); + data.append(3); + data.append(4); + data.append(4); + data.append(2); + data.append(2); + data.append(0); + data.append(5); + data.append(1); + data.append(4); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_i8_two_tensors/output_0.cairo b/tests/nodes/max_i8_two_tensors/output_0.cairo index 5fa0d9db3..cb316205f 100644 --- a/tests/nodes/max_i8_two_tensors/output_0.cairo +++ b/tests/nodes/max_i8_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(5); + data.append(5); + data.append(5); + data.append(3); + data.append(3); + data.append(5); + data.append(5); + data.append(5); + data.append(2); + data.append(1); + data.append(3); + data.append(5); + data.append(5); + data.append(5); + data.append(5); + data.append(4); + data.append(5); + data.append(3); + data.append(4); + data.append(4); + data.append(2); + data.append(5); + data.append(0); + data.append(5); + data.append(1); + data.append(4); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_broadcast_three_tensors.cairo b/tests/nodes/max_u32_broadcast_three_tensors.cairo index 896c52f17..67c43b78d 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_u32_broadcast_three_tensors/input_0.cairo b/tests/nodes/max_u32_broadcast_three_tensors/input_0.cairo index 8d7f30b6f..f1c2aeda7 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(1); data.append(0); - data.append(5); - data.append(2); - data.append(5); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_broadcast_three_tensors/input_1.cairo b/tests/nodes/max_u32_broadcast_three_tensors/input_1.cairo index dc27d6d6a..d2bf5b229 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); + data.append(5); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_broadcast_three_tensors/input_2.cairo b/tests/nodes/max_u32_broadcast_three_tensors/input_2.cairo index 682aeeedb..ccac52d5f 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,6 +8,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_broadcast_three_tensors/output_0.cairo b/tests/nodes/max_u32_broadcast_three_tensors/output_0.cairo index 62ad4c6a0..d3cf85be4 100644 --- a/tests/nodes/max_u32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/max_u32_broadcast_three_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); data.append(5); - data.append(4); + data.append(5); + data.append(5); data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_broadcast_two_tensors.cairo b/tests/nodes/max_u32_broadcast_two_tensors.cairo index dbc319195..63abe443a 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_u32_broadcast_two_tensors/input_0.cairo b/tests/nodes/max_u32_broadcast_two_tensors/input_0.cairo index 2e29a50ae..0509b4356 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(4); + data.append(3); data.append(5); data.append(5); - data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_broadcast_two_tensors/input_1.cairo b/tests/nodes/max_u32_broadcast_two_tensors/input_1.cairo index c8994c824..ba584fcb3 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); + data.append(3); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_broadcast_two_tensors/output_0.cairo b/tests/nodes/max_u32_broadcast_two_tensors/output_0.cairo index a6c39f13f..9bcf47d9b 100644 --- a/tests/nodes/max_u32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/max_u32_broadcast_two_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); + data.append(4); + data.append(3); data.append(5); data.append(5); - data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_three_tensors.cairo b/tests/nodes/max_u32_three_tensors.cairo index 641a2e348..baf70d71b 100644 --- a/tests/nodes/max_u32_three_tensors.cairo +++ b/tests/nodes/max_u32_three_tensors.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_u32_three_tensors/input_0.cairo b/tests/nodes/max_u32_three_tensors/input_0.cairo index 5de1035f0..ce8f0d2c4 100644 --- a/tests/nodes/max_u32_three_tensors/input_0.cairo +++ b/tests/nodes/max_u32_three_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(2); + data.append(5); data.append(4); + data.append(0); + data.append(2); + data.append(0); data.append(1); data.append(1); - data.append(4); - data.append(1); data.append(1); - data.append(2); data.append(3); data.append(5); - data.append(5); - data.append(1); - data.append(1); - data.append(2); - data.append(5); data.append(0); data.append(4); - data.append(1); - data.append(1); - data.append(4); - data.append(4); data.append(3); data.append(2); - data.append(1); data.append(0); - data.append(1); + data.append(0); + data.append(4); + data.append(5); + data.append(2); data.append(0); data.append(5); + data.append(3); + data.append(2); + data.append(5); + data.append(3); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_three_tensors/input_1.cairo b/tests/nodes/max_u32_three_tensors/input_1.cairo index 03f85004e..87669eb22 100644 --- a/tests/nodes/max_u32_three_tensors/input_1.cairo +++ b/tests/nodes/max_u32_three_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(5); - data.append(5); - data.append(0); data.append(2); - data.append(1); data.append(2); - data.append(3); - data.append(1); data.append(0); - data.append(1); data.append(2); + data.append(3); + data.append(1); data.append(2); - data.append(5); data.append(4); - data.append(5); - data.append(5); - data.append(5); + data.append(1); + data.append(0); data.append(4); - data.append(2); data.append(5); - data.append(1); data.append(4); + data.append(3); data.append(4); + data.append(3); + data.append(3); + data.append(0); + data.append(1); data.append(5); data.append(0); + data.append(4); data.append(3); + data.append(0); + data.append(0); + data.append(0); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_three_tensors/input_2.cairo b/tests/nodes/max_u32_three_tensors/input_2.cairo index 23dc1f601..2f6d0b044 100644 --- a/tests/nodes/max_u32_three_tensors/input_2.cairo +++ b/tests/nodes/max_u32_three_tensors/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(5); - data.append(5); data.append(1); - data.append(3); - data.append(5); - data.append(0); - data.append(2); - data.append(2); - data.append(4); data.append(4); + data.append(1); + data.append(0); data.append(5); data.append(4); - data.append(2); data.append(5); + data.append(3); + data.append(0); + data.append(0); + data.append(3); + data.append(0); + data.append(3); data.append(5); + data.append(0); + data.append(1); data.append(4); data.append(4); - data.append(5); data.append(1); data.append(4); - data.append(5); - data.append(2); - data.append(5); + data.append(0); + data.append(0); data.append(4); + data.append(1); + data.append(3); data.append(4); - data.append(5); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_three_tensors/output_0.cairo b/tests/nodes/max_u32_three_tensors/output_0.cairo index 9a5a1a396..21f7ee3a2 100644 --- a/tests/nodes/max_u32_three_tensors/output_0.cairo +++ b/tests/nodes/max_u32_three_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,30 +9,30 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(5); + data.append(2); data.append(5); data.append(4); - data.append(3); - data.append(5); data.append(2); - data.append(3); - data.append(5); data.append(5); data.append(4); data.append(5); data.append(4); + data.append(1); + data.append(3); data.append(5); data.append(5); + data.append(4); data.append(5); - data.append(5); - data.append(5); - data.append(5); + data.append(4); + data.append(3); + data.append(4); data.append(4); data.append(5); data.append(5); - data.append(4); + data.append(0); data.append(5); + data.append(4); + data.append(2); data.append(5); data.append(4); data.append(5); diff --git a/tests/nodes/max_u32_two_tensors.cairo b/tests/nodes/max_u32_two_tensors.cairo index 4f4a9dc7a..5d752360f 100644 --- a/tests/nodes/max_u32_two_tensors.cairo +++ b/tests/nodes/max_u32_two_tensors.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/max_u32_two_tensors/input_0.cairo b/tests/nodes/max_u32_two_tensors/input_0.cairo index 68140d304..ef6f50620 100644 --- a/tests/nodes/max_u32_two_tensors/input_0.cairo +++ b/tests/nodes/max_u32_two_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(1); - data.append(0); - data.append(2); data.append(0); - data.append(0); - data.append(4); - data.append(1); - data.append(1); - data.append(4); - data.append(4); data.append(3); - data.append(2); data.append(4); data.append(2); - data.append(4); + data.append(3); data.append(5); data.append(1); data.append(3); data.append(3); + data.append(5); + data.append(5); + data.append(4); + data.append(1); data.append(3); data.append(2); + data.append(1); + data.append(3); + data.append(5); + data.append(4); + data.append(1); data.append(2); data.append(0); data.append(1); - data.append(5); + data.append(4); + data.append(2); data.append(0); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_two_tensors/input_1.cairo b/tests/nodes/max_u32_two_tensors/input_1.cairo index b56dfcb3b..0e56d1b99 100644 --- a/tests/nodes/max_u32_two_tensors/input_1.cairo +++ b/tests/nodes/max_u32_two_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(2); - data.append(0); data.append(0); data.append(5); data.append(1); - data.append(1); - data.append(1); - data.append(2); - data.append(0); data.append(4); + data.append(3); + data.append(3); data.append(2); - data.append(1); + data.append(3); data.append(5); - data.append(1); - data.append(4); + data.append(2); data.append(3); data.append(0); - data.append(3); + data.append(0); + data.append(4); + data.append(5); data.append(1); + data.append(4); data.append(1); data.append(3); data.append(5); + data.append(3); data.append(4); - data.append(4); + data.append(3); data.append(2); + data.append(3); data.append(4); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/max_u32_two_tensors/output_0.cairo b/tests/nodes/max_u32_two_tensors/output_0.cairo index e95f8d2cf..f87eb3481 100644 --- a/tests/nodes/max_u32_two_tensors/output_0.cairo +++ b/tests/nodes/max_u32_two_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(2); data.append(0); - data.append(2); data.append(5); - data.append(1); - data.append(4); - data.append(1); - data.append(2); data.append(4); data.append(4); data.append(3); - data.append(2); data.append(5); data.append(2); - data.append(4); + data.append(3); data.append(5); + data.append(5); + data.append(5); + data.append(4); data.append(1); - data.append(3); - data.append(3); - data.append(3); - data.append(3); + data.append(4); data.append(5); + data.append(1); data.append(4); + data.append(5); data.append(4); data.append(5); + data.append(3); + data.append(4); + data.append(3); data.append(4); + data.append(3); + data.append(4); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo b/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo index 681c906d4..5ce550137 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_0.cairo b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_0.cairo index 3fa2c2c6b..8a064ad06 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_1.cairo b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_1.cairo index 6aeda52b6..fb9a97db5 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_2.cairo b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_2.cairo index ea0a758aa..17a13fcf2 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/min_fp16x16_broadcast_three_tensors/output_0.cairo b/tests/nodes/min_fp16x16_broadcast_three_tensors/output_0.cairo index 0e68c7278..61864511e 100644 --- a/tests/nodes/min_fp16x16_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo b/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo index 226a1938e..6a787b08f 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp16x16_broadcast_two_tensors/input_0.cairo b/tests/nodes/min_fp16x16_broadcast_two_tensors/input_0.cairo index f5876c8c7..ffbb46375 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_broadcast_two_tensors/input_1.cairo b/tests/nodes/min_fp16x16_broadcast_two_tensors/input_1.cairo index 6aeda52b6..2865ef90a 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +10,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_broadcast_two_tensors/output_0.cairo b/tests/nodes/min_fp16x16_broadcast_two_tensors/output_0.cairo index 858ca5425..d94aac29f 100644 --- a/tests/nodes/min_fp16x16_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_broadcast_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_three_tensors.cairo b/tests/nodes/min_fp16x16_three_tensors.cairo index d190db9b9..a9c657b6a 100644 --- a/tests/nodes/min_fp16x16_three_tensors.cairo +++ b/tests/nodes/min_fp16x16_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp16x16_three_tensors/input_0.cairo b/tests/nodes/min_fp16x16_three_tensors/input_0.cairo index 98c6b286d..f2366c35b 100644 --- a/tests/nodes/min_fp16x16_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_three_tensors/input_1.cairo b/tests/nodes/min_fp16x16_three_tensors/input_1.cairo index 953ed2d64..5f822c7bd 100644 --- a/tests/nodes/min_fp16x16_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_three_tensors/input_2.cairo b/tests/nodes/min_fp16x16_three_tensors/input_2.cairo index 73e1d695d..3c09f8de0 100644 --- a/tests/nodes/min_fp16x16_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_three_tensors/output_0.cairo b/tests/nodes/min_fp16x16_three_tensors/output_0.cairo index 9dae1f16a..87edac955 100644 --- a/tests/nodes/min_fp16x16_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,30 +12,30 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_two_tensors.cairo b/tests/nodes/min_fp16x16_two_tensors.cairo index ed7566755..6c866dd51 100644 --- a/tests/nodes/min_fp16x16_two_tensors.cairo +++ b/tests/nodes/min_fp16x16_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp16x16_two_tensors/input_0.cairo b/tests/nodes/min_fp16x16_two_tensors/input_0.cairo index fa886d09d..188b63194 100644 --- a/tests/nodes/min_fp16x16_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp16x16_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,30 +12,30 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_two_tensors/input_1.cairo b/tests/nodes/min_fp16x16_two_tensors/input_1.cairo index f8cb9693b..2923085c1 100644 --- a/tests/nodes/min_fp16x16_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp16x16_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp16x16_two_tensors/output_0.cairo b/tests/nodes/min_fp16x16_two_tensors/output_0.cairo index 6dab5b05b..84a81e32a 100644 --- a/tests/nodes/min_fp16x16_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp16x16_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo b/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo index e9d2d2c01..261f2bbbb 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_0.cairo b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_0.cairo index e74e24d26..15b92479d 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_1.cairo b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_1.cairo index 773c24aa4..592f52eb9 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_2.cairo b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_2.cairo index f8b390a97..83b0567b4 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,6 +9,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_broadcast_three_tensors/output_0.cairo b/tests/nodes/min_fp8x23_broadcast_three_tensors/output_0.cairo index 1ac12903a..24a104f61 100644 --- a/tests/nodes/min_fp8x23_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo b/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo index bb99c30ab..a799638bf 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp8x23_broadcast_two_tensors/input_0.cairo b/tests/nodes/min_fp8x23_broadcast_two_tensors/input_0.cairo index c5bc72933..a2b741a86 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_broadcast_two_tensors/input_1.cairo b/tests/nodes/min_fp8x23_broadcast_two_tensors/input_1.cairo index bca8d7b70..b55163153 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +10,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_broadcast_two_tensors/output_0.cairo b/tests/nodes/min_fp8x23_broadcast_two_tensors/output_0.cairo index a0ddd3518..e0874bea1 100644 --- a/tests/nodes/min_fp8x23_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_broadcast_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_three_tensors.cairo b/tests/nodes/min_fp8x23_three_tensors.cairo index 2f77c14ae..dce17ee0d 100644 --- a/tests/nodes/min_fp8x23_three_tensors.cairo +++ b/tests/nodes/min_fp8x23_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp8x23_three_tensors/input_0.cairo b/tests/nodes/min_fp8x23_three_tensors/input_0.cairo index d04773e36..74e025446 100644 --- a/tests/nodes/min_fp8x23_three_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_three_tensors/input_1.cairo b/tests/nodes/min_fp8x23_three_tensors/input_1.cairo index 26d180a0a..5736d974d 100644 --- a/tests/nodes/min_fp8x23_three_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_three_tensors/input_2.cairo b/tests/nodes/min_fp8x23_three_tensors/input_2.cairo index 634e42922..2d0f36a1c 100644 --- a/tests/nodes/min_fp8x23_three_tensors/input_2.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_three_tensors/output_0.cairo b/tests/nodes/min_fp8x23_three_tensors/output_0.cairo index f6b31671e..627a9b687 100644 --- a/tests/nodes/min_fp8x23_three_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_three_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_two_tensors.cairo b/tests/nodes/min_fp8x23_two_tensors.cairo index 2e8aaf22b..0ab5c39bf 100644 --- a/tests/nodes/min_fp8x23_two_tensors.cairo +++ b/tests/nodes/min_fp8x23_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_fp8x23_two_tensors/input_0.cairo b/tests/nodes/min_fp8x23_two_tensors/input_0.cairo index ecd91f893..9ebd47b2a 100644 --- a/tests/nodes/min_fp8x23_two_tensors/input_0.cairo +++ b/tests/nodes/min_fp8x23_two_tensors/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_two_tensors/input_1.cairo b/tests/nodes/min_fp8x23_two_tensors/input_1.cairo index aca68ba9d..13fa828ed 100644 --- a/tests/nodes/min_fp8x23_two_tensors/input_1.cairo +++ b/tests/nodes/min_fp8x23_two_tensors/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_fp8x23_two_tensors/output_0.cairo b/tests/nodes/min_fp8x23_two_tensors/output_0.cairo index c64d3820e..731cab4c5 100644 --- a/tests/nodes/min_fp8x23_two_tensors/output_0.cairo +++ b/tests/nodes/min_fp8x23_two_tensors/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_broadcast_three_tensors.cairo b/tests/nodes/min_i32_broadcast_three_tensors.cairo index 7539bc61c..3a3e95e40 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i32_broadcast_three_tensors/input_0.cairo b/tests/nodes/min_i32_broadcast_three_tensors/input_0.cairo index 69aedbfa0..95ac04486 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(2); + data.append(2); + data.append(5); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_broadcast_three_tensors/input_1.cairo b/tests/nodes/min_i32_broadcast_three_tensors/input_1.cairo index 1563e8648..96ce32169 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(5); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_broadcast_three_tensors/input_2.cairo b/tests/nodes/min_i32_broadcast_three_tensors/input_2.cairo index ce77c4586..83c35d3b8 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_broadcast_three_tensors/output_0.cairo b/tests/nodes/min_i32_broadcast_three_tensors/output_0.cairo index 5a58adce6..3c2ad2515 100644 --- a/tests/nodes/min_i32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_i32_broadcast_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(2); + data.append(0); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_broadcast_two_tensors.cairo b/tests/nodes/min_i32_broadcast_two_tensors.cairo index f291c42a5..e71875d39 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i32_broadcast_two_tensors/input_0.cairo b/tests/nodes/min_i32_broadcast_two_tensors/input_0.cairo index c7d1e23a5..a2da6b393 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_broadcast_two_tensors/input_1.cairo b/tests/nodes/min_i32_broadcast_two_tensors/input_1.cairo index 3e70266c5..0a3747789 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(2); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_broadcast_two_tensors/output_0.cairo b/tests/nodes/min_i32_broadcast_two_tensors/output_0.cairo index ce36f7d55..d9b1b839c 100644 --- a/tests/nodes/min_i32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_i32_broadcast_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); + data.append(1); + data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_three_tensors.cairo b/tests/nodes/min_i32_three_tensors.cairo index 22a6d7efb..dc2557ba8 100644 --- a/tests/nodes/min_i32_three_tensors.cairo +++ b/tests/nodes/min_i32_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i32_three_tensors/input_0.cairo b/tests/nodes/min_i32_three_tensors/input_0.cairo index 197ac9f02..4de76250e 100644 --- a/tests/nodes/min_i32_three_tensors/input_0.cairo +++ b/tests/nodes/min_i32_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(5); + data.append(0); + data.append(2); + data.append(1); + data.append(5); + data.append(3); + data.append(4); + data.append(5); + data.append(0); + data.append(4); + data.append(5); + data.append(2); + data.append(5); + data.append(4); + data.append(2); + data.append(3); + data.append(2); + data.append(4); + data.append(2); + data.append(0); + data.append(4); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_three_tensors/input_1.cairo b/tests/nodes/min_i32_three_tensors/input_1.cairo index a226ab71f..a7a580b91 100644 --- a/tests/nodes/min_i32_three_tensors/input_1.cairo +++ b/tests/nodes/min_i32_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(4); + data.append(3); + data.append(5); + data.append(5); + data.append(1); + data.append(2); + data.append(5); + data.append(1); + data.append(0); + data.append(4); + data.append(1); + data.append(0); + data.append(5); + data.append(2); + data.append(0); + data.append(0); + data.append(1); + data.append(3); + data.append(3); + data.append(3); + data.append(5); + data.append(5); + data.append(4); + data.append(0); + data.append(4); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_three_tensors/input_2.cairo b/tests/nodes/min_i32_three_tensors/input_2.cairo index a405b7048..e80932fca 100644 --- a/tests/nodes/min_i32_three_tensors/input_2.cairo +++ b/tests/nodes/min_i32_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(3); + data.append(0); + data.append(0); + data.append(4); + data.append(2); + data.append(0); + data.append(2); + data.append(3); + data.append(5); + data.append(3); + data.append(1); + data.append(2); + data.append(4); + data.append(4); + data.append(4); + data.append(2); + data.append(2); + data.append(1); + data.append(5); + data.append(2); + data.append(0); + data.append(3); + data.append(5); + data.append(3); + data.append(2); + data.append(0); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_three_tensors/output_0.cairo b/tests/nodes/min_i32_three_tensors/output_0.cairo index 13a3b7243..60c809408 100644 --- a/tests/nodes/min_i32_three_tensors/output_0.cairo +++ b/tests/nodes/min_i32_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(0); + data.append(0); + data.append(2); + data.append(1); + data.append(0); + data.append(2); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(2); + data.append(2); + data.append(0); + data.append(0); + data.append(1); + data.append(1); + data.append(3); + data.append(2); + data.append(0); + data.append(3); + data.append(1); + data.append(0); + data.append(1); + data.append(0); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_two_tensors.cairo b/tests/nodes/min_i32_two_tensors.cairo index 08f902cbc..dde7c741b 100644 --- a/tests/nodes/min_i32_two_tensors.cairo +++ b/tests/nodes/min_i32_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i32_two_tensors/input_0.cairo b/tests/nodes/min_i32_two_tensors/input_0.cairo index 703b5b37e..c54eed3a2 100644 --- a/tests/nodes/min_i32_two_tensors/input_0.cairo +++ b/tests/nodes/min_i32_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(4); + data.append(2); + data.append(5); + data.append(0); + data.append(3); + data.append(0); + data.append(3); + data.append(4); + data.append(1); + data.append(4); + data.append(4); + data.append(5); + data.append(2); + data.append(4); + data.append(1); + data.append(2); + data.append(3); + data.append(2); + data.append(5); + data.append(0); + data.append(0); + data.append(1); + data.append(5); + data.append(0); + data.append(5); + data.append(5); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_two_tensors/input_1.cairo b/tests/nodes/min_i32_two_tensors/input_1.cairo index 287a804bc..a28a4f241 100644 --- a/tests/nodes/min_i32_two_tensors/input_1.cairo +++ b/tests/nodes/min_i32_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(2); + data.append(1); + data.append(5); + data.append(3); + data.append(0); + data.append(0); + data.append(1); + data.append(2); + data.append(1); + data.append(3); + data.append(0); + data.append(2); + data.append(4); + data.append(4); + data.append(2); + data.append(5); + data.append(0); + data.append(4); + data.append(4); + data.append(2); + data.append(0); + data.append(4); + data.append(3); + data.append(5); + data.append(5); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i32_two_tensors/output_0.cairo b/tests/nodes/min_i32_two_tensors/output_0.cairo index 6ad05eb89..c2a699164 100644 --- a/tests/nodes/min_i32_two_tensors/output_0.cairo +++ b/tests/nodes/min_i32_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(2); + data.append(1); + data.append(5); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(2); + data.append(1); + data.append(3); + data.append(0); + data.append(2); + data.append(2); + data.append(4); + data.append(1); + data.append(2); + data.append(0); + data.append(2); + data.append(4); + data.append(0); + data.append(0); + data.append(1); + data.append(3); + data.append(0); + data.append(5); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_broadcast_three_tensors.cairo b/tests/nodes/min_i8_broadcast_three_tensors.cairo index 126f45448..1e1f140f8 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i8_broadcast_three_tensors/input_0.cairo b/tests/nodes/min_i8_broadcast_three_tensors/input_0.cairo index 2cb5ffee7..b29ea3e60 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(0); + data.append(2); + data.append(5); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_broadcast_three_tensors/input_1.cairo b/tests/nodes/min_i8_broadcast_three_tensors/input_1.cairo index e2e9c07a9..4cffe57cc 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_broadcast_three_tensors/input_2.cairo b/tests/nodes/min_i8_broadcast_three_tensors/input_2.cairo index 671df03b1..6bbe4bb0e 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_broadcast_three_tensors/output_0.cairo b/tests/nodes/min_i8_broadcast_three_tensors/output_0.cairo index fa2baf349..b1b7cdd62 100644 --- a/tests/nodes/min_i8_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_i8_broadcast_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_broadcast_two_tensors.cairo b/tests/nodes/min_i8_broadcast_two_tensors.cairo index d43be3a67..8b98aa16d 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i8_broadcast_two_tensors/input_0.cairo b/tests/nodes/min_i8_broadcast_two_tensors/input_0.cairo index 398239796..2831aefd1 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(4); + data.append(2); + data.append(5); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_broadcast_two_tensors/input_1.cairo b/tests/nodes/min_i8_broadcast_two_tensors/input_1.cairo index 12eb51d26..1b7a3b19f 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(0); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_broadcast_two_tensors/output_0.cairo b/tests/nodes/min_i8_broadcast_two_tensors/output_0.cairo index beec07f4d..e6895e2f2 100644 --- a/tests/nodes/min_i8_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_i8_broadcast_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(0); + data.append(2); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_three_tensors.cairo b/tests/nodes/min_i8_three_tensors.cairo index c4b107f10..c46c6ed50 100644 --- a/tests/nodes/min_i8_three_tensors.cairo +++ b/tests/nodes/min_i8_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i8_three_tensors/input_0.cairo b/tests/nodes/min_i8_three_tensors/input_0.cairo index 03eceda85..5f3f2056b 100644 --- a/tests/nodes/min_i8_three_tensors/input_0.cairo +++ b/tests/nodes/min_i8_three_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(3); + data.append(3); + data.append(5); + data.append(3); + data.append(0); + data.append(1); + data.append(2); + data.append(4); + data.append(4); + data.append(1); + data.append(2); + data.append(1); + data.append(5); + data.append(5); + data.append(2); + data.append(0); + data.append(4); + data.append(2); + data.append(4); + data.append(0); + data.append(5); + data.append(5); + data.append(4); + data.append(3); + data.append(5); + data.append(0); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_three_tensors/input_1.cairo b/tests/nodes/min_i8_three_tensors/input_1.cairo index edf116b13..d5290a6f7 100644 --- a/tests/nodes/min_i8_three_tensors/input_1.cairo +++ b/tests/nodes/min_i8_three_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(3); + data.append(2); + data.append(5); + data.append(3); + data.append(1); + data.append(3); + data.append(1); + data.append(4); + data.append(2); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(3); + data.append(2); + data.append(4); + data.append(3); + data.append(3); + data.append(5); + data.append(5); + data.append(0); + data.append(4); + data.append(5); + data.append(5); + data.append(0); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_three_tensors/input_2.cairo b/tests/nodes/min_i8_three_tensors/input_2.cairo index 70400abc8..a5c477724 100644 --- a/tests/nodes/min_i8_three_tensors/input_2.cairo +++ b/tests/nodes/min_i8_three_tensors/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(5); + data.append(3); + data.append(0); + data.append(3); + data.append(0); + data.append(0); + data.append(2); + data.append(0); + data.append(0); + data.append(3); + data.append(5); + data.append(0); + data.append(0); + data.append(3); + data.append(4); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(3); + data.append(3); + data.append(2); + data.append(0); + data.append(3); + data.append(5); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_three_tensors/output_0.cairo b/tests/nodes/min_i8_three_tensors/output_0.cairo index 8d2f27115..0080187f0 100644 --- a/tests/nodes/min_i8_three_tensors/output_0.cairo +++ b/tests/nodes/min_i8_three_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(3); + data.append(2); + data.append(0); + data.append(3); + data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(2); + data.append(0); + data.append(0); + data.append(3); + data.append(2); + data.append(0); + data.append(1); + data.append(2); + data.append(2); + data.append(0); + data.append(0); + data.append(2); + data.append(0); + data.append(3); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_two_tensors.cairo b/tests/nodes/min_i8_two_tensors.cairo index 4428987dd..781456402 100644 --- a/tests/nodes/min_i8_two_tensors.cairo +++ b/tests/nodes/min_i8_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_i8_two_tensors/input_0.cairo b/tests/nodes/min_i8_two_tensors/input_0.cairo index 99d93944b..a2ae2c5ea 100644 --- a/tests/nodes/min_i8_two_tensors/input_0.cairo +++ b/tests/nodes/min_i8_two_tensors/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(3); + data.append(1); + data.append(1); + data.append(3); + data.append(5); + data.append(1); + data.append(4); + data.append(5); + data.append(2); + data.append(1); + data.append(1); + data.append(3); + data.append(4); + data.append(1); + data.append(3); + data.append(1); + data.append(5); + data.append(1); + data.append(2); + data.append(0); + data.append(4); + data.append(5); + data.append(5); + data.append(5); + data.append(4); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_two_tensors/input_1.cairo b/tests/nodes/min_i8_two_tensors/input_1.cairo index e92b743bb..d32e1252d 100644 --- a/tests/nodes/min_i8_two_tensors/input_1.cairo +++ b/tests/nodes/min_i8_two_tensors/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(3); + data.append(4); + data.append(5); + data.append(5); + data.append(1); + data.append(5); + data.append(4); + data.append(1); + data.append(3); + data.append(0); + data.append(3); + data.append(3); + data.append(5); + data.append(5); + data.append(1); + data.append(2); + data.append(0); + data.append(4); + data.append(5); + data.append(1); + data.append(3); + data.append(2); + data.append(5); + data.append(1); + data.append(4); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_i8_two_tensors/output_0.cairo b/tests/nodes/min_i8_two_tensors/output_0.cairo index 8ec178b15..d0457a01e 100644 --- a/tests/nodes/min_i8_two_tensors/output_0.cairo +++ b/tests/nodes/min_i8_two_tensors/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(3); + data.append(1); + data.append(1); + data.append(3); + data.append(1); + data.append(1); + data.append(4); + data.append(1); + data.append(2); + data.append(0); + data.append(1); + data.append(3); + data.append(4); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(2); + data.append(0); + data.append(3); + data.append(2); + data.append(5); + data.append(1); + data.append(4); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_broadcast_three_tensors.cairo b/tests/nodes/min_u32_broadcast_three_tensors.cairo index 881c50143..c4e99c17a 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_u32_broadcast_three_tensors/input_0.cairo b/tests/nodes/min_u32_broadcast_three_tensors/input_0.cairo index 6180db796..0bcfde3ac 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/input_0.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(0); data.append(5); + data.append(3); data.append(5); - data.append(4); - data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_broadcast_three_tensors/input_1.cairo b/tests/nodes/min_u32_broadcast_three_tensors/input_1.cairo index 915db9561..f3dfeff33 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/input_1.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); - data.append(4); + data.append(3); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_broadcast_three_tensors/input_2.cairo b/tests/nodes/min_u32_broadcast_three_tensors/input_2.cairo index e4b2b6145..f2ee2b1d8 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/input_2.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,6 +8,6 @@ fn input_2() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(3); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_broadcast_three_tensors/output_0.cairo b/tests/nodes/min_u32_broadcast_three_tensors/output_0.cairo index aea0eefd1..6c8ee239d 100644 --- a/tests/nodes/min_u32_broadcast_three_tensors/output_0.cairo +++ b/tests/nodes/min_u32_broadcast_three_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(3); - data.append(3); - data.append(3); + data.append(0); + data.append(2); + data.append(2); data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_broadcast_two_tensors.cairo b/tests/nodes/min_u32_broadcast_two_tensors.cairo index d60ea8122..8a6c74010 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_u32_broadcast_two_tensors/input_0.cairo b/tests/nodes/min_u32_broadcast_two_tensors/input_0.cairo index 5d0cb1aaf..b486cce82 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors/input_0.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(1); + data.append(3); + data.append(2); data.append(5); - data.append(4); - data.append(5); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_broadcast_two_tensors/input_1.cairo b/tests/nodes/min_u32_broadcast_two_tensors/input_1.cairo index 77c862a13..8615ef168 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors/input_1.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +9,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(5); - data.append(3); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_broadcast_two_tensors/output_0.cairo b/tests/nodes/min_u32_broadcast_two_tensors/output_0.cairo index 2c23a2f92..cbc8d6461 100644 --- a/tests/nodes/min_u32_broadcast_two_tensors/output_0.cairo +++ b/tests/nodes/min_u32_broadcast_two_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(5); - data.append(3); - data.append(5); + data.append(1); + data.append(0); + data.append(2); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_three_tensors.cairo b/tests/nodes/min_u32_three_tensors.cairo index 75c9c14ae..8daec0bf4 100644 --- a/tests/nodes/min_u32_three_tensors.cairo +++ b/tests/nodes/min_u32_three_tensors.cairo @@ -5,10 +5,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_u32_three_tensors/input_0.cairo b/tests/nodes/min_u32_three_tensors/input_0.cairo index 9a87029a4..2b5aa08ed 100644 --- a/tests/nodes/min_u32_three_tensors/input_0.cairo +++ b/tests/nodes/min_u32_three_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(5); + data.append(3); + data.append(4); data.append(0); data.append(1); - data.append(4); - data.append(5); data.append(1); data.append(2); data.append(4); - data.append(3); - data.append(1); - data.append(2); - data.append(3); data.append(0); data.append(0); - data.append(3); - data.append(3); - data.append(4); data.append(1); - data.append(0); + data.append(1); data.append(5); - data.append(3); + data.append(5); + data.append(1); data.append(4); + data.append(5); data.append(3); - data.append(0); data.append(1); + data.append(2); + data.append(3); + data.append(3); data.append(3); data.append(3); data.append(1); + data.append(5); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_three_tensors/input_1.cairo b/tests/nodes/min_u32_three_tensors/input_1.cairo index 9394ced5b..aab3c2045 100644 --- a/tests/nodes/min_u32_three_tensors/input_1.cairo +++ b/tests/nodes/min_u32_three_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(4); data.append(0); + data.append(1); + data.append(2); data.append(3); data.append(1); - data.append(5); data.append(3); - data.append(4); - data.append(5); data.append(2); - data.append(1); - data.append(5); data.append(5); data.append(2); - data.append(3); - data.append(3); data.append(1); data.append(3); + data.append(0); + data.append(2); + data.append(4); + data.append(4); data.append(1); data.append(4); - data.append(3); - data.append(2); + data.append(4); + data.append(5); data.append(4); data.append(2); data.append(2); - data.append(0); - data.append(5); data.append(5); + data.append(2); data.append(4); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_three_tensors/input_2.cairo b/tests/nodes/min_u32_three_tensors/input_2.cairo index dca21f1bd..97b6cfbc1 100644 --- a/tests/nodes/min_u32_three_tensors/input_2.cairo +++ b/tests/nodes/min_u32_three_tensors/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(1); - data.append(3); data.append(4); data.append(3); - data.append(5); - data.append(2); + data.append(4); + data.append(1); + data.append(1); data.append(4); data.append(2); data.append(3); + data.append(5); + data.append(4); + data.append(1); + data.append(0); data.append(3); data.append(1); data.append(4); + data.append(2); + data.append(2); data.append(5); + data.append(0); data.append(2); - data.append(3); data.append(0); + data.append(2); data.append(1); + data.append(5); + data.append(5); data.append(3); - data.append(1); data.append(3); - data.append(1); - data.append(0); - data.append(1); - data.append(0); - data.append(1); - data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_three_tensors/output_0.cairo b/tests/nodes/min_u32_three_tensors/output_0.cairo index fe9314f39..ee92f79e9 100644 --- a/tests/nodes/min_u32_three_tensors/output_0.cairo +++ b/tests/nodes/min_u32_three_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(4); data.append(0); data.append(1); + data.append(0); data.append(1); - data.append(4); data.append(1); data.append(2); data.append(2); - data.append(2); - data.append(1); - data.append(2); - data.append(3); data.append(0); data.append(0); - data.append(3); data.append(1); - data.append(3); data.append(0); data.append(0); - data.append(3); data.append(1); - data.append(3); data.append(1); + data.append(2); + data.append(1); + data.append(3); data.append(0); + data.append(2); data.append(0); - data.append(0); + data.append(2); data.append(1); + data.append(3); + data.append(1); + data.append(3); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_two_tensors.cairo b/tests/nodes/min_u32_two_tensors.cairo index be944d2ea..af79b596f 100644 --- a/tests/nodes/min_u32_two_tensors.cairo +++ b/tests/nodes/min_u32_two_tensors.cairo @@ -4,10 +4,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/min_u32_two_tensors/input_0.cairo b/tests/nodes/min_u32_two_tensors/input_0.cairo index 4bb42d5b6..3e2db6a06 100644 --- a/tests/nodes/min_u32_two_tensors/input_0.cairo +++ b/tests/nodes/min_u32_two_tensors/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(5); - data.append(4); + data.append(0); + data.append(0); data.append(1); - data.append(2); + data.append(0); data.append(1); data.append(4); - data.append(2); - data.append(2); - data.append(3); - data.append(2); data.append(0); + data.append(0); + data.append(2); data.append(5); - data.append(3); - data.append(5); - data.append(4); - data.append(3); data.append(0); data.append(5); - data.append(3); data.append(2); data.append(5); - data.append(5); + data.append(2); data.append(4); data.append(4); + data.append(1); + data.append(1); data.append(3); data.append(2); + data.append(1); + data.append(5); + data.append(3); + data.append(0); + data.append(4); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_two_tensors/input_1.cairo b/tests/nodes/min_u32_two_tensors/input_1.cairo index c8af5f982..64fb2e978 100644 --- a/tests/nodes/min_u32_two_tensors/input_1.cairo +++ b/tests/nodes/min_u32_two_tensors/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(2); + data.append(1); + data.append(4); + data.append(4); + data.append(4); + data.append(5); + data.append(4); data.append(4); data.append(2); data.append(2); data.append(4); - data.append(1); - data.append(3); - data.append(3); + data.append(2); data.append(0); data.append(5); - data.append(1); - data.append(5); data.append(4); - data.append(1); - data.append(2); - data.append(5); - data.append(5); - data.append(5); + data.append(0); data.append(5); data.append(2); - data.append(1); - data.append(2); data.append(3); - data.append(5); - data.append(0); data.append(4); - data.append(3); data.append(5); + data.append(3); + data.append(1); + data.append(4); + data.append(4); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/min_u32_two_tensors/output_0.cairo b/tests/nodes/min_u32_two_tensors/output_0.cairo index 68c5d7d20..730228408 100644 --- a/tests/nodes/min_u32_two_tensors/output_0.cairo +++ b/tests/nodes/min_u32_two_tensors/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(4); - data.append(2); - data.append(2); - data.append(1); + data.append(0); + data.append(0); data.append(1); + data.append(0); data.append(1); - data.append(3); + data.append(4); + data.append(0); data.append(0); data.append(2); - data.append(1); data.append(2); data.append(0); - data.append(1); - data.append(2); - data.append(5); data.append(4); - data.append(3); + data.append(2); data.append(0); data.append(2); + data.append(4); + data.append(0); + data.append(1); data.append(1); + data.append(3); data.append(2); + data.append(1); data.append(3); - data.append(5); + data.append(1); data.append(0); data.append(4); - data.append(3); - data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp16x16.cairo b/tests/nodes/mul_fp16x16.cairo index f7f37bd1e..0e1aaeb98 100644 --- a/tests/nodes/mul_fp16x16.cairo +++ b/tests/nodes/mul_fp16x16.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_fp16x16/input_0.cairo b/tests/nodes/mul_fp16x16/input_0.cairo index bdc04703f..a01d54623 100644 --- a/tests/nodes/mul_fp16x16/input_0.cairo +++ b/tests/nodes/mul_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp16x16/input_1.cairo b/tests/nodes/mul_fp16x16/input_1.cairo index d7e207d4d..3eab9ecca 100644 --- a/tests/nodes/mul_fp16x16/input_1.cairo +++ b/tests/nodes/mul_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp16x16/output_0.cairo b/tests/nodes/mul_fp16x16/output_0.cairo index a3f6bce43..f5d191e0b 100644 --- a/tests/nodes/mul_fp16x16/output_0.cairo +++ b/tests/nodes/mul_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp16x16_broadcast.cairo b/tests/nodes/mul_fp16x16_broadcast.cairo index d45e68098..712c1b6ea 100644 --- a/tests/nodes/mul_fp16x16_broadcast.cairo +++ b/tests/nodes/mul_fp16x16_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_fp16x16_broadcast/input_0.cairo b/tests/nodes/mul_fp16x16_broadcast/input_0.cairo index 5b3ef1fc0..47cd49cf6 100644 --- a/tests/nodes/mul_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/mul_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp16x16_broadcast/input_1.cairo b/tests/nodes/mul_fp16x16_broadcast/input_1.cairo index c97c3dc64..fd5243907 100644 --- a/tests/nodes/mul_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/mul_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp16x16_broadcast/output_0.cairo b/tests/nodes/mul_fp16x16_broadcast/output_0.cairo index 8479fe2e8..6cdb3c631 100644 --- a/tests/nodes/mul_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/mul_fp16x16_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp8x23.cairo b/tests/nodes/mul_fp8x23.cairo index 96832bfd0..df68a25c2 100644 --- a/tests/nodes/mul_fp8x23.cairo +++ b/tests/nodes/mul_fp8x23.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_fp8x23/input_0.cairo b/tests/nodes/mul_fp8x23/input_0.cairo index 1d297862d..2f5934ad7 100644 --- a/tests/nodes/mul_fp8x23/input_0.cairo +++ b/tests/nodes/mul_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp8x23/input_1.cairo b/tests/nodes/mul_fp8x23/input_1.cairo index 8e31392e6..7e2a3a917 100644 --- a/tests/nodes/mul_fp8x23/input_1.cairo +++ b/tests/nodes/mul_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp8x23/output_0.cairo b/tests/nodes/mul_fp8x23/output_0.cairo index 0d9a5be01..55a3a2aa9 100644 --- a/tests/nodes/mul_fp8x23/output_0.cairo +++ b/tests/nodes/mul_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp8x23_broadcast.cairo b/tests/nodes/mul_fp8x23_broadcast.cairo index cd63da723..30d628c83 100644 --- a/tests/nodes/mul_fp8x23_broadcast.cairo +++ b/tests/nodes/mul_fp8x23_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_fp8x23_broadcast/input_0.cairo b/tests/nodes/mul_fp8x23_broadcast/input_0.cairo index 760d9265c..2b50bb7ea 100644 --- a/tests/nodes/mul_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/mul_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp8x23_broadcast/input_1.cairo b/tests/nodes/mul_fp8x23_broadcast/input_1.cairo index ba343693f..bba28ea20 100644 --- a/tests/nodes/mul_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/mul_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,7 +11,7 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_fp8x23_broadcast/output_0.cairo b/tests/nodes/mul_fp8x23_broadcast/output_0.cairo index 7426ac6f1..e71fbb306 100644 --- a/tests/nodes/mul_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/mul_fp8x23_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -14,29 +13,29 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i32.cairo b/tests/nodes/mul_i32.cairo index df811ac51..b4b037f3a 100644 --- a/tests/nodes/mul_i32.cairo +++ b/tests/nodes/mul_i32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorMul}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_i32/input_0.cairo b/tests/nodes/mul_i32/input_0.cairo index 6427c3a24..586b35b63 100644 --- a/tests/nodes/mul_i32/input_0.cairo +++ b/tests/nodes/mul_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); + data.append(1); + data.append(-3); + data.append(1); + data.append(-1); + data.append(1); + data.append(1); + data.append(0); + data.append(-3); + data.append(0); + data.append(-2); + data.append(1); + data.append(-3); + data.append(1); + data.append(2); + data.append(0); + data.append(-3); + data.append(0); + data.append(0); + data.append(-3); + data.append(-1); + data.append(-2); + data.append(2); + data.append(0); + data.append(-3); + data.append(-3); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i32/input_1.cairo b/tests/nodes/mul_i32/input_1.cairo index 483f69775..d8f935c6b 100644 --- a/tests/nodes/mul_i32/input_1.cairo +++ b/tests/nodes/mul_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(-2); + data.append(2); + data.append(-3); + data.append(-2); + data.append(0); + data.append(1); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(1); + data.append(1); + data.append(-2); + data.append(-2); + data.append(0); + data.append(1); + data.append(-2); + data.append(-2); + data.append(2); + data.append(0); + data.append(1); + data.append(1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i32/output_0.cairo b/tests/nodes/mul_i32/output_0.cairo index 744ac5e8c..85c83b8e6 100644 --- a/tests/nodes/mul_i32/output_0.cairo +++ b/tests/nodes/mul_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(-2); + data.append(-6); + data.append(-3); + data.append(2); + data.append(0); + data.append(1); + data.append(0); + data.append(9); + data.append(0); + data.append(-2); + data.append(1); + data.append(6); + data.append(-2); + data.append(0); + data.append(0); + data.append(6); + data.append(0); + data.append(0); + data.append(0); + data.append(-1); + data.append(-2); + data.append(-2); + data.append(0); + data.append(3); + data.append(3); + data.append(-1); + data.append(-6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i32_broadcast.cairo b/tests/nodes/mul_i32_broadcast.cairo index bcc35637a..a59b9f718 100644 --- a/tests/nodes/mul_i32_broadcast.cairo +++ b/tests/nodes/mul_i32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorMul}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_i32_broadcast/input_0.cairo b/tests/nodes/mul_i32_broadcast/input_0.cairo index 04e7ad7cc..7a1b45f53 100644 --- a/tests/nodes/mul_i32_broadcast/input_0.cairo +++ b/tests/nodes/mul_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-1); + data.append(1); + data.append(2); + data.append(-1); + data.append(-2); + data.append(2); + data.append(-3); + data.append(-2); + data.append(2); + data.append(1); + data.append(2); + data.append(-3); + data.append(1); + data.append(-3); + data.append(2); + data.append(1); + data.append(-1); + data.append(-3); + data.append(-2); + data.append(-2); + data.append(0); + data.append(-1); + data.append(2); + data.append(-2); + data.append(-1); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i32_broadcast/input_1.cairo b/tests/nodes/mul_i32_broadcast/input_1.cairo index 8f27c7600..89ba19dd0 100644 --- a/tests/nodes/mul_i32_broadcast/input_1.cairo +++ b/tests/nodes/mul_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(-3); + data.append(-1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i32_broadcast/output_0.cairo b/tests/nodes/mul_i32_broadcast/output_0.cairo index 566074c4c..56e1e9169 100644 --- a/tests/nodes/mul_i32_broadcast/output_0.cairo +++ b/tests/nodes/mul_i32_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(3); + data.append(-3); + data.append(-6); + data.append(1); + data.append(2); + data.append(-2); + data.append(-3); + data.append(-2); + data.append(2); + data.append(-3); + data.append(-6); + data.append(9); + data.append(-1); + data.append(3); + data.append(-2); + data.append(1); + data.append(-1); + data.append(-3); + data.append(6); + data.append(6); + data.append(0); + data.append(1); + data.append(-2); + data.append(2); + data.append(-1); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i8.cairo b/tests/nodes/mul_i8.cairo index d6ecda742..91a24bd54 100644 --- a/tests/nodes/mul_i8.cairo +++ b/tests/nodes/mul_i8.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorMul}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_i8/input_0.cairo b/tests/nodes/mul_i8/input_0.cairo index d00beb388..7255907fe 100644 --- a/tests/nodes/mul_i8/input_0.cairo +++ b/tests/nodes/mul_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(-2); + data.append(1); + data.append(1); + data.append(2); + data.append(0); + data.append(-2); + data.append(2); + data.append(-3); + data.append(2); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(0); + data.append(-2); + data.append(-2); + data.append(0); + data.append(-1); + data.append(1); + data.append(-1); + data.append(-2); + data.append(0); + data.append(-1); + data.append(0); + data.append(0); + data.append(-1); + data.append(2); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i8/input_1.cairo b/tests/nodes/mul_i8/input_1.cairo index b9c15c19b..e189e0f0b 100644 --- a/tests/nodes/mul_i8/input_1.cairo +++ b/tests/nodes/mul_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(-2); + data.append(2); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(1); + data.append(-1); + data.append(2); + data.append(-1); + data.append(2); + data.append(-3); + data.append(-1); + data.append(2); + data.append(-3); + data.append(1); + data.append(1); + data.append(-2); + data.append(1); + data.append(-3); + data.append(-3); + data.append(-3); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i8/output_0.cairo b/tests/nodes/mul_i8/output_0.cairo index 946602695..a1d080de9 100644 --- a/tests/nodes/mul_i8/output_0.cairo +++ b/tests/nodes/mul_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 6, sign: false }); + data.append(2); + data.append(-1); + data.append(-3); + data.append(-4); + data.append(0); + data.append(6); + data.append(-2); + data.append(3); + data.append(-4); + data.append(-1); + data.append(1); + data.append(-6); + data.append(0); + data.append(-4); + data.append(6); + data.append(0); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(-2); + data.append(0); + data.append(-1); + data.append(0); + data.append(0); + data.append(3); + data.append(2); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i8_broadcast.cairo b/tests/nodes/mul_i8_broadcast.cairo index 25bd18c5c..cadf6035c 100644 --- a/tests/nodes/mul_i8_broadcast.cairo +++ b/tests/nodes/mul_i8_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::{I8Tensor, I8TensorMul}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_i8_broadcast/input_0.cairo b/tests/nodes/mul_i8_broadcast/input_0.cairo index ebb41e8fe..aa6f2c95c 100644 --- a/tests/nodes/mul_i8_broadcast/input_0.cairo +++ b/tests/nodes/mul_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(0); + data.append(2); + data.append(1); + data.append(0); + data.append(0); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-1); + data.append(1); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(0); + data.append(0); + data.append(1); + data.append(-3); + data.append(1); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i8_broadcast/input_1.cairo b/tests/nodes/mul_i8_broadcast/input_1.cairo index a5d691d0e..1950c99d9 100644 --- a/tests/nodes/mul_i8_broadcast/input_1.cairo +++ b/tests/nodes/mul_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); + data.append(1); + data.append(0); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_i8_broadcast/output_0.cairo b/tests/nodes/mul_i8_broadcast/output_0.cairo index 71949ade4..fdac0fbb0 100644 --- a/tests/nodes/mul_i8_broadcast/output_0.cairo +++ b/tests/nodes/mul_i8_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(0); + data.append(0); + data.append(0); + data.append(-2); + data.append(0); + data.append(-2); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(-1); + data.append(3); + data.append(-1); + data.append(-1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(-1); + data.append(-1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_u32.cairo b/tests/nodes/mul_u32.cairo index 9d2545dc8..ed92e6310 100644 --- a/tests/nodes/mul_u32.cairo +++ b/tests/nodes/mul_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{U32Tensor, U32TensorMul}; -use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_u32/input_0.cairo b/tests/nodes/mul_u32/input_0.cairo index 8084d0d50..dac35b52b 100644 --- a/tests/nodes/mul_u32/input_0.cairo +++ b/tests/nodes/mul_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); data.append(4); data.append(3); - data.append(4); - data.append(4); data.append(5); - data.append(4); - data.append(4); - data.append(4); - data.append(4); - data.append(4); data.append(5); - data.append(4); + data.append(3); data.append(5); - data.append(4); - data.append(4); data.append(3); + data.append(5); data.append(4); + data.append(3); + data.append(5); + data.append(3); + data.append(5); + data.append(5); + data.append(3); data.append(5); data.append(4); + data.append(4); data.append(3); + data.append(5); data.append(3); data.append(3); + data.append(5); data.append(3); data.append(3); data.append(4); - data.append(3); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_u32/input_1.cairo b/tests/nodes/mul_u32/input_1.cairo index 5163f4f95..0f0ad4c6e 100644 --- a/tests/nodes/mul_u32/input_1.cairo +++ b/tests/nodes/mul_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); data.append(2); - data.append(1); data.append(2); - data.append(0); data.append(2); + data.append(1); data.append(0); data.append(0); data.append(0); data.append(2); - data.append(1); + data.append(2); data.append(0); data.append(0); - data.append(1); + data.append(2); + data.append(0); data.append(2); data.append(2); data.append(0); + data.append(1); data.append(0); + data.append(0); + data.append(2); + data.append(2); data.append(1); data.append(0); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_u32/output_0.cairo b/tests/nodes/mul_u32/output_0.cairo index d878d73e3..8c24e00ed 100644 --- a/tests/nodes/mul_u32/output_0.cairo +++ b/tests/nodes/mul_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); data.append(0); data.append(0); - data.append(4); - data.append(4); + data.append(10); + data.append(10); + data.append(6); data.append(5); - data.append(4); - data.append(8); - data.append(4); - data.append(8); data.append(0); + data.append(0); + data.append(0); + data.append(6); data.append(10); data.append(0); data.append(0); + data.append(10); data.append(0); + data.append(10); data.append(8); + data.append(0); data.append(3); data.append(0); data.append(0); - data.append(4); - data.append(6); data.append(6); - data.append(0); - data.append(0); + data.append(10); data.append(3); data.append(0); - data.append(3); + data.append(0); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_u32_broadcast.cairo b/tests/nodes/mul_u32_broadcast.cairo index bc0052dfb..4f74a6a38 100644 --- a/tests/nodes/mul_u32_broadcast.cairo +++ b/tests/nodes/mul_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::{U32Tensor, U32TensorMul}; -use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/mul_u32_broadcast/input_0.cairo b/tests/nodes/mul_u32_broadcast/input_0.cairo index a9c9f248a..72145647c 100644 --- a/tests/nodes/mul_u32_broadcast/input_0.cairo +++ b/tests/nodes/mul_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(4); data.append(3); data.append(5); data.append(5); - data.append(3); - data.append(3); - data.append(5); data.append(4); - data.append(3); data.append(5); + data.append(3); + data.append(4); + data.append(4); + data.append(4); + data.append(4); data.append(4); - data.append(5); data.append(4); - data.append(5); data.append(3); data.append(5); - data.append(3); data.append(4); data.append(4); data.append(5); data.append(4); + data.append(4); + data.append(4); + data.append(3); data.append(5); data.append(3); data.append(3); data.append(4); - data.append(5); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_u32_broadcast/input_1.cairo b/tests/nodes/mul_u32_broadcast/input_1.cairo index e6c6a0131..3665a8291 100644 --- a/tests/nodes/mul_u32_broadcast/input_1.cairo +++ b/tests/nodes/mul_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/mul_u32_broadcast/output_0.cairo b/tests/nodes/mul_u32_broadcast/output_0.cairo index 1e8ca2a95..d7dd71c34 100644 --- a/tests/nodes/mul_u32_broadcast/output_0.cairo +++ b/tests/nodes/mul_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(4); - data.append(3); data.append(0); data.append(0); data.append(0); - data.append(3); data.append(5); data.append(4); - data.append(3); data.append(5); - data.append(4); + data.append(6); + data.append(8); + data.append(8); data.append(0); data.append(0); data.append(0); - data.append(3); - data.append(5); - data.append(3); - data.append(4); data.append(4); + data.append(3); data.append(5); + data.append(8); + data.append(8); + data.append(10); data.append(0); data.append(0); data.append(0); data.append(3); - data.append(4); data.append(5); + data.append(3); + data.append(6); + data.append(8); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_fp16x16.cairo b/tests/nodes/neg_fp16x16.cairo index da83b64f7..ded738915 100644 --- a/tests/nodes/neg_fp16x16.cairo +++ b/tests/nodes/neg_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/neg_fp16x16/input_0.cairo b/tests/nodes/neg_fp16x16/input_0.cairo index 2c852d5af..8bd53bd42 100644 --- a/tests/nodes/neg_fp16x16/input_0.cairo +++ b/tests/nodes/neg_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_fp16x16/output_0.cairo b/tests/nodes/neg_fp16x16/output_0.cairo index 52f633deb..2cd122ca9 100644 --- a/tests/nodes/neg_fp16x16/output_0.cairo +++ b/tests/nodes/neg_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_fp8x23.cairo b/tests/nodes/neg_fp8x23.cairo index c250cec1a..af4853157 100644 --- a/tests/nodes/neg_fp8x23.cairo +++ b/tests/nodes/neg_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/neg_fp8x23/input_0.cairo b/tests/nodes/neg_fp8x23/input_0.cairo index ac883f560..4d7e415d6 100644 --- a/tests/nodes/neg_fp8x23/input_0.cairo +++ b/tests/nodes/neg_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_fp8x23/output_0.cairo b/tests/nodes/neg_fp8x23/output_0.cairo index de69608c3..3144b9599 100644 --- a/tests/nodes/neg_fp8x23/output_0.cairo +++ b/tests/nodes/neg_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_i32.cairo b/tests/nodes/neg_i32.cairo index efbdf0c92..8e900dfd5 100644 --- a/tests/nodes/neg_i32.cairo +++ b/tests/nodes/neg_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/neg_i32/input_0.cairo b/tests/nodes/neg_i32/input_0.cairo index 5fb5552bd..a134ad11d 100644 --- a/tests/nodes/neg_i32/input_0.cairo +++ b/tests/nodes/neg_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 77, sign: true }); + data.append(-17); + data.append(116); + data.append(-66); + data.append(18); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_i32/output_0.cairo b/tests/nodes/neg_i32/output_0.cairo index f2b2482e0..8f96b4e9b 100644 --- a/tests/nodes/neg_i32/output_0.cairo +++ b/tests/nodes/neg_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 77, sign: false }); + data.append(17); + data.append(-116); + data.append(66); + data.append(-18); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_i8.cairo b/tests/nodes/neg_i8.cairo index 17ed8945d..ccf5df377 100644 --- a/tests/nodes/neg_i8.cairo +++ b/tests/nodes/neg_i8.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/neg_i8/input_0.cairo b/tests/nodes/neg_i8/input_0.cairo index f0edb8fcb..3c88091bd 100644 --- a/tests/nodes/neg_i8/input_0.cairo +++ b/tests/nodes/neg_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 63, sign: true }); + data.append(83); + data.append(51); + data.append(20); + data.append(15); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/neg_i8/output_0.cairo b/tests/nodes/neg_i8/output_0.cairo index 9b48bb011..966ecbbfb 100644 --- a/tests/nodes/neg_i8/output_0.cairo +++ b/tests/nodes/neg_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 63, sign: false }); + data.append(-83); + data.append(-51); + data.append(-20); + data.append(-15); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_fp16x16_2d.cairo b/tests/nodes/nonzero_fp16x16_2d.cairo index 24cc72732..baa39d14e 100644 --- a/tests/nodes/nonzero_fp16x16_2d.cairo +++ b/tests/nodes/nonzero_fp16x16_2d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_fp16x16_2d/input_0.cairo b/tests/nodes/nonzero_fp16x16_2d/input_0.cairo index f9a59cf49..ba03fa03b 100644 --- a/tests/nodes/nonzero_fp16x16_2d/input_0.cairo +++ b/tests/nodes/nonzero_fp16x16_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_fp16x16_2d/output_0.cairo b/tests/nodes/nonzero_fp16x16_2d/output_0.cairo index a2071fc22..a5a01bf7a 100644 --- a/tests/nodes/nonzero_fp16x16_2d/output_0.cairo +++ b/tests/nodes/nonzero_fp16x16_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/nonzero_fp16x16_3d.cairo b/tests/nodes/nonzero_fp16x16_3d.cairo index c0dc50fc0..86bd1b42b 100644 --- a/tests/nodes/nonzero_fp16x16_3d.cairo +++ b/tests/nodes/nonzero_fp16x16_3d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_fp16x16_3d/input_0.cairo b/tests/nodes/nonzero_fp16x16_3d/input_0.cairo index ffc27e669..4a752772d 100644 --- a/tests/nodes/nonzero_fp16x16_3d/input_0.cairo +++ b/tests/nodes/nonzero_fp16x16_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); data.append(FP16x16 { mag: 6619136, sign: true }); data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: true }); data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 8323072, sign: true }); data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: false }); data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: true }); data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: true }); data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: true }); data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: true }); data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: true }); data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: true }); data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_fp16x16_3d/output_0.cairo b/tests/nodes/nonzero_fp16x16_3d/output_0.cairo index a387cd5ae..97b82f77a 100644 --- a/tests/nodes/nonzero_fp16x16_3d/output_0.cairo +++ b/tests/nodes/nonzero_fp16x16_3d/output_0.cairo @@ -1,11 +1,11 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(997); + shape.append(998); let mut data = ArrayTrait::new(); data.append(0); @@ -157,7 +157,7 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); - data.append(3); + data.append(2); data.append(3); data.append(3); data.append(3); @@ -306,6 +306,7 @@ fn output_0() -> Tensor { data.append(5); data.append(5); data.append(5); + data.append(5); data.append(6); data.append(6); data.append(6); @@ -905,7 +906,7 @@ fn output_0() -> Tensor { data.append(17); data.append(17); data.append(17); - data.append(18); + data.append(17); data.append(18); data.append(18); data.append(18); @@ -1139,6 +1140,7 @@ fn output_0() -> Tensor { data.append(6); data.append(6); data.append(6); + data.append(6); data.append(7); data.append(7); data.append(7); @@ -1183,7 +1185,6 @@ fn output_0() -> Tensor { data.append(5); data.append(5); data.append(5); - data.append(5); data.append(6); data.append(6); data.append(6); @@ -1298,6 +1299,7 @@ fn output_0() -> Tensor { data.append(8); data.append(8); data.append(8); + data.append(8); data.append(9); data.append(9); data.append(9); @@ -1882,6 +1884,7 @@ fn output_0() -> Tensor { data.append(5); data.append(5); data.append(5); + data.append(5); data.append(6); data.append(6); data.append(6); @@ -1906,7 +1909,6 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(0); data.append(1); data.append(1); data.append(1); @@ -2136,6 +2138,7 @@ fn output_0() -> Tensor { data.append(1); data.append(2); data.append(3); + data.append(4); data.append(0); data.append(1); data.append(2); @@ -2178,7 +2181,6 @@ fn output_0() -> Tensor { data.append(4); data.append(0); data.append(1); - data.append(2); data.append(3); data.append(4); data.append(0); @@ -2295,6 +2297,7 @@ fn output_0() -> Tensor { data.append(1); data.append(2); data.append(3); + data.append(4); data.append(0); data.append(1); data.append(2); @@ -2875,6 +2878,7 @@ fn output_0() -> Tensor { data.append(2); data.append(3); data.append(4); + data.append(0); data.append(1); data.append(2); data.append(3); @@ -2903,7 +2907,6 @@ fn output_0() -> Tensor { data.append(1); data.append(2); data.append(3); - data.append(4); data.append(0); data.append(1); data.append(2); diff --git a/tests/nodes/nonzero_fp8x23_2d.cairo b/tests/nodes/nonzero_fp8x23_2d.cairo index 01b0d2dc4..7adec8e1d 100644 --- a/tests/nodes/nonzero_fp8x23_2d.cairo +++ b/tests/nodes/nonzero_fp8x23_2d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_fp8x23_2d/input_0.cairo b/tests/nodes/nonzero_fp8x23_2d/input_0.cairo index 35e60c703..c466b0f94 100644 --- a/tests/nodes/nonzero_fp8x23_2d/input_0.cairo +++ b/tests/nodes/nonzero_fp8x23_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_fp8x23_2d/output_0.cairo b/tests/nodes/nonzero_fp8x23_2d/output_0.cairo index a2071fc22..a5a01bf7a 100644 --- a/tests/nodes/nonzero_fp8x23_2d/output_0.cairo +++ b/tests/nodes/nonzero_fp8x23_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/nonzero_fp8x23_3d.cairo b/tests/nodes/nonzero_fp8x23_3d.cairo index 69e413a54..94ac9f088 100644 --- a/tests/nodes/nonzero_fp8x23_3d.cairo +++ b/tests/nodes/nonzero_fp8x23_3d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_fp8x23_3d/input_0.cairo b/tests/nodes/nonzero_fp8x23_3d/input_0.cairo index 1f7ea9fae..ebb6239a8 100644 --- a/tests/nodes/nonzero_fp8x23_3d/input_0.cairo +++ b/tests/nodes/nonzero_fp8x23_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: true }); data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: true }); data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: true }); data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: true }); data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: false }); data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: true }); data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: true }); data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: true }); data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: true }); data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: true }); data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: false }); data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: true }); data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: true }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: false }); data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: true }); data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 964689920, sign: false }); data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: true }); data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: true }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_fp8x23_3d/output_0.cairo b/tests/nodes/nonzero_fp8x23_3d/output_0.cairo index e3fadc061..f5f24837f 100644 --- a/tests/nodes/nonzero_fp8x23_3d/output_0.cairo +++ b/tests/nodes/nonzero_fp8x23_3d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -57,7 +57,7 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); @@ -155,7 +155,6 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); - data.append(2); data.append(3); data.append(3); data.append(3); @@ -855,6 +854,7 @@ fn output_0() -> Tensor { data.append(16); data.append(16); data.append(16); + data.append(16); data.append(17); data.append(17); data.append(17); @@ -1029,6 +1029,7 @@ fn output_0() -> Tensor { data.append(4); data.append(4); data.append(4); + data.append(4); data.append(5); data.append(5); data.append(5); @@ -1058,8 +1059,6 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(0); - data.append(1); data.append(1); data.append(1); data.append(1); @@ -1083,6 +1082,7 @@ fn output_0() -> Tensor { data.append(5); data.append(5); data.append(5); + data.append(5); data.append(6); data.append(6); data.append(6); @@ -1137,7 +1137,6 @@ fn output_0() -> Tensor { data.append(6); data.append(6); data.append(6); - data.append(6); data.append(7); data.append(7); data.append(7); @@ -1812,6 +1811,7 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); + data.append(1); data.append(2); data.append(2); data.append(2); @@ -2025,6 +2025,7 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); + data.append(3); data.append(4); data.append(0); data.append(1); @@ -2051,14 +2052,12 @@ fn output_0() -> Tensor { data.append(2); data.append(3); data.append(4); - data.append(0); data.append(1); data.append(2); data.append(3); data.append(4); data.append(0); data.append(1); - data.append(2); data.append(3); data.append(4); data.append(0); @@ -2076,6 +2075,7 @@ fn output_0() -> Tensor { data.append(2); data.append(3); data.append(4); + data.append(0); data.append(1); data.append(2); data.append(3); @@ -2133,7 +2133,6 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); - data.append(3); data.append(4); data.append(0); data.append(1); @@ -2809,6 +2808,7 @@ fn output_0() -> Tensor { data.append(1); data.append(2); data.append(3); + data.append(4); data.append(0); data.append(1); data.append(2); diff --git a/tests/nodes/nonzero_i32_2d.cairo b/tests/nodes/nonzero_i32_2d.cairo index 1c45f863c..45f407dec 100644 --- a/tests/nodes/nonzero_i32_2d.cairo +++ b/tests/nodes/nonzero_i32_2d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_i32_2d/input_0.cairo b/tests/nodes/nonzero_i32_2d/input_0.cairo index af21bb5a2..62c2153b7 100644 --- a/tests/nodes/nonzero_i32_2d/input_0.cairo +++ b/tests/nodes/nonzero_i32_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 86, sign: true }); + data.append(-70); + data.append(71); + data.append(121); + data.append(106); + data.append(-89); + data.append(11); + data.append(-69); + data.append(-78); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_i32_2d/output_0.cairo b/tests/nodes/nonzero_i32_2d/output_0.cairo index a2071fc22..a5a01bf7a 100644 --- a/tests/nodes/nonzero_i32_2d/output_0.cairo +++ b/tests/nodes/nonzero_i32_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/nonzero_i32_3d.cairo b/tests/nodes/nonzero_i32_3d.cairo index fd8d92ae5..0a1c18b45 100644 --- a/tests/nodes/nonzero_i32_3d.cairo +++ b/tests/nodes/nonzero_i32_3d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_i32_3d/input_0.cairo b/tests/nodes/nonzero_i32_3d/input_0.cairo index c8d9c150f..d6281ed06 100644 --- a/tests/nodes/nonzero_i32_3d/input_0.cairo +++ b/tests/nodes/nonzero_i32_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 96, sign: false }); + data.append(78); + data.append(-73); + data.append(-120); + data.append(37); + data.append(69); + data.append(59); + data.append(-57); + data.append(-36); + data.append(-5); + data.append(98); + data.append(98); + data.append(-91); + data.append(-64); + data.append(49); + data.append(90); + data.append(104); + data.append(-87); + data.append(78); + data.append(120); + data.append(124); + data.append(56); + data.append(-100); + data.append(-72); + data.append(70); + data.append(-3); + data.append(95); + data.append(42); + data.append(-7); + data.append(113); + data.append(-33); + data.append(18); + data.append(18); + data.append(-103); + data.append(-117); + data.append(-108); + data.append(-84); + data.append(-64); + data.append(96); + data.append(1); + data.append(117); + data.append(115); + data.append(-56); + data.append(74); + data.append(-75); + data.append(62); + data.append(-51); + data.append(-26); + data.append(94); + data.append(-87); + data.append(-51); + data.append(-48); + data.append(-124); + data.append(7); + data.append(84); + data.append(21); + data.append(122); + data.append(-95); + data.append(-118); + data.append(-68); + data.append(-100); + data.append(-107); + data.append(-116); + data.append(-2); + data.append(-100); + data.append(114); + data.append(123); + data.append(56); + data.append(-104); + data.append(-112); + data.append(-102); + data.append(37); + data.append(-110); + data.append(-89); + data.append(9); + data.append(47); + data.append(-111); + data.append(-69); + data.append(-121); + data.append(9); + data.append(-92); + data.append(60); + data.append(123); + data.append(44); + data.append(0); + data.append(-116); + data.append(-1); + data.append(-126); + data.append(18); + data.append(51); + data.append(40); + data.append(32); + data.append(30); + data.append(-64); + data.append(-112); + data.append(-117); + data.append(-40); + data.append(75); + data.append(-30); + data.append(-42); + data.append(-5); + data.append(120); + data.append(86); + data.append(-25); + data.append(-18); + data.append(26); + data.append(1); + data.append(77); + data.append(113); + data.append(-88); + data.append(50); + data.append(-82); + data.append(23); + data.append(-10); + data.append(-4); + data.append(-80); + data.append(-71); + data.append(-46); + data.append(16); + data.append(-45); + data.append(-21); + data.append(-104); + data.append(4); + data.append(-97); + data.append(77); + data.append(120); + data.append(58); + data.append(86); + data.append(-47); + data.append(6); + data.append(-8); + data.append(37); + data.append(-102); + data.append(-58); + data.append(40); + data.append(-77); + data.append(-93); + data.append(99); + data.append(14); + data.append(-117); + data.append(-121); + data.append(-29); + data.append(28); + data.append(62); + data.append(116); + data.append(-24); + data.append(-33); + data.append(120); + data.append(-77); + data.append(54); + data.append(-84); + data.append(19); + data.append(96); + data.append(76); + data.append(119); + data.append(-99); + data.append(-71); + data.append(16); + data.append(110); + data.append(-99); + data.append(89); + data.append(-22); + data.append(-35); + data.append(24); + data.append(-41); + data.append(12); + data.append(72); + data.append(-80); + data.append(22); + data.append(113); + data.append(6); + data.append(73); + data.append(-60); + data.append(-52); + data.append(66); + data.append(-2); + data.append(96); + data.append(-11); + data.append(97); + data.append(9); + data.append(-60); + data.append(107); + data.append(-61); + data.append(-114); + data.append(-106); + data.append(102); + data.append(53); + data.append(-50); + data.append(33); + data.append(55); + data.append(-103); + data.append(-20); + data.append(-62); + data.append(102); + data.append(82); + data.append(-46); + data.append(-26); + data.append(36); + data.append(14); + data.append(8); + data.append(46); + data.append(-50); + data.append(-79); + data.append(83); + data.append(15); + data.append(68); + data.append(-18); + data.append(75); + data.append(47); + data.append(38); + data.append(98); + data.append(-87); + data.append(-92); + data.append(5); + data.append(36); + data.append(55); + data.append(-101); + data.append(2); + data.append(-117); + data.append(-57); + data.append(-82); + data.append(67); + data.append(52); + data.append(53); + data.append(104); + data.append(-75); + data.append(53); + data.append(1); + data.append(-98); + data.append(-82); + data.append(33); + data.append(114); + data.append(-110); + data.append(77); + data.append(-31); + data.append(72); + data.append(-34); + data.append(123); + data.append(-61); + data.append(120); + data.append(-30); + data.append(43); + data.append(-37); + data.append(71); + data.append(6); + data.append(-22); + data.append(45); + data.append(-48); + data.append(-45); + data.append(11); + data.append(-62); + data.append(123); + data.append(-82); + data.append(114); + data.append(87); + data.append(90); + data.append(121); + data.append(106); + data.append(-113); + data.append(-122); + data.append(118); + data.append(2); + data.append(96); + data.append(-39); + data.append(-99); + data.append(-55); + data.append(87); + data.append(-45); + data.append(96); + data.append(46); + data.append(-95); + data.append(100); + data.append(20); + data.append(-27); + data.append(94); + data.append(-61); + data.append(60); + data.append(-107); + data.append(85); + data.append(51); + data.append(-84); + data.append(-48); + data.append(-59); + data.append(-50); + data.append(-65); + data.append(101); + data.append(-28); + data.append(94); + data.append(70); + data.append(-99); + data.append(-50); + data.append(120); + data.append(-103); + data.append(-38); + data.append(2); + data.append(-7); + data.append(12); + data.append(89); + data.append(70); + data.append(49); + data.append(107); + data.append(56); + data.append(29); + data.append(-37); + data.append(-29); + data.append(-85); + data.append(116); + data.append(125); + data.append(-3); + data.append(-94); + data.append(-100); + data.append(-82); + data.append(-9); + data.append(-17); + data.append(-74); + data.append(-113); + data.append(-32); + data.append(-115); + data.append(114); + data.append(-51); + data.append(8); + data.append(38); + data.append(-75); + data.append(-40); + data.append(-31); + data.append(36); + data.append(84); + data.append(12); + data.append(-80); + data.append(12); + data.append(-92); + data.append(126); + data.append(111); + data.append(62); + data.append(104); + data.append(51); + data.append(75); + data.append(-95); + data.append(-54); + data.append(106); + data.append(6); + data.append(-76); + data.append(118); + data.append(-110); + data.append(-60); + data.append(-16); + data.append(25); + data.append(3); + data.append(-105); + data.append(-124); + data.append(-78); + data.append(-85); + data.append(-24); + data.append(66); + data.append(50); + data.append(54); + data.append(-12); + data.append(-10); + data.append(-60); + data.append(-11); + data.append(46); + data.append(31); + data.append(-76); + data.append(-23); + data.append(23); + data.append(-92); + data.append(-15); + data.append(-52); + data.append(-31); + data.append(68); + data.append(94); + data.append(42); + data.append(-68); + data.append(108); + data.append(51); + data.append(-68); + data.append(-4); + data.append(44); + data.append(66); + data.append(105); + data.append(16); + data.append(-21); + data.append(-113); + data.append(-41); + data.append(44); + data.append(-17); + data.append(37); + data.append(-103); + data.append(-117); + data.append(65); + data.append(125); + data.append(103); + data.append(-40); + data.append(-72); + data.append(-127); + data.append(47); + data.append(-3); + data.append(2); + data.append(-111); + data.append(107); + data.append(42); + data.append(-34); + data.append(37); + data.append(81); + data.append(-46); + data.append(4); + data.append(-95); + data.append(-80); + data.append(92); + data.append(-72); + data.append(-43); + data.append(-26); + data.append(-113); + data.append(-117); + data.append(-11); + data.append(-21); + data.append(99); + data.append(63); + data.append(-36); + data.append(14); + data.append(-124); + data.append(-18); + data.append(91); + data.append(121); + data.append(-4); + data.append(-74); + data.append(103); + data.append(-61); + data.append(108); + data.append(58); + data.append(83); + data.append(-73); + data.append(72); + data.append(92); + data.append(-31); + data.append(-12); + data.append(-30); + data.append(50); + data.append(-105); + data.append(16); + data.append(-93); + data.append(68); + data.append(-103); + data.append(-60); + data.append(121); + data.append(80); + data.append(-90); + data.append(0); + data.append(49); + data.append(7); + data.append(11); + data.append(-89); + data.append(-37); + data.append(-96); + data.append(102); + data.append(38); + data.append(-30); + data.append(-127); + data.append(4); + data.append(31); + data.append(-66); + data.append(23); + data.append(20); + data.append(91); + data.append(-116); + data.append(-40); + data.append(41); + data.append(35); + data.append(-120); + data.append(-79); + data.append(-12); + data.append(-77); + data.append(-103); + data.append(93); + data.append(-65); + data.append(103); + data.append(47); + data.append(24); + data.append(-77); + data.append(-42); + data.append(-25); + data.append(96); + data.append(105); + data.append(15); + data.append(-107); + data.append(114); + data.append(-123); + data.append(-101); + data.append(57); + data.append(102); + data.append(94); + data.append(-64); + data.append(37); + data.append(-90); + data.append(16); + data.append(81); + data.append(-92); + data.append(14); + data.append(-84); + data.append(78); + data.append(-115); + data.append(99); + data.append(-97); + data.append(-81); + data.append(85); + data.append(90); + data.append(53); + data.append(8); + data.append(-34); + data.append(-58); + data.append(-60); + data.append(43); + data.append(-67); + data.append(-6); + data.append(-8); + data.append(25); + data.append(-93); + data.append(-8); + data.append(11); + data.append(6); + data.append(52); + data.append(106); + data.append(-113); + data.append(-101); + data.append(43); + data.append(-119); + data.append(-102); + data.append(89); + data.append(106); + data.append(-47); + data.append(-109); + data.append(-117); + data.append(92); + data.append(-79); + data.append(82); + data.append(-124); + data.append(63); + data.append(120); + data.append(-6); + data.append(-58); + data.append(-101); + data.append(-58); + data.append(29); + data.append(-118); + data.append(42); + data.append(50); + data.append(114); + data.append(-110); + data.append(-63); + data.append(86); + data.append(-105); + data.append(-124); + data.append(-13); + data.append(109); + data.append(7); + data.append(-19); + data.append(85); + data.append(-14); + data.append(117); + data.append(96); + data.append(97); + data.append(82); + data.append(-35); + data.append(42); + data.append(-88); + data.append(90); + data.append(-84); + data.append(114); + data.append(-26); + data.append(101); + data.append(-72); + data.append(-6); + data.append(-50); + data.append(13); + data.append(-18); + data.append(-117); + data.append(39); + data.append(112); + data.append(103); + data.append(57); + data.append(-55); + data.append(111); + data.append(125); + data.append(-18); + data.append(118); + data.append(84); + data.append(53); + data.append(-32); + data.append(18); + data.append(61); + data.append(110); + data.append(-23); + data.append(60); + data.append(-52); + data.append(31); + data.append(-114); + data.append(-89); + data.append(76); + data.append(77); + data.append(-87); + data.append(42); + data.append(81); + data.append(28); + data.append(-47); + data.append(34); + data.append(125); + data.append(-99); + data.append(70); + data.append(47); + data.append(-69); + data.append(-54); + data.append(46); + data.append(-39); + data.append(-12); + data.append(-29); + data.append(-72); + data.append(1); + data.append(-41); + data.append(1); + data.append(-78); + data.append(47); + data.append(13); + data.append(-101); + data.append(-2); + data.append(110); + data.append(-66); + data.append(96); + data.append(-77); + data.append(-96); + data.append(-111); + data.append(62); + data.append(-75); + data.append(71); + data.append(11); + data.append(-80); + data.append(100); + data.append(89); + data.append(-3); + data.append(77); + data.append(1); + data.append(14); + data.append(46); + data.append(26); + data.append(47); + data.append(37); + data.append(108); + data.append(-20); + data.append(18); + data.append(-84); + data.append(-124); + data.append(-111); + data.append(-103); + data.append(-58); + data.append(123); + data.append(36); + data.append(-49); + data.append(86); + data.append(-114); + data.append(-80); + data.append(-76); + data.append(126); + data.append(-8); + data.append(114); + data.append(-8); + data.append(52); + data.append(-30); + data.append(18); + data.append(82); + data.append(-66); + data.append(-108); + data.append(62); + data.append(-108); + data.append(30); + data.append(34); + data.append(81); + data.append(-73); + data.append(-84); + data.append(-46); + data.append(-29); + data.append(61); + data.append(-9); + data.append(-45); + data.append(-10); + data.append(73); + data.append(125); + data.append(-4); + data.append(70); + data.append(4); + data.append(99); + data.append(-54); + data.append(-105); + data.append(-101); + data.append(-6); + data.append(2); + data.append(-1); + data.append(-58); + data.append(-109); + data.append(-122); + data.append(-60); + data.append(-87); + data.append(87); + data.append(13); + data.append(-28); + data.append(110); + data.append(42); + data.append(-37); + data.append(-108); + data.append(-25); + data.append(-90); + data.append(104); + data.append(71); + data.append(-85); + data.append(122); + data.append(-109); + data.append(-120); + data.append(62); + data.append(-125); + data.append(-33); + data.append(-65); + data.append(-89); + data.append(110); + data.append(-92); + data.append(55); + data.append(80); + data.append(-20); + data.append(92); + data.append(-118); + data.append(79); + data.append(27); + data.append(-125); + data.append(16); + data.append(-100); + data.append(14); + data.append(58); + data.append(27); + data.append(-6); + data.append(10); + data.append(94); + data.append(88); + data.append(-109); + data.append(-29); + data.append(-127); + data.append(101); + data.append(11); + data.append(-71); + data.append(116); + data.append(24); + data.append(18); + data.append(1); + data.append(50); + data.append(-71); + data.append(100); + data.append(-96); + data.append(99); + data.append(67); + data.append(-22); + data.append(-99); + data.append(58); + data.append(74); + data.append(50); + data.append(-8); + data.append(-118); + data.append(-98); + data.append(-126); + data.append(-52); + data.append(35); + data.append(-4); + data.append(-37); + data.append(81); + data.append(56); + data.append(100); + data.append(101); + data.append(-119); + data.append(52); + data.append(-23); + data.append(97); + data.append(38); + data.append(80); + data.append(23); + data.append(-19); + data.append(54); + data.append(-3); + data.append(34); + data.append(-5); + data.append(25); + data.append(-42); + data.append(91); + data.append(59); + data.append(53); + data.append(-108); + data.append(-57); + data.append(-74); + data.append(-96); + data.append(7); + data.append(95); + data.append(-7); + data.append(-93); + data.append(-93); + data.append(-111); + data.append(102); + data.append(90); + data.append(-95); + data.append(24); + data.append(-64); + data.append(46); + data.append(-60); + data.append(-89); + data.append(26); + data.append(-47); + data.append(-60); + data.append(15); + data.append(-92); + data.append(15); + data.append(-113); + data.append(32); + data.append(-39); + data.append(40); + data.append(-94); + data.append(-108); + data.append(52); + data.append(118); + data.append(86); + data.append(46); + data.append(84); + data.append(-47); + data.append(93); + data.append(-101); + data.append(15); + data.append(119); + data.append(-50); + data.append(-10); + data.append(-124); + data.append(124); + data.append(-58); + data.append(-122); + data.append(-6); + data.append(2); + data.append(-101); + data.append(43); + data.append(7); + data.append(-25); + data.append(55); + data.append(-27); + data.append(-84); + data.append(98); + data.append(91); + data.append(-26); + data.append(-98); + data.append(121); + data.append(-92); + data.append(117); + data.append(-71); + data.append(-26); + data.append(97); + data.append(76); + data.append(-89); + data.append(52); + data.append(81); + data.append(-48); + data.append(-48); + data.append(-29); + data.append(122); + data.append(125); + data.append(-69); + data.append(118); + data.append(114); + data.append(41); + data.append(47); + data.append(38); + data.append(38); + data.append(-10); + data.append(123); + data.append(-74); + data.append(89); + data.append(-59); + data.append(-29); + data.append(-39); + data.append(-127); + data.append(-70); + data.append(-32); + data.append(90); + data.append(-10); + data.append(-33); + data.append(-56); + data.append(-81); + data.append(21); + data.append(-95); + data.append(13); + data.append(26); + data.append(-121); + data.append(20); + data.append(80); + data.append(-49); + data.append(71); + data.append(-119); + data.append(-23); + data.append(65); + data.append(-24); + data.append(79); + data.append(-53); + data.append(48); + data.append(-27); + data.append(-6); + data.append(-9); + data.append(64); + data.append(9); + data.append(-58); + data.append(-52); + data.append(-43); + data.append(-97); + data.append(-102); + data.append(104); + data.append(108); + data.append(-7); + data.append(-51); + data.append(-102); + data.append(46); + data.append(15); + data.append(30); + data.append(-45); + data.append(-18); + data.append(22); + data.append(-61); + data.append(91); + data.append(9); + data.append(30); + data.append(90); + data.append(14); + data.append(25); + data.append(18); + data.append(-4); + data.append(-38); + data.append(124); + data.append(-115); + data.append(-12); + data.append(65); + data.append(48); + data.append(106); + data.append(30); + data.append(-77); + data.append(-26); + data.append(66); + data.append(-3); + data.append(-40); + data.append(-105); + data.append(-27); + data.append(-74); + data.append(123); + data.append(13); + data.append(-46); + data.append(15); + data.append(-73); + data.append(74); + data.append(-75); + data.append(18); + data.append(72); + data.append(22); + data.append(-124); + data.append(-79); + data.append(-94); + data.append(-50); + data.append(-95); + data.append(-18); + data.append(-5); + data.append(-127); + data.append(-99); + data.append(10); + data.append(101); + data.append(-69); + data.append(-109); + data.append(-92); + data.append(22); + data.append(45); + data.append(-13); + data.append(27); + data.append(77); + data.append(76); + data.append(76); + data.append(5); + data.append(121); + data.append(-16); + data.append(-94); + data.append(-59); + data.append(-71); + data.append(-52); + data.append(-41); + data.append(13); + data.append(13); + data.append(-21); + data.append(75); + data.append(-79); + data.append(52); + data.append(96); + data.append(-99); + data.append(25); + data.append(2); + data.append(-48); + data.append(36); + data.append(118); + data.append(-75); + data.append(-87); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_i32_3d/output_0.cairo b/tests/nodes/nonzero_i32_3d/output_0.cairo index ec0c180f8..fa94a7d3a 100644 --- a/tests/nodes/nonzero_i32_3d/output_0.cairo +++ b/tests/nodes/nonzero_i32_3d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -107,7 +107,6 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(1); data.append(2); data.append(2); data.append(2); @@ -457,7 +456,7 @@ fn output_0() -> Tensor { data.append(8); data.append(8); data.append(8); - data.append(8); + data.append(9); data.append(9); data.append(9); data.append(9); @@ -706,6 +705,7 @@ fn output_0() -> Tensor { data.append(13); data.append(13); data.append(13); + data.append(13); data.append(14); data.append(14); data.append(14); @@ -1090,7 +1090,6 @@ fn output_0() -> Tensor { data.append(6); data.append(6); data.append(6); - data.append(6); data.append(7); data.append(7); data.append(7); @@ -1455,7 +1454,6 @@ fn output_0() -> Tensor { data.append(9); data.append(9); data.append(9); - data.append(9); data.append(0); data.append(0); data.append(0); @@ -1470,6 +1468,7 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); + data.append(2); data.append(3); data.append(3); data.append(3); @@ -1664,6 +1663,7 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); + data.append(1); data.append(2); data.append(2); data.append(2); @@ -2087,7 +2087,6 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); - data.append(3); data.append(4); data.append(0); data.append(1); @@ -2450,7 +2449,6 @@ fn output_0() -> Tensor { data.append(3); data.append(4); data.append(0); - data.append(1); data.append(2); data.append(3); data.append(4); @@ -2467,6 +2465,7 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); + data.append(3); data.append(4); data.append(0); data.append(1); @@ -2658,6 +2657,7 @@ fn output_0() -> Tensor { data.append(2); data.append(3); data.append(4); + data.append(0); data.append(1); data.append(2); data.append(3); diff --git a/tests/nodes/nonzero_i8_2d.cairo b/tests/nodes/nonzero_i8_2d.cairo index 239f71704..b4d48db63 100644 --- a/tests/nodes/nonzero_i8_2d.cairo +++ b/tests/nodes/nonzero_i8_2d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_i8_2d/input_0.cairo b/tests/nodes/nonzero_i8_2d/input_0.cairo index 56ad202c7..6d0db89e1 100644 --- a/tests/nodes/nonzero_i8_2d/input_0.cairo +++ b/tests/nodes/nonzero_i8_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 34, sign: false }); + data.append(123); + data.append(12); + data.append(-91); + data.append(122); + data.append(66); + data.append(42); + data.append(12); + data.append(18); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_i8_2d/output_0.cairo b/tests/nodes/nonzero_i8_2d/output_0.cairo index a2071fc22..a5a01bf7a 100644 --- a/tests/nodes/nonzero_i8_2d/output_0.cairo +++ b/tests/nodes/nonzero_i8_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/nonzero_i8_3d.cairo b/tests/nodes/nonzero_i8_3d.cairo index e839c0dfb..053561f73 100644 --- a/tests/nodes/nonzero_i8_3d.cairo +++ b/tests/nodes/nonzero_i8_3d.cairo @@ -2,11 +2,13 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::I8TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_i8_3d/input_0.cairo b/tests/nodes/nonzero_i8_3d/input_0.cairo index 9f60b3645..9b8b8dd8d 100644 --- a/tests/nodes/nonzero_i8_3d/input_0.cairo +++ b/tests/nodes/nonzero_i8_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 24, sign: true }); + data.append(-104); + data.append(-10); + data.append(-42); + data.append(54); + data.append(90); + data.append(94); + data.append(-6); + data.append(37); + data.append(125); + data.append(-14); + data.append(-16); + data.append(103); + data.append(74); + data.append(92); + data.append(17); + data.append(59); + data.append(79); + data.append(117); + data.append(29); + data.append(15); + data.append(-38); + data.append(-111); + data.append(-31); + data.append(71); + data.append(92); + data.append(122); + data.append(109); + data.append(-120); + data.append(-52); + data.append(-122); + data.append(88); + data.append(78); + data.append(99); + data.append(21); + data.append(-67); + data.append(-36); + data.append(21); + data.append(-62); + data.append(66); + data.append(64); + data.append(-70); + data.append(-44); + data.append(-58); + data.append(-27); + data.append(45); + data.append(104); + data.append(-103); + data.append(-36); + data.append(-44); + data.append(73); + data.append(-88); + data.append(-12); + data.append(-88); + data.append(37); + data.append(-127); + data.append(-9); + data.append(124); + data.append(-52); + data.append(126); + data.append(-15); + data.append(-81); + data.append(-60); + data.append(86); + data.append(-109); + data.append(89); + data.append(7); + data.append(33); + data.append(-113); + data.append(61); + data.append(-82); + data.append(18); + data.append(-107); + data.append(31); + data.append(83); + data.append(10); + data.append(3); + data.append(-18); + data.append(-2); + data.append(-47); + data.append(30); + data.append(-1); + data.append(-60); + data.append(-28); + data.append(31); + data.append(-101); + data.append(-49); + data.append(53); + data.append(-27); + data.append(-110); + data.append(28); + data.append(-83); + data.append(-30); + data.append(-27); + data.append(49); + data.append(22); + data.append(94); + data.append(84); + data.append(-41); + data.append(75); + data.append(93); + data.append(58); + data.append(-77); + data.append(16); + data.append(52); + data.append(-56); + data.append(75); + data.append(94); + data.append(88); + data.append(-33); + data.append(-83); + data.append(-20); + data.append(-125); + data.append(16); + data.append(-7); + data.append(-74); + data.append(-57); + data.append(37); + data.append(-46); + data.append(35); + data.append(8); + data.append(96); + data.append(42); + data.append(-76); + data.append(-103); + data.append(-50); + data.append(-24); + data.append(26); + data.append(33); + data.append(98); + data.append(30); + data.append(35); + data.append(110); + data.append(31); + data.append(-6); + data.append(-48); + data.append(-38); + data.append(105); + data.append(124); + data.append(65); + data.append(-119); + data.append(-34); + data.append(-24); + data.append(-54); + data.append(17); + data.append(48); + data.append(104); + data.append(24); + data.append(23); + data.append(116); + data.append(-69); + data.append(7); + data.append(-11); + data.append(-27); + data.append(-17); + data.append(41); + data.append(19); + data.append(20); + data.append(26); + data.append(-102); + data.append(0); + data.append(45); + data.append(-35); + data.append(41); + data.append(77); + data.append(-43); + data.append(89); + data.append(85); + data.append(-5); + data.append(97); + data.append(112); + data.append(93); + data.append(-33); + data.append(-74); + data.append(94); + data.append(95); + data.append(28); + data.append(95); + data.append(-48); + data.append(43); + data.append(-29); + data.append(65); + data.append(121); + data.append(-72); + data.append(17); + data.append(-116); + data.append(31); + data.append(105); + data.append(-85); + data.append(-24); + data.append(-38); + data.append(-9); + data.append(-88); + data.append(-126); + data.append(-119); + data.append(57); + data.append(89); + data.append(7); + data.append(5); + data.append(112); + data.append(-83); + data.append(25); + data.append(-33); + data.append(38); + data.append(-51); + data.append(50); + data.append(49); + data.append(71); + data.append(108); + data.append(-89); + data.append(-83); + data.append(-1); + data.append(-42); + data.append(-100); + data.append(74); + data.append(3); + data.append(-96); + data.append(-28); + data.append(-33); + data.append(-124); + data.append(70); + data.append(16); + data.append(-60); + data.append(-56); + data.append(-76); + data.append(113); + data.append(61); + data.append(-64); + data.append(78); + data.append(117); + data.append(37); + data.append(-94); + data.append(-45); + data.append(72); + data.append(8); + data.append(-53); + data.append(-120); + data.append(-125); + data.append(-96); + data.append(-65); + data.append(61); + data.append(-76); + data.append(93); + data.append(-89); + data.append(-22); + data.append(-5); + data.append(35); + data.append(42); + data.append(66); + data.append(53); + data.append(115); + data.append(-47); + data.append(-70); + data.append(-29); + data.append(52); + data.append(87); + data.append(91); + data.append(70); + data.append(-35); + data.append(-25); + data.append(-107); + data.append(34); + data.append(105); + data.append(-44); + data.append(-1); + data.append(95); + data.append(-36); + data.append(-54); + data.append(-114); + data.append(-108); + data.append(-48); + data.append(-49); + data.append(-106); + data.append(-115); + data.append(24); + data.append(-65); + data.append(-69); + data.append(75); + data.append(-57); + data.append(-4); + data.append(0); + data.append(116); + data.append(-24); + data.append(110); + data.append(10); + data.append(19); + data.append(-58); + data.append(38); + data.append(-71); + data.append(0); + data.append(76); + data.append(69); + data.append(33); + data.append(53); + data.append(-100); + data.append(99); + data.append(-23); + data.append(81); + data.append(48); + data.append(6); + data.append(-16); + data.append(-48); + data.append(25); + data.append(-73); + data.append(56); + data.append(23); + data.append(-85); + data.append(32); + data.append(-3); + data.append(-94); + data.append(-2); + data.append(119); + data.append(69); + data.append(40); + data.append(-87); + data.append(-113); + data.append(71); + data.append(15); + data.append(-105); + data.append(48); + data.append(24); + data.append(-72); + data.append(74); + data.append(-125); + data.append(-28); + data.append(-125); + data.append(-119); + data.append(87); + data.append(95); + data.append(-44); + data.append(-37); + data.append(17); + data.append(86); + data.append(-114); + data.append(-84); + data.append(-1); + data.append(-105); + data.append(-110); + data.append(-96); + data.append(99); + data.append(-127); + data.append(-50); + data.append(-47); + data.append(-26); + data.append(-70); + data.append(-13); + data.append(-70); + data.append(-104); + data.append(94); + data.append(83); + data.append(-56); + data.append(67); + data.append(5); + data.append(93); + data.append(60); + data.append(109); + data.append(42); + data.append(6); + data.append(84); + data.append(-115); + data.append(-47); + data.append(-90); + data.append(2); + data.append(37); + data.append(68); + data.append(122); + data.append(99); + data.append(-42); + data.append(-54); + data.append(-24); + data.append(-77); + data.append(-76); + data.append(-123); + data.append(-51); + data.append(86); + data.append(-111); + data.append(-45); + data.append(6); + data.append(-80); + data.append(73); + data.append(-76); + data.append(67); + data.append(104); + data.append(52); + data.append(-91); + data.append(-73); + data.append(-127); + data.append(-21); + data.append(-105); + data.append(35); + data.append(-41); + data.append(-82); + data.append(-23); + data.append(19); + data.append(-80); + data.append(-1); + data.append(-119); + data.append(-58); + data.append(105); + data.append(109); + data.append(65); + data.append(-74); + data.append(29); + data.append(-82); + data.append(-9); + data.append(37); + data.append(-63); + data.append(24); + data.append(-47); + data.append(-35); + data.append(-112); + data.append(-41); + data.append(36); + data.append(9); + data.append(45); + data.append(9); + data.append(-46); + data.append(121); + data.append(83); + data.append(-31); + data.append(-91); + data.append(51); + data.append(57); + data.append(12); + data.append(-65); + data.append(-70); + data.append(-40); + data.append(-54); + data.append(29); + data.append(12); + data.append(57); + data.append(41); + data.append(-86); + data.append(-40); + data.append(119); + data.append(-122); + data.append(-46); + data.append(46); + data.append(117); + data.append(-112); + data.append(88); + data.append(-66); + data.append(39); + data.append(99); + data.append(-66); + data.append(86); + data.append(-19); + data.append(88); + data.append(-80); + data.append(85); + data.append(-9); + data.append(23); + data.append(-111); + data.append(-1); + data.append(80); + data.append(-16); + data.append(-72); + data.append(5); + data.append(-92); + data.append(-71); + data.append(-20); + data.append(-82); + data.append(-77); + data.append(-124); + data.append(-58); + data.append(-74); + data.append(122); + data.append(41); + data.append(-101); + data.append(8); + data.append(-11); + data.append(41); + data.append(-61); + data.append(89); + data.append(-82); + data.append(-97); + data.append(-46); + data.append(-55); + data.append(10); + data.append(95); + data.append(85); + data.append(-29); + data.append(10); + data.append(-25); + data.append(-9); + data.append(-24); + data.append(-67); + data.append(16); + data.append(78); + data.append(-77); + data.append(33); + data.append(87); + data.append(-93); + data.append(-19); + data.append(-80); + data.append(-24); + data.append(-93); + data.append(47); + data.append(27); + data.append(-1); + data.append(72); + data.append(-25); + data.append(42); + data.append(-45); + data.append(101); + data.append(-36); + data.append(-2); + data.append(-125); + data.append(-89); + data.append(56); + data.append(8); + data.append(-109); + data.append(-91); + data.append(75); + data.append(118); + data.append(102); + data.append(-100); + data.append(-51); + data.append(-89); + data.append(103); + data.append(-47); + data.append(114); + data.append(0); + data.append(-97); + data.append(-75); + data.append(-127); + data.append(-15); + data.append(-109); + data.append(94); + data.append(33); + data.append(-13); + data.append(77); + data.append(-48); + data.append(69); + data.append(84); + data.append(47); + data.append(4); + data.append(-78); + data.append(-25); + data.append(-55); + data.append(119); + data.append(73); + data.append(0); + data.append(89); + data.append(34); + data.append(48); + data.append(49); + data.append(29); + data.append(-110); + data.append(11); + data.append(-88); + data.append(67); + data.append(-12); + data.append(-67); + data.append(6); + data.append(-4); + data.append(6); + data.append(9); + data.append(-38); + data.append(114); + data.append(110); + data.append(93); + data.append(8); + data.append(126); + data.append(96); + data.append(-51); + data.append(16); + data.append(87); + data.append(-35); + data.append(29); + data.append(67); + data.append(-64); + data.append(-2); + data.append(-113); + data.append(38); + data.append(3); + data.append(-82); + data.append(9); + data.append(-101); + data.append(9); + data.append(27); + data.append(51); + data.append(-6); + data.append(32); + data.append(-19); + data.append(35); + data.append(62); + data.append(-66); + data.append(-107); + data.append(-4); + data.append(80); + data.append(104); + data.append(7); + data.append(-69); + data.append(68); + data.append(28); + data.append(114); + data.append(91); + data.append(75); + data.append(-60); + data.append(-31); + data.append(121); + data.append(76); + data.append(-59); + data.append(50); + data.append(-70); + data.append(112); + data.append(16); + data.append(-73); + data.append(106); + data.append(117); + data.append(38); + data.append(14); + data.append(-124); + data.append(89); + data.append(-11); + data.append(-90); + data.append(69); + data.append(-56); + data.append(60); + data.append(-57); + data.append(65); + data.append(48); + data.append(106); + data.append(-103); + data.append(79); + data.append(-52); + data.append(-101); + data.append(-28); + data.append(-94); + data.append(4); + data.append(-106); + data.append(-99); + data.append(-25); + data.append(-26); + data.append(-75); + data.append(-18); + data.append(75); + data.append(-42); + data.append(68); + data.append(-58); + data.append(53); + data.append(64); + data.append(77); + data.append(-81); + data.append(85); + data.append(103); + data.append(114); + data.append(78); + data.append(-54); + data.append(-122); + data.append(-2); + data.append(-59); + data.append(-78); + data.append(-2); + data.append(-56); + data.append(-11); + data.append(38); + data.append(48); + data.append(86); + data.append(-21); + data.append(50); + data.append(-106); + data.append(4); + data.append(-97); + data.append(-89); + data.append(-42); + data.append(72); + data.append(27); + data.append(-80); + data.append(66); + data.append(53); + data.append(114); + data.append(98); + data.append(-25); + data.append(-15); + data.append(106); + data.append(-9); + data.append(-67); + data.append(-110); + data.append(36); + data.append(-94); + data.append(110); + data.append(-127); + data.append(-71); + data.append(82); + data.append(100); + data.append(82); + data.append(-93); + data.append(-29); + data.append(-87); + data.append(94); + data.append(-101); + data.append(-84); + data.append(-58); + data.append(25); + data.append(-15); + data.append(85); + data.append(-97); + data.append(-86); + data.append(-43); + data.append(23); + data.append(-118); + data.append(-68); + data.append(-98); + data.append(66); + data.append(-18); + data.append(124); + data.append(-119); + data.append(-107); + data.append(17); + data.append(-59); + data.append(58); + data.append(14); + data.append(32); + data.append(52); + data.append(43); + data.append(-80); + data.append(24); + data.append(-117); + data.append(-2); + data.append(3); + data.append(113); + data.append(-74); + data.append(105); + data.append(-9); + data.append(41); + data.append(-29); + data.append(97); + data.append(-8); + data.append(-97); + data.append(-22); + data.append(111); + data.append(21); + data.append(111); + data.append(-5); + data.append(42); + data.append(-45); + data.append(106); + data.append(-79); + data.append(-48); + data.append(-75); + data.append(-19); + data.append(93); + data.append(48); + data.append(-92); + data.append(-37); + data.append(114); + data.append(40); + data.append(110); + data.append(-93); + data.append(-56); + data.append(-61); + data.append(50); + data.append(-37); + data.append(-48); + data.append(68); + data.append(69); + data.append(-54); + data.append(-71); + data.append(-82); + data.append(-22); + data.append(-3); + data.append(7); + data.append(-81); + data.append(78); + data.append(7); + data.append(102); + data.append(41); + data.append(40); + data.append(-14); + data.append(-17); + data.append(-86); + data.append(-123); + data.append(5); + data.append(-1); + data.append(98); + data.append(-36); + data.append(36); + data.append(-65); + data.append(-122); + data.append(-123); + data.append(40); + data.append(-90); + data.append(-57); + data.append(92); + data.append(-38); + data.append(114); + data.append(-68); + data.append(101); + data.append(-38); + data.append(-2); + data.append(-124); + data.append(-1); + data.append(-122); + data.append(98); + data.append(-29); + data.append(-27); + data.append(-25); + data.append(-89); + data.append(-112); + data.append(-32); + data.append(115); + data.append(59); + data.append(118); + data.append(-96); + data.append(72); + data.append(-82); + data.append(30); + data.append(112); + data.append(72); + data.append(113); + data.append(106); + data.append(55); + data.append(18); + data.append(62); + data.append(-70); + data.append(31); + data.append(24); + data.append(29); + data.append(-72); + data.append(-87); + data.append(89); + data.append(-55); + data.append(-88); + data.append(6); + data.append(40); + data.append(89); + data.append(-25); + data.append(7); + data.append(-127); + data.append(71); + data.append(79); + data.append(-82); + data.append(-43); + data.append(-33); + data.append(-1); + data.append(-40); + data.append(-44); + data.append(104); + data.append(-70); + data.append(57); + data.append(13); + data.append(-109); + data.append(110); + data.append(-35); + data.append(104); + data.append(-37); + data.append(-116); + data.append(39); + data.append(9); + data.append(-68); + data.append(64); + data.append(-89); + data.append(86); + data.append(126); + data.append(65); + data.append(-56); + data.append(-123); + data.append(110); + data.append(-45); + data.append(-38); + data.append(-9); + data.append(-103); + data.append(-60); + data.append(-54); + data.append(-105); + data.append(98); + data.append(86); + data.append(-12); + data.append(-75); + data.append(-73); + data.append(-114); + data.append(-72); + data.append(46); + data.append(-126); + data.append(-69); + data.append(-26); + data.append(44); + data.append(-74); + data.append(116); + data.append(-30); + data.append(5); + data.append(-125); + data.append(-115); + data.append(-81); + data.append(102); + data.append(-18); + data.append(103); + data.append(-73); + data.append(-46); + data.append(-89); + data.append(-33); + data.append(-64); + data.append(-53); + data.append(-86); + data.append(-24); + data.append(23); + data.append(108); + data.append(105); + data.append(3); + data.append(-121); + data.append(-112); + data.append(67); + data.append(-62); + data.append(94); + data.append(98); + data.append(-81); + data.append(73); + data.append(33); + data.append(-97); + data.append(-30); + data.append(30); + data.append(-11); + data.append(-89); + data.append(113); + data.append(-30); + data.append(95); + data.append(46); + data.append(-118); + data.append(1); + data.append(-104); + data.append(112); + data.append(10); + data.append(5); + data.append(-61); + data.append(96); + data.append(-20); + data.append(-112); + data.append(-36); + data.append(-12); + data.append(-111); + data.append(60); + data.append(-36); + data.append(102); + data.append(-81); + data.append(-109); + data.append(61); + data.append(-64); + data.append(19); + data.append(-107); + data.append(-7); + data.append(9); + data.append(-122); + data.append(-80); + data.append(-118); + data.append(34); + data.append(-71); + data.append(-42); + data.append(-9); + data.append(48); + data.append(-25); + data.append(7); + data.append(-127); + data.append(-79); + data.append(-105); + data.append(90); + data.append(-33); + data.append(68); + data.append(-3); + data.append(-23); + data.append(6); + data.append(107); + data.append(66); + data.append(51); + data.append(-12); + data.append(55); + data.append(-31); + data.append(-93); + data.append(119); + data.append(-45); + data.append(84); + data.append(-92); + data.append(52); + data.append(-90); + data.append(-12); + data.append(19); + data.append(-104); + data.append(67); + data.append(-108); + data.append(-40); + data.append(-115); + data.append(87); + data.append(3); + data.append(-15); + data.append(-109); + data.append(68); + data.append(-42); + data.append(-93); + data.append(-98); + data.append(-22); + data.append(-89); + data.append(-110); + data.append(-110); + data.append(-4); + data.append(-26); + data.append(90); + data.append(55); + data.append(-34); + data.append(31); + data.append(-102); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_i8_3d/output_0.cairo b/tests/nodes/nonzero_i8_3d/output_0.cairo index 882adc81e..48c2614e5 100644 --- a/tests/nodes/nonzero_i8_3d/output_0.cairo +++ b/tests/nodes/nonzero_i8_3d/output_0.cairo @@ -1,11 +1,11 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(999); + shape.append(995); let mut data = ArrayTrait::new(); data.append(0); @@ -207,7 +207,6 @@ fn output_0() -> Tensor { data.append(3); data.append(3); data.append(3); - data.append(3); data.append(4); data.append(4); data.append(4); @@ -306,8 +305,6 @@ fn output_0() -> Tensor { data.append(5); data.append(5); data.append(5); - data.append(5); - data.append(5); data.append(6); data.append(6); data.append(6); @@ -556,7 +553,6 @@ fn output_0() -> Tensor { data.append(10); data.append(10); data.append(10); - data.append(10); data.append(11); data.append(11); data.append(11); @@ -1166,7 +1162,6 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(1); data.append(2); data.append(2); data.append(2); @@ -1286,7 +1281,6 @@ fn output_0() -> Tensor { data.append(5); data.append(5); data.append(5); - data.append(5); data.append(6); data.append(6); data.append(6); @@ -1296,7 +1290,6 @@ fn output_0() -> Tensor { data.append(7); data.append(7); data.append(7); - data.append(7); data.append(8); data.append(8); data.append(8); @@ -1531,7 +1524,6 @@ fn output_0() -> Tensor { data.append(4); data.append(4); data.append(4); - data.append(4); data.append(5); data.append(5); data.append(5); @@ -2165,7 +2157,6 @@ fn output_0() -> Tensor { data.append(1); data.append(2); data.append(3); - data.append(4); data.append(0); data.append(1); data.append(2); @@ -2285,7 +2276,6 @@ fn output_0() -> Tensor { data.append(1); data.append(2); data.append(3); - data.append(4); data.append(0); data.append(1); data.append(2); @@ -2294,7 +2284,6 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); - data.append(3); data.append(4); data.append(0); data.append(1); @@ -2527,7 +2516,6 @@ fn output_0() -> Tensor { data.append(3); data.append(4); data.append(0); - data.append(1); data.append(2); data.append(3); data.append(4); @@ -2547,9 +2535,9 @@ fn output_0() -> Tensor { data.append(3); data.append(4); data.append(0); - data.append(1); data.append(2); data.append(3); + data.append(4); data.append(0); data.append(1); data.append(2); diff --git a/tests/nodes/nonzero_u32_2d.cairo b/tests/nodes/nonzero_u32_2d.cairo index 0932ce05a..eee0c1fc3 100644 --- a/tests/nodes/nonzero_u32_2d.cairo +++ b/tests/nodes/nonzero_u32_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_u32_2d/input_0.cairo b/tests/nodes/nonzero_u32_2d/input_0.cairo index d425689ed..7f98f6b23 100644 --- a/tests/nodes/nonzero_u32_2d/input_0.cairo +++ b/tests/nodes/nonzero_u32_2d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(114); - data.append(69); - data.append(131); - data.append(47); - data.append(136); - data.append(205); + data.append(75); + data.append(210); + data.append(169); data.append(35); - data.append(33); + data.append(213); + data.append(12); + data.append(32); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_u32_2d/output_0.cairo b/tests/nodes/nonzero_u32_2d/output_0.cairo index a2071fc22..a5a01bf7a 100644 --- a/tests/nodes/nonzero_u32_2d/output_0.cairo +++ b/tests/nodes/nonzero_u32_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/nonzero_u32_3d.cairo b/tests/nodes/nonzero_u32_3d.cairo index 9db89541a..c1425a4c0 100644 --- a/tests/nodes/nonzero_u32_3d.cairo +++ b/tests/nodes/nonzero_u32_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/nonzero_u32_3d/input_0.cairo b/tests/nodes/nonzero_u32_3d/input_0.cairo index 7a0b9636d..a5091e540 100644 --- a/tests/nodes/nonzero_u32_3d/input_0.cairo +++ b/tests/nodes/nonzero_u32_3d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(196); - data.append(237); - data.append(172); - data.append(210); - data.append(228); + data.append(217); + data.append(153); + data.append(64); + data.append(56); + data.append(242); data.append(184); - data.append(155); - data.append(34); + data.append(154); + data.append(10); + data.append(204); + data.append(131); + data.append(162); + data.append(226); + data.append(127); + data.append(196); + data.append(72); data.append(76); - data.append(74); - data.append(136); - data.append(224); - data.append(47); - data.append(134); - data.append(213); - data.append(81); + data.append(158); + data.append(222); + data.append(133); + data.append(187); + data.append(29); + data.append(207); + data.append(34); + data.append(54); + data.append(98); + data.append(70); + data.append(182); + data.append(48); + data.append(212); + data.append(151); + data.append(108); + data.append(126); + data.append(139); + data.append(13); + data.append(133); + data.append(150); data.append(30); + data.append(235); + data.append(198); + data.append(186); + data.append(59); + data.append(233); data.append(37); + data.append(247); + data.append(21); + data.append(30); + data.append(9); + data.append(26); + data.append(4); + data.append(157); + data.append(158); + data.append(170); + data.append(232); + data.append(27); + data.append(181); + data.append(27); + data.append(134); + data.append(23); + data.append(123); + data.append(27); + data.append(72); + data.append(39); + data.append(52); + data.append(129); + data.append(202); + data.append(163); data.append(95); - data.append(84); - data.append(32); data.append(243); - data.append(106); - data.append(190); - data.append(55); - data.append(3); - data.append(156); - data.append(89); - data.append(65); - data.append(132); - data.append(147); - data.append(111); - data.append(69); - data.append(105); + data.append(198); + data.append(230); + data.append(21); data.append(254); - data.append(98); - data.append(171); - data.append(83); - data.append(111); - data.append(152); - data.append(208); - data.append(209); - data.append(224); - data.append(107); - data.append(9); - data.append(96); - data.append(165); - data.append(236); - data.append(77); - data.append(189); - data.append(168); - data.append(90); - data.append(196); - data.append(94); - data.append(12); - data.append(170); - data.append(200); - data.append(75); - data.append(12); - data.append(164); - data.append(131); - data.append(227); - data.append(41); - data.append(235); - data.append(185); - data.append(252); - data.append(170); - data.append(251); + data.append(7); + data.append(250); + data.append(181); + data.append(187); data.append(41); - data.append(43); - data.append(156); + data.append(51); data.append(139); - data.append(47); - data.append(201); - data.append(135); - data.append(58); - data.append(4); - data.append(35); - data.append(216); - data.append(226); - data.append(140); - data.append(136); - data.append(106); - data.append(0); + data.append(12); data.append(161); - data.append(77); - data.append(84); + data.append(64); + data.append(133); + data.append(66); + data.append(133); + data.append(87); + data.append(5); + data.append(56); + data.append(160); + data.append(143); + data.append(200); + data.append(180); data.append(153); - data.append(156); - data.append(67); - data.append(181); - data.append(122); + data.append(211); + data.append(207); + data.append(51); + data.append(248); + data.append(149); + data.append(195); + data.append(39); + data.append(31); + data.append(61); + data.append(69); + data.append(105); + data.append(225); + data.append(149); + data.append(58); + data.append(18); + data.append(141); data.append(209); - data.append(111); - data.append(246); - data.append(162); - data.append(148); - data.append(49); - data.append(116); - data.append(14); - data.append(32); + data.append(99); + data.append(10); + data.append(37); + data.append(21); + data.append(193); + data.append(232); data.append(82); - data.append(88); - data.append(211); - data.append(227); - data.append(172); - data.append(50); - data.append(17); - data.append(92); + data.append(6); + data.append(213); + data.append(38); + data.append(66); + data.append(157); + data.append(217); + data.append(222); + data.append(216); + data.append(200); + data.append(226); + data.append(142); + data.append(70); + data.append(39); + data.append(219); + data.append(55); + data.append(79); + data.append(82); + data.append(212); + data.append(27); + data.append(163); + data.append(180); + data.append(39); + data.append(102); + data.append(73); + data.append(205); + data.append(51); + data.append(182); + data.append(186); data.append(104); - data.append(0); + data.append(169); + data.append(122); data.append(201); - data.append(159); - data.append(31); - data.append(147); - data.append(89); + data.append(226); + data.append(205); data.append(248); - data.append(192); - data.append(158); - data.append(136); - data.append(25); - data.append(32); data.append(230); - data.append(167); - data.append(108); - data.append(200); - data.append(235); - data.append(72); - data.append(119); + data.append(22); + data.append(1); data.append(3); - data.append(126); - data.append(212); + data.append(151); + data.append(204); + data.append(222); + data.append(180); + data.append(58); + data.append(85); + data.append(153); + data.append(116); + data.append(235); data.append(87); - data.append(166); - data.append(166); - data.append(87); - data.append(50); - data.append(98); - data.append(216); - data.append(238); - data.append(166); - data.append(182); - data.append(25); - data.append(44); - data.append(248); - data.append(199); - data.append(58); - data.append(145); - data.append(95); - data.append(189); - data.append(147); - data.append(69); - data.append(28); - data.append(230); - data.append(46); - data.append(55); - data.append(50); - data.append(46); - data.append(198); - data.append(67); - data.append(43); - data.append(69); - data.append(71); - data.append(26); - data.append(147); - data.append(253); - data.append(65); - data.append(19); - data.append(130); + data.append(47); + data.append(142); + data.append(231); + data.append(41); data.append(72); - data.append(65); - data.append(214); - data.append(94); - data.append(128); - data.append(238); - data.append(103); - data.append(182); - data.append(24); - data.append(220); - data.append(95); - data.append(170); - data.append(52); - data.append(59); data.append(42); - data.append(13); - data.append(150); - data.append(136); - data.append(36); - data.append(146); - data.append(151); - data.append(203); - data.append(235); - data.append(195); - data.append(147); - data.append(107); - data.append(79); - data.append(219); - data.append(133); + data.append(242); + data.append(86); + data.append(164); + data.append(23); data.append(207); - data.append(67); - data.append(177); - data.append(84); - data.append(211); - data.append(149); - data.append(202); - data.append(81); - data.append(170); + data.append(53); + data.append(23); + data.append(66); + data.append(138); + data.append(148); + data.append(9); + data.append(143); + data.append(195); + data.append(140); + data.append(62); + data.append(5); + data.append(222); + data.append(100); + data.append(226); + data.append(240); + data.append(66); + data.append(120); + data.append(217); + data.append(95); + data.append(168); + data.append(189); + data.append(196); + data.append(250); + data.append(5); + data.append(11); + data.append(1); + data.append(98); + data.append(198); data.append(82); - data.append(59); - data.append(91); - data.append(235); - data.append(173); + data.append(120); + data.append(110); + data.append(32); + data.append(144); + data.append(240); data.append(209); - data.append(143); - data.append(165); - data.append(77); - data.append(177); - data.append(193); - data.append(9); data.append(63); - data.append(53); - data.append(65); - data.append(166); - data.append(130); + data.append(212); + data.append(21); data.append(185); - data.append(91); - data.append(249); - data.append(51); - data.append(235); - data.append(190); - data.append(17); - data.append(103); - data.append(154); - data.append(37); - data.append(76); - data.append(119); - data.append(186); + data.append(109); + data.append(252); + data.append(83); + data.append(162); + data.append(35); + data.append(149); + data.append(5); data.append(193); - data.append(123); + data.append(18); + data.append(185); + data.append(222); + data.append(252); + data.append(22); + data.append(160); data.append(58); - data.append(4); - data.append(239); - data.append(215); - data.append(211); - data.append(146); - data.append(195); - data.append(215); + data.append(18); + data.append(109); data.append(253); - data.append(140); - data.append(7); - data.append(7); - data.append(213); - data.append(51); - data.append(28); - data.append(143); - data.append(147); - data.append(29); - data.append(55); - data.append(210); - data.append(97); + data.append(56); + data.append(217); + data.append(9); + data.append(21); + data.append(168); + data.append(89); + data.append(191); + data.append(202); + data.append(91); + data.append(138); + data.append(42); + data.append(62); + data.append(214); + data.append(25); + data.append(225); + data.append(158); + data.append(136); + data.append(224); + data.append(62); + data.append(162); + data.append(155); + data.append(239); + data.append(202); + data.append(101); + data.append(176); + data.append(176); + data.append(15); data.append(208); - data.append(72); - data.append(2); data.append(247); - data.append(239); + data.append(108); + data.append(1); + data.append(222); + data.append(20); + data.append(127); + data.append(108); + data.append(224); + data.append(22); + data.append(76); data.append(113); - data.append(55); - data.append(71); - data.append(193); - data.append(137); - data.append(65); + data.append(37); + data.append(192); + data.append(88); + data.append(167); + data.append(62); + data.append(172); + data.append(108); + data.append(197); + data.append(75); data.append(143); - data.append(3); - data.append(231); - data.append(133); - data.append(74); - data.append(107); - data.append(64); - data.append(206); + data.append(149); + data.append(205); + data.append(119); + data.append(4); + data.append(108); + data.append(208); + data.append(105); + data.append(22); + data.append(170); + data.append(212); data.append(218); - data.append(30); - data.append(55); - data.append(66); - data.append(182); - data.append(176); - data.append(17); - data.append(68); - data.append(101); - data.append(202); - data.append(234); - data.append(207); + data.append(62); + data.append(25); + data.append(48); + data.append(152); + data.append(91); + data.append(201); + data.append(190); + data.append(104); data.append(86); - data.append(23); - data.append(29); - data.append(231); - data.append(207); - data.append(223); - data.append(45); - data.append(159); - data.append(213); - data.append(187); + data.append(149); + data.append(145); + data.append(210); + data.append(165); + data.append(25); + data.append(224); + data.append(128); + data.append(69); + data.append(52); + data.append(202); + data.append(218); + data.append(86); + data.append(44); + data.append(15); + data.append(202); + data.append(170); + data.append(46); + data.append(132); + data.append(248); + data.append(4); + data.append(89); + data.append(229); + data.append(236); + data.append(73); + data.append(188); + data.append(113); + data.append(164); + data.append(115); data.append(109); data.append(92); - data.append(244); - data.append(155); - data.append(253); - data.append(246); - data.append(160); - data.append(238); - data.append(90); - data.append(37); + data.append(25); + data.append(206); + data.append(24); + data.append(83); + data.append(159); + data.append(197); + data.append(154); + data.append(213); + data.append(41); + data.append(80); + data.append(128); + data.append(15); + data.append(11); + data.append(127); + data.append(40); data.append(16); - data.append(183); - data.append(253); - data.append(62); - data.append(136); - data.append(146); - data.append(215); - data.append(158); - data.append(195); - data.append(241); - data.append(132); - data.append(7); + data.append(235); + data.append(94); + data.append(55); + data.append(234); + data.append(163); + data.append(168); + data.append(36); + data.append(181); + data.append(162); + data.append(53); + data.append(64); + data.append(159); data.append(41); - data.append(185); - data.append(196); - data.append(59); - data.append(62); - data.append(148); - data.append(173); + data.append(216); + data.append(188); + data.append(219); + data.append(141); + data.append(121); + data.append(38); data.append(78); - data.append(90); - data.append(87); - data.append(82); - data.append(223); - data.append(76); - data.append(76); - data.append(235); - data.append(69); - data.append(30); - data.append(253); + data.append(239); + data.append(167); + data.append(238); + data.append(41); data.append(212); - data.append(201); - data.append(242); - data.append(54); - data.append(248); - data.append(198); - data.append(241); - data.append(213); - data.append(222); - data.append(206); - data.append(193); - data.append(90); - data.append(236); - data.append(113); - data.append(36); - data.append(243); - data.append(218); - data.append(213); + data.append(214); + data.append(85); + data.append(166); data.append(156); - data.append(108); - data.append(215); - data.append(170); - data.append(53); - data.append(250); - data.append(209); - data.append(183); data.append(37); - data.append(246); - data.append(34); - data.append(116); - data.append(49); - data.append(187); - data.append(146); - data.append(186); - data.append(124); - data.append(111); - data.append(92); - data.append(62); - data.append(25); - data.append(45); - data.append(247); - data.append(81); - data.append(179); - data.append(46); + data.append(226); + data.append(80); + data.append(197); + data.append(164); + data.append(127); + data.append(213); + data.append(13); data.append(169); - data.append(158); - data.append(35); - data.append(201); - data.append(102); + data.append(224); + data.append(33); + data.append(199); + data.append(247); + data.append(223); + data.append(106); + data.append(224); + data.append(181); + data.append(48); + data.append(245); + data.append(2); + data.append(252); + data.append(63); + data.append(3); + data.append(14); + data.append(121); + data.append(226); + data.append(217); + data.append(231); data.append(101); - data.append(100); - data.append(216); - data.append(242); - data.append(133); - data.append(149); - data.append(201); - data.append(41); + data.append(89); + data.append(166); + data.append(221); data.append(119); - data.append(114); - data.append(173); - data.append(33); - data.append(73); - data.append(148); + data.append(49); + data.append(4); data.append(196); - data.append(113); - data.append(163); - data.append(85); - data.append(69); - data.append(126); - data.append(47); + data.append(56); data.append(231); - data.append(213); - data.append(0); - data.append(196); - data.append(43); - data.append(8); - data.append(180); - data.append(183); - data.append(214); - data.append(67); - data.append(119); + data.append(69); + data.append(20); data.append(165); + data.append(81); + data.append(15); + data.append(208); + data.append(118); + data.append(216); + data.append(133); + data.append(118); + data.append(68); + data.append(102); + data.append(116); + data.append(135); + data.append(64); + data.append(7); + data.append(103); + data.append(173); + data.append(149); + data.append(208); + data.append(191); + data.append(83); + data.append(213); + data.append(166); + data.append(166); + data.append(177); + data.append(88); + data.append(97); + data.append(227); + data.append(181); + data.append(70); + data.append(83); + data.append(188); + data.append(54); + data.append(148); + data.append(155); + data.append(172); + data.append(74); + data.append(250); data.append(19); + data.append(25); + data.append(170); + data.append(215); + data.append(188); + data.append(129); + data.append(73); + data.append(71); + data.append(144); + data.append(241); + data.append(217); + data.append(197); + data.append(10); + data.append(39); + data.append(187); + data.append(101); data.append(75); - data.append(181); - data.append(14); + data.append(1); + data.append(221); data.append(140); - data.append(50); - data.append(120); - data.append(89); - data.append(192); - data.append(192); - data.append(195); - data.append(80); - data.append(156); - data.append(11); - data.append(53); - data.append(222); - data.append(151); - data.append(240); - data.append(157); - data.append(182); - data.append(105); - data.append(19); - data.append(48); - data.append(242); - data.append(142); - data.append(231); - data.append(85); - data.append(27); - data.append(75); + data.append(199); + data.append(24); data.append(251); + data.append(114); + data.append(175); + data.append(157); + data.append(166); data.append(204); - data.append(49); - data.append(39); - data.append(140); - data.append(39); - data.append(130); - data.append(129); - data.append(136); - data.append(84); - data.append(112); - data.append(3); - data.append(108); - data.append(204); - data.append(99); - data.append(234); - data.append(186); - data.append(31); - data.append(78); - data.append(233); - data.append(163); - data.append(1); - data.append(69); - data.append(173); - data.append(204); - data.append(81); - data.append(45); + data.append(235); + data.append(89); + data.append(90); + data.append(188); data.append(179); - data.append(172); + data.append(118); + data.append(53); + data.append(94); + data.append(67); + data.append(127); + data.append(207); + data.append(177); + data.append(141); + data.append(193); + data.append(113); + data.append(213); + data.append(15); + data.append(92); + data.append(52); + data.append(186); + data.append(40); + data.append(192); + data.append(240); + data.append(60); + data.append(183); + data.append(94); + data.append(103); + data.append(181); + data.append(235); + data.append(95); + data.append(73); + data.append(232); + data.append(208); + data.append(12); + data.append(199); + data.append(13); + data.append(180); + data.append(125); + data.append(144); + data.append(46); + data.append(7); data.append(149); - data.append(32); - data.append(148); - data.append(97); data.append(51); + data.append(27); + data.append(202); + data.append(169); data.append(114); - data.append(16); - data.append(107); - data.append(134); - data.append(243); - data.append(118); - data.append(165); - data.append(66); - data.append(104); - data.append(82); + data.append(131); + data.append(167); + data.append(105); + data.append(234); + data.append(245); data.append(69); - data.append(252); - data.append(62); - data.append(219); - data.append(132); - data.append(176); - data.append(19); - data.append(96); - data.append(252); - data.append(66); - data.append(54); - data.append(252); - data.append(17); - data.append(254); - data.append(63); - data.append(216); - data.append(199); - data.append(73); - data.append(29); - data.append(77); - data.append(43); - data.append(247); - data.append(132); - data.append(188); - data.append(218); - data.append(68); - data.append(27); - data.append(248); - data.append(171); - data.append(1); + data.append(240); + data.append(168); + data.append(224); + data.append(117); + data.append(211); + data.append(208); + data.append(227); + data.append(196); + data.append(157); data.append(189); - data.append(230); - data.append(197); - data.append(177); - data.append(131); - data.append(165); - data.append(99); - data.append(116); + data.append(43); + data.append(244); + data.append(25); data.append(120); - data.append(29); - data.append(227); - data.append(188); - data.append(170); - data.append(84); - data.append(220); - data.append(175); - data.append(238); - data.append(147); - data.append(1); - data.append(4); - data.append(62); - data.append(72); - data.append(102); - data.append(228); - data.append(178); - data.append(127); - data.append(72); - data.append(111); - data.append(142); - data.append(49); - data.append(134); - data.append(96); - data.append(240); - data.append(125); + data.append(74); + data.append(13); + data.append(206); + data.append(30); + data.append(100); data.append(130); - data.append(143); - data.append(23); - data.append(89); + data.append(214); + data.append(184); + data.append(133); + data.append(200); + data.append(115); + data.append(94); + data.append(114); + data.append(173); + data.append(110); + data.append(51); + data.append(126); + data.append(97); + data.append(137); + data.append(77); + data.append(19); + data.append(241); + data.append(58); data.append(175); - data.append(180); - data.append(61); - data.append(25); - data.append(1); - data.append(14); - data.append(212); - data.append(92); - data.append(140); + data.append(53); + data.append(9); + data.append(75); data.append(165); - data.append(58); - data.append(220); - data.append(89); - data.append(26); - data.append(2); - data.append(33); - data.append(16); - data.append(74); - data.append(5); + data.append(186); + data.append(57); + data.append(81); + data.append(249); data.append(251); + data.append(220); + data.append(226); data.append(43); - data.append(8); - data.append(234); - data.append(162); - data.append(64); - data.append(3); - data.append(36); + data.append(15); + data.append(90); + data.append(104); + data.append(89); + data.append(10); + data.append(184); + data.append(171); + data.append(13); + data.append(151); data.append(28); - data.append(85); - data.append(182); - data.append(14); - data.append(236); - data.append(225); - data.append(31); - data.append(117); - data.append(123); - data.append(99); - data.append(180); + data.append(207); + data.append(94); + data.append(87); + data.append(174); + data.append(139); + data.append(49); + data.append(74); + data.append(239); data.append(56); - data.append(149); - data.append(103); - data.append(66); - data.append(226); - data.append(229); - data.append(60); - data.append(55); - data.append(119); - data.append(0); - data.append(173); - data.append(2); + data.append(96); + data.append(12); + data.append(223); + data.append(140); + data.append(156); + data.append(161); + data.append(122); + data.append(252); + data.append(51); + data.append(219); + data.append(79); data.append(212); - data.append(56); - data.append(253); - data.append(148); - data.append(144); - data.append(88); - data.append(185); - data.append(143); + data.append(139); data.append(240); - data.append(78); - data.append(28); - data.append(173); - data.append(27); - data.append(24); - data.append(138); - data.append(203); - data.append(202); - data.append(202); - data.append(206); - data.append(37); - data.append(118); - data.append(247); - data.append(18); - data.append(52); - data.append(19); - data.append(196); - data.append(100); - data.append(16); - data.append(208); - data.append(220); - data.append(103); - data.append(178); - data.append(225); + data.append(31); + data.append(143); data.append(42); - data.append(192); - data.append(96); - data.append(147); - data.append(187); - data.append(180); - data.append(148); - data.append(196); - data.append(201); - data.append(44); - data.append(32); - data.append(18); - data.append(50); - data.append(145); + data.append(153); data.append(61); - data.append(180); - data.append(13); - data.append(124); - data.append(182); - data.append(147); - data.append(50); - data.append(222); - data.append(119); - data.append(83); - data.append(67); - data.append(59); - data.append(209); - data.append(64); - data.append(227); - data.append(107); - data.append(13); - data.append(175); - data.append(78); - data.append(83); - data.append(37); - data.append(31); - data.append(0); - data.append(133); - data.append(65); - data.append(103); - data.append(127); + data.append(106); data.append(63); - data.append(40); - data.append(156); - data.append(250); - data.append(35); + data.append(82); + data.append(181); + data.append(5); + data.append(232); + data.append(191); + data.append(131); + data.append(145); + data.append(136); data.append(14); - data.append(37); - data.append(49); - data.append(112); - data.append(34); - data.append(251); - data.append(32); - data.append(211); - data.append(239); - data.append(142); - data.append(229); - data.append(143); - data.append(98); - data.append(6); - data.append(217); - data.append(133); - data.append(179); - data.append(113); - data.append(59); - data.append(73); - data.append(62); - data.append(33); - data.append(3); + data.append(165); data.append(131); - data.append(100); - data.append(172); - data.append(21); - data.append(57); - data.append(141); - data.append(8); - data.append(132); - data.append(123); - data.append(152); - data.append(242); - data.append(69); - data.append(166); - data.append(112); - data.append(162); - data.append(50); - data.append(39); - data.append(29); - data.append(13); - data.append(17); - data.append(204); - data.append(125); - data.append(180); - data.append(224); - data.append(91); - data.append(181); - data.append(46); - data.append(238); - data.append(122); - data.append(16); - data.append(190); - data.append(152); - data.append(54); - data.append(220); - data.append(249); - data.append(42); - data.append(156); - data.append(21); - data.append(64); - data.append(134); + data.append(84); + data.append(62); + data.append(117); + data.append(103); + data.append(253); + data.append(195); + data.append(58); + data.append(12); + data.append(175); + data.append(11); + data.append(155); + data.append(236); + data.append(213); + data.append(240); + data.append(1); + data.append(93); + data.append(43); + data.append(208); + data.append(215); + data.append(36); data.append(157); - data.append(174); - data.append(203); - data.append(17); - data.append(134); - data.append(96); - data.append(216); - data.append(186); - data.append(146); - data.append(170); + data.append(160); + data.append(117); + data.append(121); + data.append(223); + data.append(231); + data.append(5); + data.append(0); data.append(56); - data.append(197); - data.append(130); - data.append(41); - data.append(207); - data.append(110); - data.append(134); + data.append(31); + data.append(143); + data.append(42); data.append(153); + data.append(23); + data.append(219); + data.append(28); + data.append(225); + data.append(188); + data.append(160); + data.append(149); data.append(239); + data.append(85); + data.append(141); + data.append(31); + data.append(173); + data.append(202); data.append(169); - data.append(212); - data.append(192); - data.append(110); + data.append(39); + data.append(85); + data.append(77); + data.append(85); + data.append(94); + data.append(47); data.append(89); - data.append(193); + data.append(116); + data.append(72); + data.append(77); + data.append(254); + data.append(25); + data.append(114); + data.append(130); + data.append(144); + data.append(139); + data.append(150); data.append(202); - data.append(164); - data.append(118); - data.append(23); - data.append(109); - data.append(172); - data.append(20); - data.append(189); - data.append(54); - data.append(92); - data.append(127); - data.append(223); - data.append(221); - data.append(60); - data.append(250); - data.append(132); - data.append(203); + data.append(117); + data.append(218); + data.append(123); + data.append(243); + data.append(163); data.append(5); - data.append(182); - data.append(227); - data.append(97); - data.append(52); - data.append(151); - data.append(127); - data.append(189); - data.append(145); + data.append(158); + data.append(172); + data.append(42); + data.append(111); + data.append(177); + data.append(152); + data.append(199); + data.append(0); + data.append(104); + data.append(242); + data.append(238); + data.append(204); + data.append(186); + data.append(246); + data.append(163); data.append(205); - data.append(27); - data.append(189); + data.append(59); + data.append(179); + data.append(2); + data.append(23); + data.append(231); + data.append(176); + data.append(237); + data.append(213); + data.append(39); + data.append(99); + data.append(130); + data.append(236); + data.append(174); + data.append(206); + data.append(8); + data.append(114); + data.append(44); + data.append(100); + data.append(69); + data.append(51); + data.append(245); + data.append(248); + data.append(188); data.append(46); - data.append(148); - data.append(140); - data.append(157); - data.append(36); - data.append(216); - data.append(145); - data.append(106); - data.append(76); - data.append(41); - data.append(241); - data.append(218); - data.append(70); - data.append(160); - data.append(79); - data.append(162); - data.append(66); - data.append(232); + data.append(15); + data.append(127); + data.append(96); + data.append(226); + data.append(37); + data.append(173); + data.append(96); + data.append(19); + data.append(108); + data.append(128); + data.append(225); + data.append(165); + data.append(81); + data.append(188); + data.append(18); data.append(90); - data.append(101); - data.append(123); - data.append(185); - data.append(49); - data.append(182); - data.append(162); - data.append(124); - data.append(6); - data.append(152); - data.append(253); - data.append(145); - data.append(212); - data.append(183); - data.append(32); - data.append(243); - data.append(30); - data.append(136); - data.append(126); - data.append(148); - data.append(224); - data.append(202); + data.append(201); + data.append(238); data.append(47); - data.append(179); - data.append(62); + data.append(7); + data.append(223); + data.append(212); + data.append(33); + data.append(118); + data.append(169); + data.append(41); + data.append(244); + data.append(104); + data.append(92); + data.append(138); data.append(44); - data.append(158); - data.append(161); + data.append(48); + data.append(182); + data.append(212); + data.append(215); + data.append(18); data.append(184); - data.append(173); - data.append(234); + data.append(175); + data.append(90); + data.append(251); + data.append(47); + data.append(111); + data.append(54); + data.append(245); + data.append(214); + data.append(14); + data.append(121); + data.append(220); data.append(219); + data.append(88); + data.append(34); + data.append(163); + data.append(23); + data.append(134); data.append(117); - data.append(187); - data.append(61); - data.append(114); + data.append(67); + data.append(27); + data.append(157); + data.append(151); + data.append(220); data.append(30); - data.append(113); - data.append(137); - data.append(59); - data.append(248); + data.append(133); + data.append(28); + data.append(140); + data.append(179); + data.append(132); + data.append(79); + data.append(121); + data.append(96); + data.append(167); + data.append(185); + data.append(138); + data.append(125); + data.append(48); + data.append(147); + data.append(35); + data.append(132); + data.append(105); + data.append(74); + data.append(249); + data.append(208); data.append(37); - data.append(44); + data.append(189); + data.append(153); data.append(73); - data.append(52); - data.append(146); - data.append(250); + data.append(142); + data.append(202); + data.append(152); + data.append(253); data.append(45); - data.append(36); - data.append(54); - data.append(163); - data.append(129); - data.append(221); - data.append(153); - data.append(171); + data.append(58); + data.append(45); + data.append(174); + data.append(187); + data.append(88); + data.append(127); + data.append(188); + data.append(158); + data.append(133); + data.append(192); + data.append(40); + data.append(70); + data.append(224); + data.append(216); + data.append(106); + data.append(30); + data.append(2); + data.append(87); + data.append(89); + data.append(233); + data.append(191); + data.append(76); + data.append(100); + data.append(105); data.append(0); + data.append(26); + data.append(146); + data.append(182); + data.append(30); + data.append(56); + data.append(234); + data.append(88); + data.append(124); data.append(61); - data.append(83); - data.append(6); - data.append(74); - data.append(57); - data.append(236); - data.append(6); - data.append(132); - data.append(233); - data.append(184); - data.append(25); - data.append(71); - data.append(123); - data.append(203); - data.append(11); - data.append(11); + data.append(229); + data.append(94); + data.append(201); + data.append(109); + data.append(196); + data.append(155); + data.append(149); + data.append(105); + data.append(217); + data.append(100); + data.append(51); + data.append(149); + data.append(153); + data.append(102); + data.append(3); + data.append(82); data.append(73); - data.append(131); + data.append(60); data.append(165); - data.append(71); - data.append(137); - data.append(49); - data.append(199); - data.append(208); - data.append(34); - data.append(123); + data.append(160); + data.append(32); + data.append(146); + data.append(181); + data.append(46); data.append(85); - data.append(106); + data.append(55); + data.append(151); + data.append(203); + data.append(200); + data.append(89); + data.append(26); + data.append(109); + data.append(10); + data.append(5); + data.append(23); + data.append(15); + data.append(174); + data.append(67); + data.append(218); + data.append(214); + data.append(207); + data.append(237); + data.append(210); + data.append(72); + data.append(112); data.append(37); - data.append(239); - data.append(47); + data.append(97); + data.append(206); + data.append(201); + data.append(93); + data.append(10); data.append(149); - data.append(54); - data.append(6); - data.append(158); - data.append(4); + data.append(110); + data.append(99); + data.append(203); data.append(107); + data.append(211); + data.append(225); + data.append(26); + data.append(99); data.append(218); - data.append(75); - data.append(104); - data.append(249); - data.append(59); - data.append(61); - data.append(30); - data.append(193); - data.append(251); - data.append(66); - data.append(162); - data.append(51); - data.append(106); + data.append(85); + data.append(174); + data.append(138); + data.append(10); + data.append(133); + data.append(242); + data.append(96); + data.append(174); data.append(161); + data.append(92); + data.append(156); + data.append(235); + data.append(174); + data.append(13); + data.append(223); + data.append(70); data.append(50); - data.append(128); - data.append(8); - data.append(56); - data.append(115); - data.append(71); - data.append(117); - data.append(106); - data.append(166); - data.append(32); - data.append(51); - data.append(26); + data.append(152); + data.append(247); + data.append(80); + data.append(30); + data.append(72); + data.append(77); + data.append(141); data.append(161); - data.append(42); - data.append(62); - data.append(244); - data.append(129); - data.append(150); - data.append(208); - data.append(71); - data.append(14); - data.append(97); - data.append(175); - data.append(117); - data.append(202); - data.append(170); - data.append(110); - data.append(150); - data.append(231); - data.append(114); - data.append(44); - data.append(125); + data.append(219); data.append(94); - data.append(27); - data.append(97); - data.append(9); - data.append(158); - data.append(189); + data.append(121); + data.append(251); + data.append(234); + data.append(239); + data.append(109); + data.append(201); + data.append(7); + data.append(152); data.append(213); - data.append(104); + data.append(93); + data.append(254); + data.append(82); + data.append(137); + data.append(83); + data.append(214); + data.append(172); + data.append(208); data.append(236); - data.append(223); - data.append(89); - data.append(151); + data.append(215); + data.append(164); + data.append(15); + data.append(102); + data.append(26); data.append(220); - data.append(79); - data.append(153); - data.append(168); - data.append(103); - data.append(91); - data.append(148); - data.append(7); - data.append(128); - data.append(3); - data.append(40); - data.append(86); - data.append(88); - data.append(153); + data.append(12); + data.append(77); + data.append(25); data.append(99); - data.append(114); - data.append(167); - data.append(3); - data.append(220); - data.append(201); - data.append(150); + data.append(62); + data.append(144); + data.append(95); + data.append(45); + data.append(57); + data.append(125); + data.append(155); + data.append(204); + data.append(125); + data.append(163); + data.append(239); + data.append(70); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/nonzero_u32_3d/output_0.cairo b/tests/nodes/nonzero_u32_3d/output_0.cairo index 2a0463372..de76b1b95 100644 --- a/tests/nodes/nonzero_u32_3d/output_0.cairo +++ b/tests/nodes/nonzero_u32_3d/output_0.cairo @@ -1,11 +1,11 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(994); + shape.append(997); let mut data = ArrayTrait::new(); data.append(0); @@ -107,6 +107,8 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); + data.append(1); + data.append(2); data.append(2); data.append(2); data.append(2); @@ -455,6 +457,7 @@ fn output_0() -> Tensor { data.append(8); data.append(8); data.append(8); + data.append(8); data.append(9); data.append(9); data.append(9); @@ -654,6 +657,7 @@ fn output_0() -> Tensor { data.append(12); data.append(12); data.append(12); + data.append(12); data.append(13); data.append(13); data.append(13); @@ -752,7 +756,6 @@ fn output_0() -> Tensor { data.append(14); data.append(14); data.append(14); - data.append(14); data.append(15); data.append(15); data.append(15); @@ -1086,6 +1089,7 @@ fn output_0() -> Tensor { data.append(6); data.append(6); data.append(6); + data.append(6); data.append(7); data.append(7); data.append(7); @@ -1115,6 +1119,7 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); + data.append(2); data.append(3); data.append(3); data.append(3); @@ -1414,6 +1419,7 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); + data.append(2); data.append(3); data.append(3); data.append(3); @@ -1613,6 +1619,7 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); + data.append(2); data.append(3); data.append(3); data.append(3); @@ -1662,7 +1669,6 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); - data.append(2); data.append(3); data.append(3); data.append(3); @@ -1682,6 +1688,7 @@ fn output_0() -> Tensor { data.append(6); data.append(6); data.append(6); + data.append(6); data.append(7); data.append(7); data.append(7); @@ -1716,7 +1723,6 @@ fn output_0() -> Tensor { data.append(3); data.append(3); data.append(3); - data.append(3); data.append(4); data.append(4); data.append(4); @@ -1861,7 +1867,6 @@ fn output_0() -> Tensor { data.append(2); data.append(2); data.append(2); - data.append(2); data.append(3); data.append(3); data.append(3); @@ -1881,6 +1886,7 @@ fn output_0() -> Tensor { data.append(6); data.append(6); data.append(6); + data.append(6); data.append(7); data.append(7); data.append(7); @@ -2079,6 +2085,7 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); + data.append(3); data.append(4); data.append(0); data.append(1); @@ -2105,6 +2112,7 @@ fn output_0() -> Tensor { data.append(2); data.append(3); data.append(4); + data.append(0); data.append(1); data.append(2); data.append(3); @@ -2407,6 +2415,7 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); + data.append(3); data.append(4); data.append(0); data.append(1); @@ -2604,6 +2613,7 @@ fn output_0() -> Tensor { data.append(3); data.append(4); data.append(0); + data.append(1); data.append(2); data.append(3); data.append(4); @@ -2656,7 +2666,6 @@ fn output_0() -> Tensor { data.append(1); data.append(2); data.append(3); - data.append(4); data.append(0); data.append(1); data.append(2); @@ -2675,6 +2684,7 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); + data.append(3); data.append(4); data.append(0); data.append(1); @@ -2706,7 +2716,6 @@ fn output_0() -> Tensor { data.append(2); data.append(3); data.append(4); - data.append(0); data.append(1); data.append(2); data.append(3); @@ -2853,7 +2862,6 @@ fn output_0() -> Tensor { data.append(4); data.append(0); data.append(1); - data.append(2); data.append(3); data.append(4); data.append(0); @@ -2874,6 +2882,7 @@ fn output_0() -> Tensor { data.append(0); data.append(1); data.append(2); + data.append(3); data.append(4); data.append(0); data.append(1); diff --git a/tests/nodes/or_fp16x16.cairo b/tests/nodes/or_fp16x16.cairo index 63e884aaa..6bc72e320 100644 --- a/tests/nodes/or_fp16x16.cairo +++ b/tests/nodes/or_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_fp16x16/input_0.cairo b/tests/nodes/or_fp16x16/input_0.cairo index bae4db4b2..76289ddcc 100644 --- a/tests/nodes/or_fp16x16/input_0.cairo +++ b/tests/nodes/or_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp16x16/input_1.cairo b/tests/nodes/or_fp16x16/input_1.cairo index 0b094c5bc..16f8a9735 100644 --- a/tests/nodes/or_fp16x16/input_1.cairo +++ b/tests/nodes/or_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp16x16/output_0.cairo b/tests/nodes/or_fp16x16/output_0.cairo index ba8d8c4f8..07754b1eb 100644 --- a/tests/nodes/or_fp16x16/output_0.cairo +++ b/tests/nodes/or_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -17,6 +17,7 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); @@ -32,7 +33,6 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(1); data.append(1); diff --git a/tests/nodes/or_fp16x16_broadcast.cairo b/tests/nodes/or_fp16x16_broadcast.cairo index 8995823b3..008614487 100644 --- a/tests/nodes/or_fp16x16_broadcast.cairo +++ b/tests/nodes/or_fp16x16_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_fp16x16_broadcast/input_0.cairo b/tests/nodes/or_fp16x16_broadcast/input_0.cairo index 216a40504..cea1413f2 100644 --- a/tests/nodes/or_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/or_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp16x16_broadcast/input_1.cairo b/tests/nodes/or_fp16x16_broadcast/input_1.cairo index c01da9b6c..3d0d0a4bd 100644 --- a/tests/nodes/or_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/or_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp16x16_broadcast/output_0.cairo b/tests/nodes/or_fp16x16_broadcast/output_0.cairo index 66356e88d..2041bdce3 100644 --- a/tests/nodes/or_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/or_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/or_fp8x23.cairo b/tests/nodes/or_fp8x23.cairo index 669b2cd6c..fbd0d02c3 100644 --- a/tests/nodes/or_fp8x23.cairo +++ b/tests/nodes/or_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_fp8x23/input_0.cairo b/tests/nodes/or_fp8x23/input_0.cairo index 062ab50e0..e5c3797ea 100644 --- a/tests/nodes/or_fp8x23/input_0.cairo +++ b/tests/nodes/or_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp8x23/input_1.cairo b/tests/nodes/or_fp8x23/input_1.cairo index dd01860bd..225d49dcd 100644 --- a/tests/nodes/or_fp8x23/input_1.cairo +++ b/tests/nodes/or_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp8x23/output_0.cairo b/tests/nodes/or_fp8x23/output_0.cairo index a5a3e5760..47d67b111 100644 --- a/tests/nodes/or_fp8x23/output_0.cairo +++ b/tests/nodes/or_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -15,7 +15,7 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(0); + data.append(1); data.append(1); data.append(1); data.append(1); diff --git a/tests/nodes/or_fp8x23_broadcast.cairo b/tests/nodes/or_fp8x23_broadcast.cairo index c8bd6df67..a286666c2 100644 --- a/tests/nodes/or_fp8x23_broadcast.cairo +++ b/tests/nodes/or_fp8x23_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_fp8x23_broadcast/input_0.cairo b/tests/nodes/or_fp8x23_broadcast/input_0.cairo index 42f1a489e..5c6660a18 100644 --- a/tests/nodes/or_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/or_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp8x23_broadcast/input_1.cairo b/tests/nodes/or_fp8x23_broadcast/input_1.cairo index 623758258..adadfb8cb 100644 --- a/tests/nodes/or_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/or_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,6 +10,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_fp8x23_broadcast/output_0.cairo b/tests/nodes/or_fp8x23_broadcast/output_0.cairo index 66356e88d..2041bdce3 100644 --- a/tests/nodes/or_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/or_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/or_i32.cairo b/tests/nodes/or_i32.cairo index 3948aaaa4..e2aa6a99d 100644 --- a/tests/nodes/or_i32.cairo +++ b/tests/nodes/or_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_i32/input_0.cairo b/tests/nodes/or_i32/input_0.cairo index 847586e5a..45a1a532b 100644 --- a/tests/nodes/or_i32/input_0.cairo +++ b/tests/nodes/or_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(-3); + data.append(0); + data.append(-2); + data.append(1); + data.append(-3); + data.append(1); + data.append(1); + data.append(-3); + data.append(1); + data.append(1); + data.append(0); + data.append(-2); + data.append(-3); + data.append(1); + data.append(0); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(1); + data.append(2); + data.append(-1); + data.append(-1); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i32/input_1.cairo b/tests/nodes/or_i32/input_1.cairo index ec5fd650d..016db0a53 100644 --- a/tests/nodes/or_i32/input_1.cairo +++ b/tests/nodes/or_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-2); + data.append(1); + data.append(0); + data.append(-1); + data.append(1); + data.append(-3); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(2); + data.append(-1); + data.append(0); + data.append(0); + data.append(-2); + data.append(-2); + data.append(2); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i32/output_0.cairo b/tests/nodes/or_i32/output_0.cairo index 049cf0729..95194b767 100644 --- a/tests/nodes/or_i32/output_0.cairo +++ b/tests/nodes/or_i32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); diff --git a/tests/nodes/or_i32_broadcast.cairo b/tests/nodes/or_i32_broadcast.cairo index 0bd40073d..a8a5caee8 100644 --- a/tests/nodes/or_i32_broadcast.cairo +++ b/tests/nodes/or_i32_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_i32_broadcast/input_0.cairo b/tests/nodes/or_i32_broadcast/input_0.cairo index 516a3765a..eded6f98f 100644 --- a/tests/nodes/or_i32_broadcast/input_0.cairo +++ b/tests/nodes/or_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); + data.append(1); + data.append(2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i32_broadcast/input_1.cairo b/tests/nodes/or_i32_broadcast/input_1.cairo index 902cae30d..09e58e0d8 100644 --- a/tests/nodes/or_i32_broadcast/input_1.cairo +++ b/tests/nodes/or_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-3); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i32_broadcast/output_0.cairo b/tests/nodes/or_i32_broadcast/output_0.cairo index 66356e88d..2041bdce3 100644 --- a/tests/nodes/or_i32_broadcast/output_0.cairo +++ b/tests/nodes/or_i32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/or_i8.cairo b/tests/nodes/or_i8.cairo index eb0042297..b97720435 100644 --- a/tests/nodes/or_i8.cairo +++ b/tests/nodes/or_i8.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_i8/input_0.cairo b/tests/nodes/or_i8/input_0.cairo index a41e07739..2e3cfaefb 100644 --- a/tests/nodes/or_i8/input_0.cairo +++ b/tests/nodes/or_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(0); + data.append(-1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(-1); + data.append(2); + data.append(1); + data.append(1); + data.append(0); + data.append(2); + data.append(-2); + data.append(1); + data.append(0); + data.append(1); + data.append(0); + data.append(2); + data.append(0); + data.append(2); + data.append(0); + data.append(2); + data.append(1); + data.append(2); + data.append(1); + data.append(-3); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i8/input_1.cairo b/tests/nodes/or_i8/input_1.cairo index d46122aa6..fa6f014b9 100644 --- a/tests/nodes/or_i8/input_1.cairo +++ b/tests/nodes/or_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(-1); + data.append(1); + data.append(0); + data.append(1); + data.append(-3); + data.append(1); + data.append(-1); + data.append(0); + data.append(-1); + data.append(0); + data.append(-3); + data.append(2); + data.append(-2); + data.append(-2); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(-1); + data.append(2); + data.append(-3); + data.append(-1); + data.append(-1); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i8/output_0.cairo b/tests/nodes/or_i8/output_0.cairo index 9c502f29e..8e18a844b 100644 --- a/tests/nodes/or_i8/output_0.cairo +++ b/tests/nodes/or_i8/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,7 +12,6 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); - data.append(0); data.append(1); data.append(1); data.append(1); @@ -20,6 +19,7 @@ fn output_0() -> Tensor { data.append(1); data.append(1); data.append(1); + data.append(0); data.append(1); data.append(1); data.append(1); diff --git a/tests/nodes/or_i8_broadcast.cairo b/tests/nodes/or_i8_broadcast.cairo index 1617ef17d..a2d044fc7 100644 --- a/tests/nodes/or_i8_broadcast.cairo +++ b/tests/nodes/or_i8_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_i8_broadcast/input_0.cairo b/tests/nodes/or_i8_broadcast/input_0.cairo index ea9f41c88..72331f26f 100644 --- a/tests/nodes/or_i8_broadcast/input_0.cairo +++ b/tests/nodes/or_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-1); + data.append(-2); + data.append(2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i8_broadcast/input_1.cairo b/tests/nodes/or_i8_broadcast/input_1.cairo index 61a18dbc3..d45d6dc9e 100644 --- a/tests/nodes/or_i8_broadcast/input_1.cairo +++ b/tests/nodes/or_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(-3); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_i8_broadcast/output_0.cairo b/tests/nodes/or_i8_broadcast/output_0.cairo index 66356e88d..2041bdce3 100644 --- a/tests/nodes/or_i8_broadcast/output_0.cairo +++ b/tests/nodes/or_i8_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/or_u32.cairo b/tests/nodes/or_u32.cairo index 089aa57b6..9d3007f49 100644 --- a/tests/nodes/or_u32.cairo +++ b/tests/nodes/or_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_u32/input_0.cairo b/tests/nodes/or_u32/input_0.cairo index af75e0844..255e0877e 100644 --- a/tests/nodes/or_u32/input_0.cairo +++ b/tests/nodes/or_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(5); + data.append(5); + data.append(0); + data.append(1); data.append(0); data.append(0); - data.append(2); - data.append(3); data.append(0); + data.append(5); data.append(4); - data.append(1); + data.append(0); + data.append(5); data.append(4); data.append(2); data.append(3); - data.append(2); data.append(1); - data.append(3); - data.append(3); - data.append(5); - data.append(3); data.append(0); - data.append(4); - data.append(1); - data.append(1); - data.append(4); - data.append(1); data.append(1); - data.append(4); - data.append(4); + data.append(5); + data.append(0); + data.append(5); data.append(2); data.append(3); + data.append(0); + data.append(0); + data.append(5); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_u32/input_1.cairo b/tests/nodes/or_u32/input_1.cairo index 8fb5293bd..53e2c0f87 100644 --- a/tests/nodes/or_u32/input_1.cairo +++ b/tests/nodes/or_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(4); data.append(1); - data.append(0); - data.append(3); - data.append(5); - data.append(1); - data.append(0); data.append(5); - data.append(2); - data.append(2); data.append(3); data.append(3); - data.append(4); - data.append(3); data.append(0); + data.append(0); + data.append(4); + data.append(4); + data.append(1); data.append(1); - data.append(3); data.append(1); + data.append(5); data.append(3); data.append(2); - data.append(0); + data.append(2); + data.append(5); + data.append(4); + data.append(3); data.append(4); data.append(2); - data.append(0); - data.append(1); - data.append(1); + data.append(4); + data.append(5); + data.append(4); data.append(2); - data.append(0); + data.append(1); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_u32/output_0.cairo b/tests/nodes/or_u32/output_0.cairo index 6bc8cbfbc..70e2b10b7 100644 --- a/tests/nodes/or_u32/output_0.cairo +++ b/tests/nodes/or_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,12 +10,12 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); - data.append(0); - data.append(1); data.append(1); data.append(1); data.append(1); data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(1); data.append(1); diff --git a/tests/nodes/or_u32_broadcast.cairo b/tests/nodes/or_u32_broadcast.cairo index 6cab73044..aa697b02d 100644 --- a/tests/nodes/or_u32_broadcast.cairo +++ b/tests/nodes/or_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/or_u32_broadcast/input_0.cairo b/tests/nodes/or_u32_broadcast/input_0.cairo index 8e0ec28d2..888c3fd7b 100644 --- a/tests/nodes/or_u32_broadcast/input_0.cairo +++ b/tests/nodes/or_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(4); - data.append(4); - data.append(4); + data.append(3); + data.append(2); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_u32_broadcast/input_1.cairo b/tests/nodes/or_u32_broadcast/input_1.cairo index 6dc047162..acdc8015e 100644 --- a/tests/nodes/or_u32_broadcast/input_1.cairo +++ b/tests/nodes/or_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(2); data.append(0); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/or_u32_broadcast/output_0.cairo b/tests/nodes/or_u32_broadcast/output_0.cairo index 66356e88d..2041bdce3 100644 --- a/tests/nodes/or_u32_broadcast/output_0.cairo +++ b/tests/nodes/or_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/pow_fp16x16.cairo b/tests/nodes/pow_fp16x16.cairo index 925fc0d68..2a2b0001c 100644 --- a/tests/nodes/pow_fp16x16.cairo +++ b/tests/nodes/pow_fp16x16.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/pow_fp16x16/input_0.cairo b/tests/nodes/pow_fp16x16/input_0.cairo index 247a24dfe..36e0c50c0 100644 --- a/tests/nodes/pow_fp16x16/input_0.cairo +++ b/tests/nodes/pow_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/pow_fp16x16/input_1.cairo b/tests/nodes/pow_fp16x16/input_1.cairo index c95cb9ed4..a1c3d1de8 100644 --- a/tests/nodes/pow_fp16x16/input_1.cairo +++ b/tests/nodes/pow_fp16x16/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { diff --git a/tests/nodes/pow_fp16x16/output_0.cairo b/tests/nodes/pow_fp16x16/output_0.cairo index 47390eee7..e601aae79 100644 --- a/tests/nodes/pow_fp16x16/output_0.cairo +++ b/tests/nodes/pow_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/pow_fp16x16_broadcast.cairo b/tests/nodes/pow_fp16x16_broadcast.cairo index 1290d3f94..21d0f0138 100644 --- a/tests/nodes/pow_fp16x16_broadcast.cairo +++ b/tests/nodes/pow_fp16x16_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/pow_fp16x16_broadcast/input_0.cairo b/tests/nodes/pow_fp16x16_broadcast/input_0.cairo index 247a24dfe..36e0c50c0 100644 --- a/tests/nodes/pow_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/pow_fp16x16_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/pow_fp16x16_broadcast/input_1.cairo b/tests/nodes/pow_fp16x16_broadcast/input_1.cairo index 21ef3ffc7..af1690b72 100644 --- a/tests/nodes/pow_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/pow_fp16x16_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { diff --git a/tests/nodes/pow_fp16x16_broadcast/output_0.cairo b/tests/nodes/pow_fp16x16_broadcast/output_0.cairo index 13d69a292..23d50bcf7 100644 --- a/tests/nodes/pow_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/pow_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/pow_fp8x23.cairo b/tests/nodes/pow_fp8x23.cairo index e9c1acac5..e1678569b 100644 --- a/tests/nodes/pow_fp8x23.cairo +++ b/tests/nodes/pow_fp8x23.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/pow_fp8x23/input_0.cairo b/tests/nodes/pow_fp8x23/input_0.cairo index 886e58c43..d4360ae35 100644 --- a/tests/nodes/pow_fp8x23/input_0.cairo +++ b/tests/nodes/pow_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/pow_fp8x23/input_1.cairo b/tests/nodes/pow_fp8x23/input_1.cairo index 5ba120049..0c6783a36 100644 --- a/tests/nodes/pow_fp8x23/input_1.cairo +++ b/tests/nodes/pow_fp8x23/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { diff --git a/tests/nodes/pow_fp8x23/output_0.cairo b/tests/nodes/pow_fp8x23/output_0.cairo index 3a549fa2d..1fe1c5fbe 100644 --- a/tests/nodes/pow_fp8x23/output_0.cairo +++ b/tests/nodes/pow_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/pow_fp8x23_broadcast.cairo b/tests/nodes/pow_fp8x23_broadcast.cairo index 748a3304b..9c062e08e 100644 --- a/tests/nodes/pow_fp8x23_broadcast.cairo +++ b/tests/nodes/pow_fp8x23_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/pow_fp8x23_broadcast/input_0.cairo b/tests/nodes/pow_fp8x23_broadcast/input_0.cairo index 886e58c43..d4360ae35 100644 --- a/tests/nodes/pow_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/pow_fp8x23_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/pow_fp8x23_broadcast/input_1.cairo b/tests/nodes/pow_fp8x23_broadcast/input_1.cairo index 935f52f36..16d64e103 100644 --- a/tests/nodes/pow_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/pow_fp8x23_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { diff --git a/tests/nodes/pow_fp8x23_broadcast/output_0.cairo b/tests/nodes/pow_fp8x23_broadcast/output_0.cairo index 90dbc4692..9b70cad60 100644 --- a/tests/nodes/pow_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/pow_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims.cairo b/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims.cairo index a03320371..6448221aa 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/input_0.cairo index c119af06d..ee6da3894 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/output_0.cairo index 34c25cfdd..dfee82e0f 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_do_not_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo b/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo index 6ad11b164..d117ad28f 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_fp16x16_export_keepdims/input_0.cairo b/tests/nodes/reduce_l1_fp16x16_export_keepdims/input_0.cairo index c119af06d..ee6da3894 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp16x16_export_keepdims/output_0.cairo b/tests/nodes/reduce_l1_fp16x16_export_keepdims/output_0.cairo index 62ebfdf59..289f754d1 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims.cairo index 3d5db8ece..cf8d92cdf 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/input_0.cairo index 495e3f3bb..15cd9b339 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/output_0.cairo index ed9773ab9..e329f8a66 100644 --- a/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp16x16_export_negative_axes_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims.cairo b/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims.cairo index 04fe6d1ed..320285e16 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/input_0.cairo index 649503f71..4823090ca 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/output_0.cairo index c7488bd35..5602489b5 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_do_not_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo b/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo index 1104ec987..c78f19f88 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_fp8x23_export_keepdims/input_0.cairo b/tests/nodes/reduce_l1_fp8x23_export_keepdims/input_0.cairo index 649503f71..4823090ca 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp8x23_export_keepdims/output_0.cairo b/tests/nodes/reduce_l1_fp8x23_export_keepdims/output_0.cairo index 3837ba804..2ba474e9e 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims.cairo index 0a611bbaa..3b724d2cf 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/input_0.cairo index cea6e9a72..535686b66 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/output_0.cairo index 3b38ad281..dfc8f8d07 100644 --- a/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_fp8x23_export_negative_axes_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_i32_export_do_not_keepdims.cairo b/tests/nodes/reduce_l1_i32_export_do_not_keepdims.cairo index 44f6a1d68..924fe74b8 100644 --- a/tests/nodes/reduce_l1_i32_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_i32_export_do_not_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_i32_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_l1_i32_export_do_not_keepdims/input_0.cairo index 8a0becc5d..a112fda8c 100644 --- a/tests/nodes/reduce_l1_i32_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_do_not_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i32_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_l1_i32_export_do_not_keepdims/output_0.cairo index 395ca510d..9d328c700 100644 --- a/tests/nodes/reduce_l1_i32_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_do_not_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 23, sign: false }); + data.append(3); + data.append(7); + data.append(11); + data.append(15); + data.append(19); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i32_export_keepdims.cairo b/tests/nodes/reduce_l1_i32_export_keepdims.cairo index 3cb390654..f598d13ac 100644 --- a/tests/nodes/reduce_l1_i32_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_i32_export_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_i32_export_keepdims/input_0.cairo b/tests/nodes/reduce_l1_i32_export_keepdims/input_0.cairo index 8a0becc5d..a112fda8c 100644 --- a/tests/nodes/reduce_l1_i32_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i32_export_keepdims/output_0.cairo b/tests/nodes/reduce_l1_i32_export_keepdims/output_0.cairo index 235e2fb3b..6f63a4357 100644 --- a/tests/nodes/reduce_l1_i32_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,11 +9,11 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 23, sign: false }); + data.append(3); + data.append(7); + data.append(11); + data.append(15); + data.append(19); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims.cairo index 07c858e40..0bd32e57c 100644 --- a/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/input_0.cairo index 1a0caaebc..ec6f047ec 100644 --- a/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 27, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(27); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/output_0.cairo index 2e06b6072..0cd06e466 100644 --- a/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i32_export_negative_axes_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 54, sign: false }); + data.append(30); + data.append(33); + data.append(36); + data.append(39); + data.append(42); + data.append(45); + data.append(48); + data.append(51); + data.append(54); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i8_export_do_not_keepdims.cairo b/tests/nodes/reduce_l1_i8_export_do_not_keepdims.cairo index b42a37805..174f58f20 100644 --- a/tests/nodes/reduce_l1_i8_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_i8_export_do_not_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_i8_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_l1_i8_export_do_not_keepdims/input_0.cairo index f539bc536..4bc8ad289 100644 --- a/tests/nodes/reduce_l1_i8_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_do_not_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i8_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_l1_i8_export_do_not_keepdims/output_0.cairo index 564693d96..fb3d370ba 100644 --- a/tests/nodes/reduce_l1_i8_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_do_not_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 23, sign: false }); + data.append(3); + data.append(7); + data.append(11); + data.append(15); + data.append(19); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i8_export_keepdims.cairo b/tests/nodes/reduce_l1_i8_export_keepdims.cairo index 964b5795f..a6acce525 100644 --- a/tests/nodes/reduce_l1_i8_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_i8_export_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_i8_export_keepdims/input_0.cairo b/tests/nodes/reduce_l1_i8_export_keepdims/input_0.cairo index f539bc536..4bc8ad289 100644 --- a/tests/nodes/reduce_l1_i8_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i8_export_keepdims/output_0.cairo b/tests/nodes/reduce_l1_i8_export_keepdims/output_0.cairo index 96b0f8e08..128b09fb1 100644 --- a/tests/nodes/reduce_l1_i8_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,11 +9,11 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 23, sign: false }); + data.append(3); + data.append(7); + data.append(11); + data.append(15); + data.append(19); + data.append(23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims.cairo index c023fa4eb..ce0a4712b 100644 --- a/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/input_0.cairo index 57a15ef6a..62303ba20 100644 --- a/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 27, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(27); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/output_0.cairo index e1bed700b..dfc66e643 100644 --- a/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_i8_export_negative_axes_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 54, sign: false }); + data.append(30); + data.append(33); + data.append(36); + data.append(39); + data.append(42); + data.append(45); + data.append(48); + data.append(51); + data.append(54); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_l1_u32_export_do_not_keepdims.cairo b/tests/nodes/reduce_l1_u32_export_do_not_keepdims.cairo index fa8eadd24..c497bf633 100644 --- a/tests/nodes/reduce_l1_u32_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_l1_u32_export_do_not_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_u32_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_l1_u32_export_do_not_keepdims/input_0.cairo index 874626c95..88687089b 100644 --- a/tests/nodes/reduce_l1_u32_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_do_not_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_u32_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_l1_u32_export_do_not_keepdims/output_0.cairo index 875923369..4791b0eea 100644 --- a/tests/nodes/reduce_l1_u32_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_do_not_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_u32_export_keepdims.cairo b/tests/nodes/reduce_l1_u32_export_keepdims.cairo index b103c1658..290fac3ea 100644 --- a/tests/nodes/reduce_l1_u32_export_keepdims.cairo +++ b/tests/nodes/reduce_l1_u32_export_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_u32_export_keepdims/input_0.cairo b/tests/nodes/reduce_l1_u32_export_keepdims/input_0.cairo index 874626c95..88687089b 100644 --- a/tests/nodes/reduce_l1_u32_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_u32_export_keepdims/output_0.cairo b/tests/nodes/reduce_l1_u32_export_keepdims/output_0.cairo index 3beefc6d7..9aee2910a 100644 --- a/tests/nodes/reduce_l1_u32_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims.cairo index 3ff7f55b3..88d88c89b 100644 --- a/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/input_0.cairo index 64d914cef..02d9b8029 100644 --- a/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/output_0.cairo index e5754f73c..665bbb9e5 100644 --- a/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_l1_u32_export_negative_axes_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_fp16x16_1D.cairo b/tests/nodes/reduce_mean_fp16x16_1D.cairo index 0c05f7229..3c05be73f 100644 --- a/tests/nodes/reduce_mean_fp16x16_1D.cairo +++ b/tests/nodes/reduce_mean_fp16x16_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo index 28f70e72b..87a2a5474 100644 --- a/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo index a3740865b..841194f1c 100644 --- a/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo index 48a3ced98..00d2b8927 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp16x16_2D_axis_1/input_0.cairo b/tests/nodes/reduce_mean_fp16x16_2D_axis_1/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp16x16_2D_axis_1/output_0.cairo b/tests/nodes/reduce_mean_fp16x16_2D_axis_1/output_0.cairo index f443e7af0..9fdd0b943 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp16x16_2D_default.cairo b/tests/nodes/reduce_mean_fp16x16_2D_default.cairo index ccd09340a..96c10a9d9 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp16x16_2D_default/input_0.cairo b/tests/nodes/reduce_mean_fp16x16_2D_default/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp16x16_2D_default/output_0.cairo b/tests/nodes/reduce_mean_fp16x16_2D_default/output_0.cairo index 3c3b947e4..8dac55e04 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo index f774fb3a9..5d4986896 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp16x16_2D_keepdims/input_0.cairo b/tests/nodes/reduce_mean_fp16x16_2D_keepdims/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp16x16_2D_keepdims/output_0.cairo b/tests/nodes/reduce_mean_fp16x16_2D_keepdims/output_0.cairo index 58118b012..e40a94d37 100644 --- a/tests/nodes/reduce_mean_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_fp16x16_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_1D.cairo b/tests/nodes/reduce_mean_fp8x23_1D.cairo index 0873270cc..f343f7137 100644 --- a/tests/nodes/reduce_mean_fp8x23_1D.cairo +++ b/tests/nodes/reduce_mean_fp8x23_1D.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo index 72fc64be4..8a93459cd 100644 --- a/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo index 741b3bb34..4c9ae210e 100644 --- a/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo index a16fd089b..caa06d610 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_axis_1.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp8x23_2D_axis_1/input_0.cairo b/tests/nodes/reduce_mean_fp8x23_2D_axis_1/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_2D_axis_1/output_0.cairo b/tests/nodes/reduce_mean_fp8x23_2D_axis_1/output_0.cairo index 4c30658b7..f1bc5739a 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_2D_default.cairo b/tests/nodes/reduce_mean_fp8x23_2D_default.cairo index ffe32b3ca..e2c37da1d 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_default.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp8x23_2D_default/input_0.cairo b/tests/nodes/reduce_mean_fp8x23_2D_default/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_2D_default/output_0.cairo b/tests/nodes/reduce_mean_fp8x23_2D_default/output_0.cairo index 4153109ee..3cce9719f 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo index 68ba8b05a..2921de55d 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_fp8x23_2D_keepdims/input_0.cairo b/tests/nodes/reduce_mean_fp8x23_2D_keepdims/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_fp8x23_2D_keepdims/output_0.cairo b/tests/nodes/reduce_mean_fp8x23_2D_keepdims/output_0.cairo index b9e062e75..c49c67fb7 100644 --- a/tests/nodes/reduce_mean_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_fp8x23_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i32_1D.cairo b/tests/nodes/reduce_mean_i32_1D.cairo index 92bf79235..0a1560958 100644 --- a/tests/nodes/reduce_mean_i32_1D.cairo +++ b/tests/nodes/reduce_mean_i32_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i32_1D/input_0.cairo b/tests/nodes/reduce_mean_i32_1D/input_0.cairo index c2d41d222..677dcb64d 100644 --- a/tests/nodes/reduce_mean_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_i32_1D/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i32_1D/output_0.cairo b/tests/nodes/reduce_mean_i32_1D/output_0.cairo index bbf25fb87..2af65019e 100644 --- a/tests/nodes/reduce_mean_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_i32_1D/output_0.cairo @@ -1,13 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i32_2D_axis_1.cairo b/tests/nodes/reduce_mean_i32_2D_axis_1.cairo index 0b4fb2bb6..7b518e320 100644 --- a/tests/nodes/reduce_mean_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_i32_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_mean_i32_2D_axis_1/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_mean_i32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_mean_i32_2D_axis_1/output_0.cairo index b8cc59f24..d73eba5ff 100644 --- a/tests/nodes/reduce_mean_i32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_axis_1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i32_2D_default.cairo b/tests/nodes/reduce_mean_i32_2D_default.cairo index f654410e8..fdbba24db 100644 --- a/tests/nodes/reduce_mean_i32_2D_default.cairo +++ b/tests/nodes/reduce_mean_i32_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i32_2D_default/input_0.cairo b/tests/nodes/reduce_mean_i32_2D_default/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_mean_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i32_2D_default/output_0.cairo b/tests/nodes/reduce_mean_i32_2D_default/output_0.cairo index 5af32fad7..a3f29aec0 100644 --- a/tests/nodes/reduce_mean_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_default/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i32_2D_keepdims.cairo b/tests/nodes/reduce_mean_i32_2D_keepdims.cairo index 0344d99d9..d6e731f75 100644 --- a/tests/nodes/reduce_mean_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_i32_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_mean_i32_2D_keepdims/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_mean_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_mean_i32_2D_keepdims/output_0.cairo index adda59655..1d3ccc3ca 100644 --- a/tests/nodes/reduce_mean_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_i32_2D_keepdims/output_0.cairo @@ -1,12 +1,11 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_mean_i8_1D.cairo b/tests/nodes/reduce_mean_i8_1D.cairo index 012f14a89..b212e1056 100644 --- a/tests/nodes/reduce_mean_i8_1D.cairo +++ b/tests/nodes/reduce_mean_i8_1D.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i8_1D/input_0.cairo b/tests/nodes/reduce_mean_i8_1D/input_0.cairo index 0a7ed41eb..02b17d55e 100644 --- a/tests/nodes/reduce_mean_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_i8_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i8_1D/output_0.cairo b/tests/nodes/reduce_mean_i8_1D/output_0.cairo index a57497bbe..7004bbe8d 100644 --- a/tests/nodes/reduce_mean_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_i8_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i8_2D_axis_1.cairo b/tests/nodes/reduce_mean_i8_2D_axis_1.cairo index 5d36350be..f6b59bbbe 100644 --- a/tests/nodes/reduce_mean_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_i8_2D_axis_1.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i8_2D_axis_1/input_0.cairo b/tests/nodes/reduce_mean_i8_2D_axis_1/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_mean_i8_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i8_2D_axis_1/output_0.cairo b/tests/nodes/reduce_mean_i8_2D_axis_1/output_0.cairo index 1800189c1..64de39424 100644 --- a/tests/nodes/reduce_mean_i8_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i8_2D_default.cairo b/tests/nodes/reduce_mean_i8_2D_default.cairo index e899d6141..e63678487 100644 --- a/tests/nodes/reduce_mean_i8_2D_default.cairo +++ b/tests/nodes/reduce_mean_i8_2D_default.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i8_2D_default/input_0.cairo b/tests/nodes/reduce_mean_i8_2D_default/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_mean_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i8_2D_default/output_0.cairo b/tests/nodes/reduce_mean_i8_2D_default/output_0.cairo index 559674aa0..25bbee21a 100644 --- a/tests/nodes/reduce_mean_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i8_2D_keepdims.cairo b/tests/nodes/reduce_mean_i8_2D_keepdims.cairo index 01ee0d557..20309e599 100644 --- a/tests/nodes/reduce_mean_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_i8_2D_keepdims.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_i8_2D_keepdims/input_0.cairo b/tests/nodes/reduce_mean_i8_2D_keepdims/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_mean_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_i8_2D_keepdims/output_0.cairo b/tests/nodes/reduce_mean_i8_2D_keepdims/output_0.cairo index 8c5e08ea6..3e5e2708b 100644 --- a/tests/nodes/reduce_mean_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_i8_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_mean_u32_1D.cairo b/tests/nodes/reduce_mean_u32_1D.cairo index d6bf1a7e6..def1342f2 100644 --- a/tests/nodes/reduce_mean_u32_1D.cairo +++ b/tests/nodes/reduce_mean_u32_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_u32_1D/input_0.cairo b/tests/nodes/reduce_mean_u32_1D/input_0.cairo index 0c4cb9786..eaa091501 100644 --- a/tests/nodes/reduce_mean_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_mean_u32_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_u32_1D/output_0.cairo b/tests/nodes/reduce_mean_u32_1D/output_0.cairo index 31cebe9de..f8148c6ca 100644 --- a/tests/nodes/reduce_mean_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_mean_u32_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_u32_2D_axis_1.cairo b/tests/nodes/reduce_mean_u32_2D_axis_1.cairo index 203efd065..9f36c99f7 100644 --- a/tests/nodes/reduce_mean_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_mean_u32_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_u32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_mean_u32_2D_axis_1/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_mean_u32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_u32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_mean_u32_2D_axis_1/output_0.cairo index 054082cce..5a94ba7f4 100644 --- a/tests/nodes/reduce_mean_u32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_u32_2D_default.cairo b/tests/nodes/reduce_mean_u32_2D_default.cairo index 6d82f083a..8efde79e6 100644 --- a/tests/nodes/reduce_mean_u32_2D_default.cairo +++ b/tests/nodes/reduce_mean_u32_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_u32_2D_default/input_0.cairo b/tests/nodes/reduce_mean_u32_2D_default/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_mean_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_u32_2D_default/output_0.cairo b/tests/nodes/reduce_mean_u32_2D_default/output_0.cairo index 44ed1fa4f..9e379b0ae 100644 --- a/tests/nodes/reduce_mean_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_u32_2D_keepdims.cairo b/tests/nodes/reduce_mean_u32_2D_keepdims.cairo index 27a8654b2..1453d7b02 100644 --- a/tests/nodes/reduce_mean_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_mean_u32_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_mean_u32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_mean_u32_2D_keepdims/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_mean_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_mean_u32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_mean_u32_2D_keepdims/output_0.cairo index 5925c78ea..03aa6135c 100644 --- a/tests/nodes/reduce_mean_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_mean_u32_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_fp16x16_1D.cairo b/tests/nodes/reduce_min_fp16x16_1D.cairo index 87a7d70e5..03f9971fe 100644 --- a/tests/nodes/reduce_min_fp16x16_1D.cairo +++ b/tests/nodes/reduce_min_fp16x16_1D.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo index 28f70e72b..87a2a5474 100644 --- a/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo index 0dc58a8fd..256a389c2 100644 --- a/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo index 7bf770062..54b3cc8dc 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_axis_1.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_fp16x16_2D_axis_1/input_0.cairo b/tests/nodes/reduce_min_fp16x16_2D_axis_1/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp16x16_2D_axis_1/output_0.cairo b/tests/nodes/reduce_min_fp16x16_2D_axis_1/output_0.cairo index 1ebaa1646..94d40fb7f 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp16x16_2D_default.cairo b/tests/nodes/reduce_min_fp16x16_2D_default.cairo index 3b6adf113..ced88feed 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_default.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_fp16x16_2D_default/input_0.cairo b/tests/nodes/reduce_min_fp16x16_2D_default/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp16x16_2D_default/output_0.cairo b/tests/nodes/reduce_min_fp16x16_2D_default/output_0.cairo index 1b3b8fd5c..165944d05 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo index 1300ccf2e..847280216 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_keepdims.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP16x16Tensor; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_fp16x16_2D_keepdims/input_0.cairo b/tests/nodes/reduce_min_fp16x16_2D_keepdims/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp16x16_2D_keepdims/output_0.cairo b/tests/nodes/reduce_min_fp16x16_2D_keepdims/output_0.cairo index 07f796ebd..a7dfe6d45 100644 --- a/tests/nodes/reduce_min_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_fp16x16_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_1D.cairo b/tests/nodes/reduce_min_fp8x23_1D.cairo index 49aa396e2..46ab56efd 100644 --- a/tests/nodes/reduce_min_fp8x23_1D.cairo +++ b/tests/nodes/reduce_min_fp8x23_1D.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo index 72fc64be4..8a93459cd 100644 --- a/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo index 0d640885a..bfa522610 100644 --- a/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo index caf386a62..159cb5ba3 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_axis_1.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_fp8x23_2D_axis_1/input_0.cairo b/tests/nodes/reduce_min_fp8x23_2D_axis_1/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_2D_axis_1/output_0.cairo b/tests/nodes/reduce_min_fp8x23_2D_axis_1/output_0.cairo index 85d1394dc..035b58ef9 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_2D_default.cairo b/tests/nodes/reduce_min_fp8x23_2D_default.cairo index 297e84ba4..5ffba033c 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_default.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_fp8x23_2D_default/input_0.cairo b/tests/nodes/reduce_min_fp8x23_2D_default/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_2D_default/output_0.cairo b/tests/nodes/reduce_min_fp8x23_2D_default/output_0.cairo index f0368a52f..d59bc5f65 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo index 2a62cc225..164db5cd3 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_keepdims.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_fp8x23_2D_keepdims/input_0.cairo b/tests/nodes/reduce_min_fp8x23_2D_keepdims/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_fp8x23_2D_keepdims/output_0.cairo b/tests/nodes/reduce_min_fp8x23_2D_keepdims/output_0.cairo index 53cd82225..469e167de 100644 --- a/tests/nodes/reduce_min_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_fp8x23_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i32_1D.cairo b/tests/nodes/reduce_min_i32_1D.cairo index 13d8ad8ca..0e465a413 100644 --- a/tests/nodes/reduce_min_i32_1D.cairo +++ b/tests/nodes/reduce_min_i32_1D.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i32_1D/input_0.cairo b/tests/nodes/reduce_min_i32_1D/input_0.cairo index c2d41d222..677dcb64d 100644 --- a/tests/nodes/reduce_min_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_min_i32_1D/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i32_1D/output_0.cairo b/tests/nodes/reduce_min_i32_1D/output_0.cairo index cf019e58c..8d712fc27 100644 --- a/tests/nodes/reduce_min_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_min_i32_1D/output_0.cairo @@ -1,13 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i32_2D_axis_1.cairo b/tests/nodes/reduce_min_i32_2D_axis_1.cairo index e9156ec03..319db17c0 100644 --- a/tests/nodes/reduce_min_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_i32_2D_axis_1.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_min_i32_2D_axis_1/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_min_i32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_min_i32_2D_axis_1/output_0.cairo index b8cc59f24..d73eba5ff 100644 --- a/tests/nodes/reduce_min_i32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_axis_1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i32_2D_default.cairo b/tests/nodes/reduce_min_i32_2D_default.cairo index cd724078e..61d6a38e9 100644 --- a/tests/nodes/reduce_min_i32_2D_default.cairo +++ b/tests/nodes/reduce_min_i32_2D_default.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i32_2D_default/input_0.cairo b/tests/nodes/reduce_min_i32_2D_default/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_min_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i32_2D_default/output_0.cairo b/tests/nodes/reduce_min_i32_2D_default/output_0.cairo index 6fd5786a0..c54faed17 100644 --- a/tests/nodes/reduce_min_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_default/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i32_2D_keepdims.cairo b/tests/nodes/reduce_min_i32_2D_keepdims.cairo index 2b3c1b580..c2cb6236f 100644 --- a/tests/nodes/reduce_min_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_i32_2D_keepdims.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_min_i32_2D_keepdims/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_min_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_min_i32_2D_keepdims/output_0.cairo index 91765ff8e..42891484c 100644 --- a/tests/nodes/reduce_min_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_i32_2D_keepdims/output_0.cairo @@ -1,12 +1,11 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_min_i8_1D.cairo b/tests/nodes/reduce_min_i8_1D.cairo index 578dd2f59..dff10f299 100644 --- a/tests/nodes/reduce_min_i8_1D.cairo +++ b/tests/nodes/reduce_min_i8_1D.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i8_1D/input_0.cairo b/tests/nodes/reduce_min_i8_1D/input_0.cairo index 0a7ed41eb..02b17d55e 100644 --- a/tests/nodes/reduce_min_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_min_i8_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i8_1D/output_0.cairo b/tests/nodes/reduce_min_i8_1D/output_0.cairo index 0d640885a..bfa522610 100644 --- a/tests/nodes/reduce_min_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_min_i8_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i8_2D_axis_1.cairo b/tests/nodes/reduce_min_i8_2D_axis_1.cairo index e633af90e..d149d42b0 100644 --- a/tests/nodes/reduce_min_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_i8_2D_axis_1.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i8_2D_axis_1/input_0.cairo b/tests/nodes/reduce_min_i8_2D_axis_1/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_min_i8_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i8_2D_axis_1/output_0.cairo b/tests/nodes/reduce_min_i8_2D_axis_1/output_0.cairo index 1800189c1..64de39424 100644 --- a/tests/nodes/reduce_min_i8_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i8_2D_default.cairo b/tests/nodes/reduce_min_i8_2D_default.cairo index a84d2fb77..75140ed8b 100644 --- a/tests/nodes/reduce_min_i8_2D_default.cairo +++ b/tests/nodes/reduce_min_i8_2D_default.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i8_2D_default/input_0.cairo b/tests/nodes/reduce_min_i8_2D_default/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_min_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i8_2D_default/output_0.cairo b/tests/nodes/reduce_min_i8_2D_default/output_0.cairo index f0368a52f..d59bc5f65 100644 --- a/tests/nodes/reduce_min_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i8_2D_keepdims.cairo b/tests/nodes/reduce_min_i8_2D_keepdims.cairo index 9196cf0e6..8ce4f206a 100644 --- a/tests/nodes/reduce_min_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_i8_2D_keepdims.cairo @@ -2,9 +2,9 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_min_i8_2D_keepdims/input_0.cairo b/tests/nodes/reduce_min_i8_2D_keepdims/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_min_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_min_i8_2D_keepdims/output_0.cairo b/tests/nodes/reduce_min_i8_2D_keepdims/output_0.cairo index 53cd82225..469e167de 100644 --- a/tests/nodes/reduce_min_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_i8_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_min_u32_1D.cairo b/tests/nodes/reduce_min_u32_1D.cairo index dd0390d72..a01cc7976 100644 --- a/tests/nodes/reduce_min_u32_1D.cairo +++ b/tests/nodes/reduce_min_u32_1D.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_u32_1D/input_0.cairo b/tests/nodes/reduce_min_u32_1D/input_0.cairo index 0c4cb9786..eaa091501 100644 --- a/tests/nodes/reduce_min_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_min_u32_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_u32_1D/output_0.cairo b/tests/nodes/reduce_min_u32_1D/output_0.cairo index b37eb7383..55f2d067a 100644 --- a/tests/nodes/reduce_min_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_min_u32_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_u32_2D_axis_1.cairo b/tests/nodes/reduce_min_u32_2D_axis_1.cairo index b43478d43..2149839ee 100644 --- a/tests/nodes/reduce_min_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_min_u32_2D_axis_1.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_u32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_min_u32_2D_axis_1/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_min_u32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_u32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_min_u32_2D_axis_1/output_0.cairo index 054082cce..5a94ba7f4 100644 --- a/tests/nodes/reduce_min_u32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_u32_2D_default.cairo b/tests/nodes/reduce_min_u32_2D_default.cairo index 5e5b7718a..ef809632f 100644 --- a/tests/nodes/reduce_min_u32_2D_default.cairo +++ b/tests/nodes/reduce_min_u32_2D_default.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_u32_2D_default/input_0.cairo b/tests/nodes/reduce_min_u32_2D_default/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_min_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_u32_2D_default/output_0.cairo b/tests/nodes/reduce_min_u32_2D_default/output_0.cairo index bebff6817..3e86b1097 100644 --- a/tests/nodes/reduce_min_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_u32_2D_keepdims.cairo b/tests/nodes/reduce_min_u32_2D_keepdims.cairo index 24d7b4140..8091c8489 100644 --- a/tests/nodes/reduce_min_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_min_u32_2D_keepdims.cairo @@ -2,10 +2,10 @@ mod input_0; mod output_0; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::U32TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; #[test] diff --git a/tests/nodes/reduce_min_u32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_min_u32_2D_keepdims/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_min_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_min_u32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_min_u32_2D_keepdims/output_0.cairo index 8502ad55f..2474d3151 100644 --- a/tests/nodes/reduce_min_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_min_u32_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_fp16x16_1D.cairo b/tests/nodes/reduce_prod_fp16x16_1D.cairo index 2e6f69f0e..36a5e814e 100644 --- a/tests/nodes/reduce_prod_fp16x16_1D.cairo +++ b/tests/nodes/reduce_prod_fp16x16_1D.cairo @@ -6,7 +6,7 @@ use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo index 28f70e72b..87a2a5474 100644 --- a/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo index 0dc58a8fd..256a389c2 100644 --- a/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo index 826c77717..980564b4b 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_axis_1.cairo @@ -6,7 +6,7 @@ use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_fp16x16_2D_axis_1/input_0.cairo b/tests/nodes/reduce_prod_fp16x16_2D_axis_1/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp16x16_2D_axis_1/output_0.cairo b/tests/nodes/reduce_prod_fp16x16_2D_axis_1/output_0.cairo index c4502f00a..123ca31b4 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp16x16_2D_default.cairo b/tests/nodes/reduce_prod_fp16x16_2D_default.cairo index c078c72ae..fe7bbb12a 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_default.cairo @@ -6,7 +6,7 @@ use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_fp16x16_2D_default/input_0.cairo b/tests/nodes/reduce_prod_fp16x16_2D_default/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp16x16_2D_default/output_0.cairo b/tests/nodes/reduce_prod_fp16x16_2D_default/output_0.cairo index aa1c705b2..a403bfb77 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo index a3ec93f4f..1cef5b7ca 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_keepdims.cairo @@ -6,7 +6,7 @@ use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_fp16x16_2D_keepdims/input_0.cairo b/tests/nodes/reduce_prod_fp16x16_2D_keepdims/input_0.cairo index f28cd9d36..b20bc6da3 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp16x16_2D_keepdims/output_0.cairo b/tests/nodes/reduce_prod_fp16x16_2D_keepdims/output_0.cairo index b158db3e5..3b539ce06 100644 --- a/tests/nodes/reduce_prod_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_fp16x16_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_1D.cairo b/tests/nodes/reduce_prod_fp8x23_1D.cairo index ca19ee80b..fa80196da 100644 --- a/tests/nodes/reduce_prod_fp8x23_1D.cairo +++ b/tests/nodes/reduce_prod_fp8x23_1D.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo index 72fc64be4..8a93459cd 100644 --- a/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo index 0d640885a..bfa522610 100644 --- a/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo index 6d6b38c40..1d602606f 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_axis_1.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_fp8x23_2D_axis_1/input_0.cairo b/tests/nodes/reduce_prod_fp8x23_2D_axis_1/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_2D_axis_1/output_0.cairo b/tests/nodes/reduce_prod_fp8x23_2D_axis_1/output_0.cairo index 28bdc71c8..f6ad57c22 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_2D_default.cairo b/tests/nodes/reduce_prod_fp8x23_2D_default.cairo index 5e0065975..f8472fefe 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_default.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_fp8x23_2D_default/input_0.cairo b/tests/nodes/reduce_prod_fp8x23_2D_default/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_2D_default/output_0.cairo b/tests/nodes/reduce_prod_fp8x23_2D_default/output_0.cairo index c3c979e8b..3812807cd 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo index cb07d0227..1da9fa99f 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_keepdims.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_fp8x23_2D_keepdims/input_0.cairo b/tests/nodes/reduce_prod_fp8x23_2D_keepdims/input_0.cairo index 4da164c5b..a1eab7017 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_fp8x23_2D_keepdims/output_0.cairo b/tests/nodes/reduce_prod_fp8x23_2D_keepdims/output_0.cairo index 3a0da03ba..fe35b87ad 100644 --- a/tests/nodes/reduce_prod_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_fp8x23_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i32_1D.cairo b/tests/nodes/reduce_prod_i32_1D.cairo index c3944b1de..8d8a5b15a 100644 --- a/tests/nodes/reduce_prod_i32_1D.cairo +++ b/tests/nodes/reduce_prod_i32_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_i32_1D/input_0.cairo b/tests/nodes/reduce_prod_i32_1D/input_0.cairo index c2d41d222..677dcb64d 100644 --- a/tests/nodes/reduce_prod_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_i32_1D/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i32_1D/output_0.cairo b/tests/nodes/reduce_prod_i32_1D/output_0.cairo index cf019e58c..8d712fc27 100644 --- a/tests/nodes/reduce_prod_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_i32_1D/output_0.cairo @@ -1,13 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i32_2D_axis_1.cairo b/tests/nodes/reduce_prod_i32_2D_axis_1.cairo index 2732151ee..213f0eed5 100644 --- a/tests/nodes/reduce_prod_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_i32_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_i32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_prod_i32_2D_axis_1/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_prod_i32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_prod_i32_2D_axis_1/output_0.cairo index c5b14e056..5136b8616 100644 --- a/tests/nodes/reduce_prod_i32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_axis_1/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(0); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i32_2D_default.cairo b/tests/nodes/reduce_prod_i32_2D_default.cairo index c92c19ca9..09c5e54f2 100644 --- a/tests/nodes/reduce_prod_i32_2D_default.cairo +++ b/tests/nodes/reduce_prod_i32_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_i32_2D_default/input_0.cairo b/tests/nodes/reduce_prod_i32_2D_default/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_prod_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i32_2D_default/output_0.cairo b/tests/nodes/reduce_prod_i32_2D_default/output_0.cairo index b2f7b6372..af13666ed 100644 --- a/tests/nodes/reduce_prod_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_default/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i32_2D_keepdims.cairo b/tests/nodes/reduce_prod_i32_2D_keepdims.cairo index b71e847ca..a46114b6e 100644 --- a/tests/nodes/reduce_prod_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_i32_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_prod_i32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_prod_i32_2D_keepdims/input_0.cairo index 71e72d9d6..a6cf560a3 100644 --- a/tests/nodes/reduce_prod_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_prod_i32_2D_keepdims/output_0.cairo index 51cb515a1..110d10eb3 100644 --- a/tests/nodes/reduce_prod_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_i32_2D_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_prod_i8_1D.cairo b/tests/nodes/reduce_prod_i8_1D.cairo index 66427af40..f5b9dd92f 100644 --- a/tests/nodes/reduce_prod_i8_1D.cairo +++ b/tests/nodes/reduce_prod_i8_1D.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_i8_1D/input_0.cairo b/tests/nodes/reduce_prod_i8_1D/input_0.cairo index 0a7ed41eb..02b17d55e 100644 --- a/tests/nodes/reduce_prod_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_i8_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i8_1D/output_0.cairo b/tests/nodes/reduce_prod_i8_1D/output_0.cairo index 0d640885a..bfa522610 100644 --- a/tests/nodes/reduce_prod_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_i8_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i8_2D_axis_1.cairo b/tests/nodes/reduce_prod_i8_2D_axis_1.cairo index c885785b3..a81741feb 100644 --- a/tests/nodes/reduce_prod_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_i8_2D_axis_1.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_i8_2D_axis_1/input_0.cairo b/tests/nodes/reduce_prod_i8_2D_axis_1/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_prod_i8_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i8_2D_axis_1/output_0.cairo b/tests/nodes/reduce_prod_i8_2D_axis_1/output_0.cairo index 2002101ac..c0ffc47ac 100644 --- a/tests/nodes/reduce_prod_i8_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i8_2D_default.cairo b/tests/nodes/reduce_prod_i8_2D_default.cairo index 96620bd1f..215e7fcde 100644 --- a/tests/nodes/reduce_prod_i8_2D_default.cairo +++ b/tests/nodes/reduce_prod_i8_2D_default.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_i8_2D_default/input_0.cairo b/tests/nodes/reduce_prod_i8_2D_default/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_prod_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i8_2D_default/output_0.cairo b/tests/nodes/reduce_prod_i8_2D_default/output_0.cairo index 7cfab7651..fc892f75b 100644 --- a/tests/nodes/reduce_prod_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i8_2D_keepdims.cairo b/tests/nodes/reduce_prod_i8_2D_keepdims.cairo index 0f290a380..08c01ed9b 100644 --- a/tests/nodes/reduce_prod_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_i8_2D_keepdims.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_i8_2D_keepdims/input_0.cairo b/tests/nodes/reduce_prod_i8_2D_keepdims/input_0.cairo index 8fa37da90..a75d02516 100644 --- a/tests/nodes/reduce_prod_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_i8_2D_keepdims/output_0.cairo b/tests/nodes/reduce_prod_i8_2D_keepdims/output_0.cairo index b4cf78519..cf240986c 100644 --- a/tests/nodes/reduce_prod_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_i8_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { diff --git a/tests/nodes/reduce_prod_u32_1D.cairo b/tests/nodes/reduce_prod_u32_1D.cairo index 70f4adfe9..e891ac101 100644 --- a/tests/nodes/reduce_prod_u32_1D.cairo +++ b/tests/nodes/reduce_prod_u32_1D.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_u32_1D/input_0.cairo b/tests/nodes/reduce_prod_u32_1D/input_0.cairo index 0c4cb9786..eaa091501 100644 --- a/tests/nodes/reduce_prod_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_prod_u32_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_u32_1D/output_0.cairo b/tests/nodes/reduce_prod_u32_1D/output_0.cairo index b37eb7383..55f2d067a 100644 --- a/tests/nodes/reduce_prod_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_prod_u32_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_u32_2D_axis_1.cairo b/tests/nodes/reduce_prod_u32_2D_axis_1.cairo index 00b9b0385..9509146e4 100644 --- a/tests/nodes/reduce_prod_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_prod_u32_2D_axis_1.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_u32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_prod_u32_2D_axis_1/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_prod_u32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_u32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_prod_u32_2D_axis_1/output_0.cairo index 057472232..3b2324be3 100644 --- a/tests/nodes/reduce_prod_u32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_u32_2D_default.cairo b/tests/nodes/reduce_prod_u32_2D_default.cairo index 358e1fc79..034b2b83e 100644 --- a/tests/nodes/reduce_prod_u32_2D_default.cairo +++ b/tests/nodes/reduce_prod_u32_2D_default.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_u32_2D_default/input_0.cairo b/tests/nodes/reduce_prod_u32_2D_default/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_prod_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_u32_2D_default/output_0.cairo b/tests/nodes/reduce_prod_u32_2D_default/output_0.cairo index 4d1257f83..bdf37a08b 100644 --- a/tests/nodes/reduce_prod_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_u32_2D_keepdims.cairo b/tests/nodes/reduce_prod_u32_2D_keepdims.cairo index 6ff64daac..3ee83ca7c 100644 --- a/tests/nodes/reduce_prod_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_prod_u32_2D_keepdims.cairo @@ -2,8 +2,8 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; diff --git a/tests/nodes/reduce_prod_u32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_prod_u32_2D_keepdims/input_0.cairo index 3de7330b0..daac4f863 100644 --- a/tests/nodes/reduce_prod_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_prod_u32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_prod_u32_2D_keepdims/output_0.cairo index d38fc1bb2..9abd60ecd 100644 --- a/tests/nodes/reduce_prod_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_prod_u32_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_1D.cairo b/tests/nodes/reduce_sum_fp16x16_1D.cairo index f333b21a8..3f0522443 100644 --- a/tests/nodes/reduce_sum_fp16x16_1D.cairo +++ b/tests/nodes/reduce_sum_fp16x16_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo b/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo index af090f1ab..38c052c06 100644 --- a/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_1D/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo b/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo index c8b5757e9..a2e4a88f1 100644 --- a/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_1D/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo b/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo index 60cf39d37..6d0a4e86c 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp16x16_2D_axis_1/input_0.cairo b/tests/nodes/reduce_sum_fp16x16_2D_axis_1/input_0.cairo index c35b76cbe..00c61e821 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_2D_axis_1/output_0.cairo b/tests/nodes/reduce_sum_fp16x16_2D_axis_1/output_0.cairo index 6ef425d27..2eb416252 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_2D_default.cairo b/tests/nodes/reduce_sum_fp16x16_2D_default.cairo index b9e30e5ef..62fc72403 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_default.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp16x16_2D_default/input_0.cairo b/tests/nodes/reduce_sum_fp16x16_2D_default/input_0.cairo index c35b76cbe..00c61e821 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_2D_default/output_0.cairo b/tests/nodes/reduce_sum_fp16x16_2D_default/output_0.cairo index 8452a052b..bbd646932 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo b/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo index 857ed91a8..7de0e4085 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp16x16_2D_keepdims/input_0.cairo b/tests/nodes/reduce_sum_fp16x16_2D_keepdims/input_0.cairo index c35b76cbe..00c61e821 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp16x16_2D_keepdims/output_0.cairo b/tests/nodes/reduce_sum_fp16x16_2D_keepdims/output_0.cairo index 0d4c1e414..5d99577e2 100644 --- a/tests/nodes/reduce_sum_fp16x16_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_fp16x16_2D_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorMul}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_1D.cairo b/tests/nodes/reduce_sum_fp8x23_1D.cairo index 43f3b6725..1887e4cda 100644 --- a/tests/nodes/reduce_sum_fp8x23_1D.cairo +++ b/tests/nodes/reduce_sum_fp8x23_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo b/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo index c20bb8620..e050eac48 100644 --- a/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_1D/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo b/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo index 75fbb7dd5..a82fe159c 100644 --- a/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_1D/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo b/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo index e261a3c3f..f8e1e9bd5 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp8x23_2D_axis_1/input_0.cairo b/tests/nodes/reduce_sum_fp8x23_2D_axis_1/input_0.cairo index 74098aa94..29035e7f4 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_2D_axis_1/output_0.cairo b/tests/nodes/reduce_sum_fp8x23_2D_axis_1/output_0.cairo index 376872413..74d4ee8e5 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_2D_default.cairo b/tests/nodes/reduce_sum_fp8x23_2D_default.cairo index b5a66d494..95ef60ba0 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_default.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp8x23_2D_default/input_0.cairo b/tests/nodes/reduce_sum_fp8x23_2D_default/input_0.cairo index 74098aa94..29035e7f4 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_2D_default/output_0.cairo b/tests/nodes/reduce_sum_fp8x23_2D_default/output_0.cairo index 0b057bc88..05c879685 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo b/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo index eb40efe3c..b81947c90 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_fp8x23_2D_keepdims/input_0.cairo b/tests/nodes/reduce_sum_fp8x23_2D_keepdims/input_0.cairo index 74098aa94..29035e7f4 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_fp8x23_2D_keepdims/output_0.cairo b/tests/nodes/reduce_sum_fp8x23_2D_keepdims/output_0.cairo index f8a5087b9..216765e7b 100644 --- a/tests/nodes/reduce_sum_fp8x23_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_fp8x23_2D_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i32_1D.cairo b/tests/nodes/reduce_sum_i32_1D.cairo index 299c36ba7..7a31579df 100644 --- a/tests/nodes/reduce_sum_i32_1D.cairo +++ b/tests/nodes/reduce_sum_i32_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i32_1D/input_0.cairo b/tests/nodes/reduce_sum_i32_1D/input_0.cairo index c2d41d222..064a0d4e6 100644 --- a/tests/nodes/reduce_sum_i32_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_i32_1D/input_0.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i32_1D/output_0.cairo b/tests/nodes/reduce_sum_i32_1D/output_0.cairo index e295a7005..286549beb 100644 --- a/tests/nodes/reduce_sum_i32_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_i32_1D/output_0.cairo @@ -1,13 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i32_2D_axis_1.cairo b/tests/nodes/reduce_sum_i32_2D_axis_1.cairo index d3bdc2674..b67a7691d 100644 --- a/tests/nodes/reduce_sum_i32_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_i32_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_sum_i32_2D_axis_1/input_0.cairo index 71e72d9d6..bb508695d 100644 --- a/tests/nodes/reduce_sum_i32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_axis_1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_sum_i32_2D_axis_1/output_0.cairo index e8e5a9aa7..bb1a0e727 100644 --- a/tests/nodes/reduce_sum_i32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_axis_1/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(1); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i32_2D_default.cairo b/tests/nodes/reduce_sum_i32_2D_default.cairo index 69131f33e..a0428f46d 100644 --- a/tests/nodes/reduce_sum_i32_2D_default.cairo +++ b/tests/nodes/reduce_sum_i32_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i32_2D_default/input_0.cairo b/tests/nodes/reduce_sum_i32_2D_default/input_0.cairo index 71e72d9d6..bb508695d 100644 --- a/tests/nodes/reduce_sum_i32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i32_2D_default/output_0.cairo b/tests/nodes/reduce_sum_i32_2D_default/output_0.cairo index 8b55eac4c..925b8f6c2 100644 --- a/tests/nodes/reduce_sum_i32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_default/output_0.cairo @@ -1,14 +1,13 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(2); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i32_2D_keepdims.cairo b/tests/nodes/reduce_sum_i32_2D_keepdims.cairo index 3a66c7d22..acac6e0f5 100644 --- a/tests/nodes/reduce_sum_i32_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_i32_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_sum_i32_2D_keepdims/input_0.cairo index 71e72d9d6..bb508695d 100644 --- a/tests/nodes/reduce_sum_i32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(1); + data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_sum_i32_2D_keepdims/output_0.cairo index aa5feaf5f..704b7fd71 100644 --- a/tests/nodes/reduce_sum_i32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_i32_2D_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(2); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_i8_1D.cairo b/tests/nodes/reduce_sum_i8_1D.cairo index 18ecb908c..0d8424333 100644 --- a/tests/nodes/reduce_sum_i8_1D.cairo +++ b/tests/nodes/reduce_sum_i8_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i8_1D/input_0.cairo b/tests/nodes/reduce_sum_i8_1D/input_0.cairo index 400c4e51f..3d963b8f3 100644 --- a/tests/nodes/reduce_sum_i8_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_i8_1D/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i8_1D/output_0.cairo b/tests/nodes/reduce_sum_i8_1D/output_0.cairo index 9857232f6..c2d0723f9 100644 --- a/tests/nodes/reduce_sum_i8_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_i8_1D/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i8_2D_axis_1.cairo b/tests/nodes/reduce_sum_i8_2D_axis_1.cairo index 5494681cb..1d4fb2700 100644 --- a/tests/nodes/reduce_sum_i8_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_i8_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i8_2D_axis_1/input_0.cairo b/tests/nodes/reduce_sum_i8_2D_axis_1/input_0.cairo index 308ad1b8f..4c38e1659 100644 --- a/tests/nodes/reduce_sum_i8_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_axis_1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i8_2D_axis_1/output_0.cairo b/tests/nodes/reduce_sum_i8_2D_axis_1/output_0.cairo index 4f31f76b2..a9a7cd3ae 100644 --- a/tests/nodes/reduce_sum_i8_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_axis_1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i8_2D_default.cairo b/tests/nodes/reduce_sum_i8_2D_default.cairo index d0f86e380..4875dc77c 100644 --- a/tests/nodes/reduce_sum_i8_2D_default.cairo +++ b/tests/nodes/reduce_sum_i8_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i8_2D_default/input_0.cairo b/tests/nodes/reduce_sum_i8_2D_default/input_0.cairo index 308ad1b8f..4c38e1659 100644 --- a/tests/nodes/reduce_sum_i8_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i8_2D_default/output_0.cairo b/tests/nodes/reduce_sum_i8_2D_default/output_0.cairo index d75be628e..a517b5dca 100644 --- a/tests/nodes/reduce_sum_i8_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i8_2D_keepdims.cairo b/tests/nodes/reduce_sum_i8_2D_keepdims.cairo index cc479ef1d..98172e256 100644 --- a/tests/nodes/reduce_sum_i8_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_i8_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_i8_2D_keepdims/input_0.cairo b/tests/nodes/reduce_sum_i8_2D_keepdims/input_0.cairo index 308ad1b8f..4c38e1659 100644 --- a/tests/nodes/reduce_sum_i8_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_i8_2D_keepdims/output_0.cairo b/tests/nodes/reduce_sum_i8_2D_keepdims/output_0.cairo index 9739cab30..ef122111b 100644 --- a/tests/nodes/reduce_sum_i8_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_i8_2D_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorMul}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims.cairo index 11d64f685..cc43f6536 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/input_0.cairo index c119af06d..ee6da3894 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/output_0.cairo index dd1fbfa2f..c656104a8 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_do_not_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo index 5878bed6e..c0191f71b 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/input_0.cairo index c119af06d..ee6da3894 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/output_0.cairo index dd880846a..a51f943e1 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims.cairo index d1bf208e5..139118533 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/input_0.cairo index 2bb0816b9..b9d42a576 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/output_0.cairo index 70a5b1410..49d54df44 100644 --- a/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_fp16x16_export_negative_axes_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims.cairo index 0734efcd9..20d638431 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/input_0.cairo index 649503f71..4823090ca 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/output_0.cairo index 54aac7c1c..4f4c36394 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_do_not_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo index f6220b0d8..0f497bebb 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/input_0.cairo index 649503f71..4823090ca 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/output_0.cairo index 070881bc0..d1a74a6ae 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims.cairo index f26a2346f..ec8e85e3f 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/input_0.cairo index cea6e9a72..535686b66 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/output_0.cairo index 3b2ca7018..7e9ed0825 100644 --- a/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_fp8x23_export_negative_axes_keepdims/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims.cairo b/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims.cairo index 14235c14d..9404d6c31 100644 --- a/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/input_0.cairo index 8a0becc5d..a112fda8c 100644 --- a/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/output_0.cairo index 1d2055c11..f1460c2cb 100644 --- a/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_do_not_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +8,11 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 181, sign: false }); - data.append(i32 { mag: 265, sign: false }); + data.append(5); + data.append(25); + data.append(61); + data.append(113); + data.append(181); + data.append(265); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo b/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo index de64813fb..bb42b6aa9 100644 --- a/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_i32_export_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_i32_export_keepdims/input_0.cairo index 8a0becc5d..a112fda8c 100644 --- a/tests/nodes/reduce_sum_square_i32_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,17 +9,17 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i32_export_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_i32_export_keepdims/output_0.cairo index 3da60075f..339783764 100644 --- a/tests/nodes/reduce_sum_square_i32_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,11 +9,11 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 181, sign: false }); - data.append(i32 { mag: 265, sign: false }); + data.append(5); + data.append(25); + data.append(61); + data.append(113); + data.append(181); + data.append(265); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims.cairo index 494f95bee..1114e6182 100644 --- a/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/input_0.cairo index 1a0caaebc..ec6f047ec 100644 --- a/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 27, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); + data.append(10); + data.append(11); + data.append(12); + data.append(13); + data.append(14); + data.append(15); + data.append(16); + data.append(17); + data.append(18); + data.append(19); + data.append(20); + data.append(21); + data.append(22); + data.append(23); + data.append(24); + data.append(25); + data.append(26); + data.append(27); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/output_0.cairo index f89002be8..832517113 100644 --- a/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_i32_export_negative_axes_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,14 +9,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 462, sign: false }); - data.append(i32 { mag: 525, sign: false }); - data.append(i32 { mag: 594, sign: false }); - data.append(i32 { mag: 669, sign: false }); - data.append(i32 { mag: 750, sign: false }); - data.append(i32 { mag: 837, sign: false }); - data.append(i32 { mag: 930, sign: false }); - data.append(i32 { mag: 1029, sign: false }); - data.append(i32 { mag: 1134, sign: false }); + data.append(462); + data.append(525); + data.append(594); + data.append(669); + data.append(750); + data.append(837); + data.append(930); + data.append(1029); + data.append(1134); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims.cairo b/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims.cairo index a529e8bdb..a52da782e 100644 --- a/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/input_0.cairo index 7c34e96e1..e9daac9bc 100644 --- a/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/output_0.cairo index f8870bf04..8906fa9fc 100644 --- a/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_do_not_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 113, sign: false }); + data.append(5); + data.append(25); + data.append(61); + data.append(113); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo b/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo index 548a58fba..9ebd5813a 100644 --- a/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_i8_export_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_i8_export_keepdims/input_0.cairo index 7c34e96e1..e9daac9bc 100644 --- a/tests/nodes/reduce_sum_square_i8_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i8_export_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_i8_export_keepdims/output_0.cairo index 1d394836f..b832eb1ad 100644 --- a/tests/nodes/reduce_sum_square_i8_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 113, sign: false }); + data.append(5); + data.append(25); + data.append(61); + data.append(113); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims.cairo index d948df48e..6f45686c4 100644 --- a/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/input_0.cairo index 7c34e96e1..e9daac9bc 100644 --- a/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/output_0.cairo index 987d9b46a..d6418c1cd 100644 --- a/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_i8_export_negative_axes_keepdims/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 80, sign: false }); + data.append(26); + data.append(40); + data.append(58); + data.append(80); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims.cairo b/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims.cairo index e67e0ebae..c8b5bea69 100644 --- a/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/input_0.cairo index 874626c95..88687089b 100644 --- a/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/output_0.cairo index 344af0e1d..22440e1d7 100644 --- a/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_do_not_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo b/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo index 3a681d0c4..9dcf949bb 100644 --- a/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_u32_export_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_u32_export_keepdims/input_0.cairo index 874626c95..88687089b 100644 --- a/tests/nodes/reduce_sum_square_u32_export_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_u32_export_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_u32_export_keepdims/output_0.cairo index 063adeeba..151d8d81b 100644 --- a/tests/nodes/reduce_sum_square_u32_export_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims.cairo b/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims.cairo index 8f98bcd29..6b7724731 100644 --- a/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/input_0.cairo b/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/input_0.cairo index 64d914cef..02d9b8029 100644 --- a/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/output_0.cairo b/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/output_0.cairo index 598b13c3a..7176f4b06 100644 --- a/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_square_u32_export_negative_axes_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_1D.cairo b/tests/nodes/reduce_sum_u32_1D.cairo index 98459c19a..0ce6edfe7 100644 --- a/tests/nodes/reduce_sum_u32_1D.cairo +++ b/tests/nodes/reduce_sum_u32_1D.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_u32_1D/input_0.cairo b/tests/nodes/reduce_sum_u32_1D/input_0.cairo index 0c4cb9786..af874ce3f 100644 --- a/tests/nodes/reduce_sum_u32_1D/input_0.cairo +++ b/tests/nodes/reduce_sum_u32_1D/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_1D/output_0.cairo b/tests/nodes/reduce_sum_u32_1D/output_0.cairo index fea281b47..ab5ba7ddb 100644 --- a/tests/nodes/reduce_sum_u32_1D/output_0.cairo +++ b/tests/nodes/reduce_sum_u32_1D/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_2D_axis_1.cairo b/tests/nodes/reduce_sum_u32_2D_axis_1.cairo index fd8521419..cf93e04c7 100644 --- a/tests/nodes/reduce_sum_u32_2D_axis_1.cairo +++ b/tests/nodes/reduce_sum_u32_2D_axis_1.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_u32_2D_axis_1/input_0.cairo b/tests/nodes/reduce_sum_u32_2D_axis_1/input_0.cairo index 3de7330b0..e608e6e9c 100644 --- a/tests/nodes/reduce_sum_u32_2D_axis_1/input_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_axis_1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_2D_axis_1/output_0.cairo b/tests/nodes/reduce_sum_u32_2D_axis_1/output_0.cairo index d978fecf4..086e03275 100644 --- a/tests/nodes/reduce_sum_u32_2D_axis_1/output_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_axis_1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_2D_default.cairo b/tests/nodes/reduce_sum_u32_2D_default.cairo index ea6c0ef59..2aec6344d 100644 --- a/tests/nodes/reduce_sum_u32_2D_default.cairo +++ b/tests/nodes/reduce_sum_u32_2D_default.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_u32_2D_default/input_0.cairo b/tests/nodes/reduce_sum_u32_2D_default/input_0.cairo index 3de7330b0..e608e6e9c 100644 --- a/tests/nodes/reduce_sum_u32_2D_default/input_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_2D_default/output_0.cairo b/tests/nodes/reduce_sum_u32_2D_default/output_0.cairo index 5cd1a88e9..20b5e6dcf 100644 --- a/tests/nodes/reduce_sum_u32_2D_default/output_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_2D_keepdims.cairo b/tests/nodes/reduce_sum_u32_2D_keepdims.cairo index 616b88291..622388318 100644 --- a/tests/nodes/reduce_sum_u32_2D_keepdims.cairo +++ b/tests/nodes/reduce_sum_u32_2D_keepdims.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/reduce_sum_u32_2D_keepdims/input_0.cairo b/tests/nodes/reduce_sum_u32_2D_keepdims/input_0.cairo index 3de7330b0..e608e6e9c 100644 --- a/tests/nodes/reduce_sum_u32_2D_keepdims/input_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_keepdims/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/reduce_sum_u32_2D_keepdims/output_0.cairo b/tests/nodes/reduce_sum_u32_2D_keepdims/output_0.cairo index dc9ab4149..98a545a08 100644 --- a/tests/nodes/reduce_sum_u32_2D_keepdims/output_0.cairo +++ b/tests/nodes/reduce_sum_u32_2D_keepdims/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorMul}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/relu_fp16x16.cairo b/tests/nodes/relu_fp16x16.cairo index 52f41c6a6..e8fd8d2c5 100644 --- a/tests/nodes/relu_fp16x16.cairo +++ b/tests/nodes/relu_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::operators::nn::NNTrait; use orion::operators::nn::FP16x16NN; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/relu_fp16x16/input_0.cairo b/tests/nodes/relu_fp16x16/input_0.cairo index c7491aafe..f443b0c67 100644 --- a/tests/nodes/relu_fp16x16/input_0.cairo +++ b/tests/nodes/relu_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6065, sign: false }); - data.append(FP16x16 { mag: 134983, sign: true }); - data.append(FP16x16 { mag: 30217, sign: false }); - data.append(FP16x16 { mag: 88950, sign: true }); + data.append(FP16x16 { mag: 155769, sign: true }); + data.append(FP16x16 { mag: 151517, sign: false }); + data.append(FP16x16 { mag: 238628, sign: true }); + data.append(FP16x16 { mag: 81357, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/relu_fp16x16/output_0.cairo b/tests/nodes/relu_fp16x16/output_0.cairo index d8f6d8878..c404b4740 100644 --- a/tests/nodes/relu_fp16x16/output_0.cairo +++ b/tests/nodes/relu_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6065, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 30217, sign: false }); + data.append(FP16x16 { mag: 151517, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 81357, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/relu_fp8x23.cairo b/tests/nodes/relu_fp8x23.cairo index a57819b57..b6651a1d0 100644 --- a/tests/nodes/relu_fp8x23.cairo +++ b/tests/nodes/relu_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::numbers::FixedTrait; +use orion::operators::nn::NNTrait; use orion::operators::nn::FP8x23NN; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/relu_fp8x23/input_0.cairo b/tests/nodes/relu_fp8x23/input_0.cairo index 9bd2b6237..02d11ae22 100644 --- a/tests/nodes/relu_fp8x23/input_0.cairo +++ b/tests/nodes/relu_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 35370496, sign: false }); - data.append(FP8x23 { mag: 51831526, sign: false }); - data.append(FP8x23 { mag: 26129513, sign: true }); - data.append(FP8x23 { mag: 10508621, sign: true }); + data.append(FP8x23 { mag: 33963913, sign: true }); + data.append(FP8x23 { mag: 51747031, sign: false }); + data.append(FP8x23 { mag: 18946365, sign: true }); + data.append(FP8x23 { mag: 22052545, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/relu_fp8x23/output_0.cairo b/tests/nodes/relu_fp8x23/output_0.cairo index f32c114e1..ba79877fa 100644 --- a/tests/nodes/relu_fp8x23/output_0.cairo +++ b/tests/nodes/relu_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 35370496, sign: false }); - data.append(FP8x23 { mag: 51831528, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 51747032, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/relu_i32.cairo b/tests/nodes/relu_i32.cairo index 5f25d65aa..59d5dec04 100644 --- a/tests/nodes/relu_i32.cairo +++ b/tests/nodes/relu_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; use orion::operators::nn::I32NN; +use orion::operators::nn::NNTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/relu_i32/input_0.cairo b/tests/nodes/relu_i32/input_0.cairo index e8f95e0ac..bd7107f4e 100644 --- a/tests/nodes/relu_i32/input_0.cairo +++ b/tests/nodes/relu_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(-4); + data.append(-3); + data.append(-3); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/relu_i32/output_0.cairo b/tests/nodes/relu_i32/output_0.cairo index 54ccd3c1c..534917b3d 100644 --- a/tests/nodes/relu_i32/output_0.cairo +++ b/tests/nodes/relu_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/relu_i8.cairo b/tests/nodes/relu_i8.cairo index a4e5d107f..e4582f35a 100644 --- a/tests/nodes/relu_i8.cairo +++ b/tests/nodes/relu_i8.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; -use orion::operators::nn::I8NN; +use orion::operators::nn::NNTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::I8NN; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/relu_i8/input_0.cairo b/tests/nodes/relu_i8/input_0.cairo index c8ce281f1..2e9b59f83 100644 --- a/tests/nodes/relu_i8/input_0.cairo +++ b/tests/nodes/relu_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(-4); + data.append(-5); + data.append(6); + data.append(7); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/relu_i8/output_0.cairo b/tests/nodes/relu_i8/output_0.cairo index ac84ebc9a..0d720896b 100644 --- a/tests/nodes/relu_i8/output_0.cairo +++ b/tests/nodes/relu_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 8, sign: false }); + data.append(0); + data.append(0); + data.append(6); + data.append(7); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/round_fp16x16.cairo b/tests/nodes/round_fp16x16.cairo index 929604673..39f438136 100644 --- a/tests/nodes/round_fp16x16.cairo +++ b/tests/nodes/round_fp16x16.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/round_fp16x16/input_0.cairo b/tests/nodes/round_fp16x16/input_0.cairo index ec5513311..34207e19b 100644 --- a/tests/nodes/round_fp16x16/input_0.cairo +++ b/tests/nodes/round_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/round_fp16x16/output_0.cairo b/tests/nodes/round_fp16x16/output_0.cairo index 9631071dd..5ec0ac227 100644 --- a/tests/nodes/round_fp16x16/output_0.cairo +++ b/tests/nodes/round_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/round_fp8x23.cairo b/tests/nodes/round_fp8x23.cairo index 0c8e55503..a2b3f395e 100644 --- a/tests/nodes/round_fp8x23.cairo +++ b/tests/nodes/round_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/round_fp8x23/input_0.cairo b/tests/nodes/round_fp8x23/input_0.cairo index c7874ac79..1be061698 100644 --- a/tests/nodes/round_fp8x23/input_0.cairo +++ b/tests/nodes/round_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/round_fp8x23/output_0.cairo b/tests/nodes/round_fp8x23/output_0.cairo index 453fed16f..d7413b90a 100644 --- a/tests/nodes/round_fp8x23/output_0.cairo +++ b/tests/nodes/round_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1.cairo b/tests/nodes/scatter_fp16x16_3d_axis1.cairo index 4ba32b925..b471e028c 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_fp16x16_3d_axis1() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(1), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(1), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo index d7800be43..c309e31c8 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo index 50a7e79fb..952773eda 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo b/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo index 28a5f268a..00703ee2a 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo b/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo index 9371e3aff..c6fc48b15 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_fp16x16_3d_axis1_add() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(1), - reduction: Option::Some('add') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(1), reduction:Option::Some('add')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_0.cairo b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_0.cairo index d7800be43..c309e31c8 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_1.cairo b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_1.cairo index 50a7e79fb..952773eda 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_2.cairo b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/input_2.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_axis1_add/output_0.cairo b/tests/nodes/scatter_fp16x16_3d_axis1_add/output_0.cairo index 6cdbd049e..c524aef9e 100644 --- a/tests/nodes/scatter_fp16x16_3d_axis1_add/output_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_axis1_add/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_default.cairo b/tests/nodes/scatter_fp16x16_3d_default.cairo index 089861ae2..c14bbc0a6 100644 --- a/tests/nodes/scatter_fp16x16_3d_default.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_fp16x16_3d_default() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(0), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(0), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo b/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo index d7800be43..c309e31c8 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo b/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo index 50a7e79fb..952773eda 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo b/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo b/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo index 3daa0a2f3..dd260a633 100644 --- a/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo +++ b/tests/nodes/scatter_fp16x16_3d_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_axis1.cairo b/tests/nodes/scatter_fp8x23_axis1.cairo index fd38528f2..e0008d409 100644 --- a/tests/nodes/scatter_fp8x23_axis1.cairo +++ b/tests/nodes/scatter_fp8x23_axis1.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_fp8x23_axis1() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(1), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(1), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_fp8x23_axis1/input_0.cairo b/tests/nodes/scatter_fp8x23_axis1/input_0.cairo index 7df21a791..16d788cb5 100644 --- a/tests/nodes/scatter_fp8x23_axis1/input_0.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_axis1/input_1.cairo b/tests/nodes/scatter_fp8x23_axis1/input_1.cairo index a1c3f9a95..efadc3829 100644 --- a/tests/nodes/scatter_fp8x23_axis1/input_1.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_axis1/input_2.cairo b/tests/nodes/scatter_fp8x23_axis1/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_fp8x23_axis1/input_2.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_axis1/output_0.cairo b/tests/nodes/scatter_fp8x23_axis1/output_0.cairo index 91a744976..c7a3878ab 100644 --- a/tests/nodes/scatter_fp8x23_axis1/output_0.cairo +++ b/tests/nodes/scatter_fp8x23_axis1/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_default.cairo b/tests/nodes/scatter_fp8x23_default.cairo index 12171060a..bdaea6568 100644 --- a/tests/nodes/scatter_fp8x23_default.cairo +++ b/tests/nodes/scatter_fp8x23_default.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_fp8x23_default() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(0), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(0), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_fp8x23_default/input_0.cairo b/tests/nodes/scatter_fp8x23_default/input_0.cairo index 7df21a791..16d788cb5 100644 --- a/tests/nodes/scatter_fp8x23_default/input_0.cairo +++ b/tests/nodes/scatter_fp8x23_default/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_default/input_1.cairo b/tests/nodes/scatter_fp8x23_default/input_1.cairo index a1c3f9a95..efadc3829 100644 --- a/tests/nodes/scatter_fp8x23_default/input_1.cairo +++ b/tests/nodes/scatter_fp8x23_default/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_default/input_2.cairo b/tests/nodes/scatter_fp8x23_default/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_fp8x23_default/input_2.cairo +++ b/tests/nodes/scatter_fp8x23_default/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_default/output_0.cairo b/tests/nodes/scatter_fp8x23_default/output_0.cairo index 5b6a1aa13..b1ad01054 100644 --- a/tests/nodes/scatter_fp8x23_default/output_0.cairo +++ b/tests/nodes/scatter_fp8x23_default/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_mul.cairo b/tests/nodes/scatter_fp8x23_mul.cairo index 4a1eb7ad1..4430bf041 100644 --- a/tests/nodes/scatter_fp8x23_mul.cairo +++ b/tests/nodes/scatter_fp8x23_mul.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_fp8x23_mul() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(0), - reduction: Option::Some('mul') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(0), reduction:Option::Some('mul')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_fp8x23_mul/input_0.cairo b/tests/nodes/scatter_fp8x23_mul/input_0.cairo index 7df21a791..16d788cb5 100644 --- a/tests/nodes/scatter_fp8x23_mul/input_0.cairo +++ b/tests/nodes/scatter_fp8x23_mul/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_mul/input_1.cairo b/tests/nodes/scatter_fp8x23_mul/input_1.cairo index a1c3f9a95..efadc3829 100644 --- a/tests/nodes/scatter_fp8x23_mul/input_1.cairo +++ b/tests/nodes/scatter_fp8x23_mul/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_mul/input_2.cairo b/tests/nodes/scatter_fp8x23_mul/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_fp8x23_mul/input_2.cairo +++ b/tests/nodes/scatter_fp8x23_mul/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_fp8x23_mul/output_0.cairo b/tests/nodes/scatter_fp8x23_mul/output_0.cairo index 9f67bd8fd..1fbca62ab 100644 --- a/tests/nodes/scatter_fp8x23_mul/output_0.cairo +++ b/tests/nodes/scatter_fp8x23_mul/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_i8_axis1.cairo b/tests/nodes/scatter_i8_axis1.cairo index 46edf024a..e143463f1 100644 --- a/tests/nodes/scatter_i8_axis1.cairo +++ b/tests/nodes/scatter_i8_axis1.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_i8_axis1() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(1), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(1), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_i8_axis1/input_0.cairo b/tests/nodes/scatter_i8_axis1/input_0.cairo index 99afe8e45..ffde19ad0 100644 --- a/tests/nodes/scatter_i8_axis1/input_0.cairo +++ b/tests/nodes/scatter_i8_axis1/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_axis1/input_1.cairo b/tests/nodes/scatter_i8_axis1/input_1.cairo index e874b5ac6..d2730d8a0 100644 --- a/tests/nodes/scatter_i8_axis1/input_1.cairo +++ b/tests/nodes/scatter_i8_axis1/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_axis1/input_2.cairo b/tests/nodes/scatter_i8_axis1/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_i8_axis1/input_2.cairo +++ b/tests/nodes/scatter_i8_axis1/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_i8_axis1/output_0.cairo b/tests/nodes/scatter_i8_axis1/output_0.cairo index a7e44cf62..0537f8e92 100644 --- a/tests/nodes/scatter_i8_axis1/output_0.cairo +++ b/tests/nodes/scatter_i8_axis1/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(5); + data.append(6); + data.append(4); + data.append(8); + data.append(9); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_axis1_max.cairo b/tests/nodes/scatter_i8_axis1_max.cairo index eba74a91d..53dabbe40 100644 --- a/tests/nodes/scatter_i8_axis1_max.cairo +++ b/tests/nodes/scatter_i8_axis1_max.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_i8_axis1_max() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(1), - reduction: Option::Some('max') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(1), reduction:Option::Some('max')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_i8_axis1_max/input_0.cairo b/tests/nodes/scatter_i8_axis1_max/input_0.cairo index 99afe8e45..ffde19ad0 100644 --- a/tests/nodes/scatter_i8_axis1_max/input_0.cairo +++ b/tests/nodes/scatter_i8_axis1_max/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_axis1_max/input_1.cairo b/tests/nodes/scatter_i8_axis1_max/input_1.cairo index e874b5ac6..d2730d8a0 100644 --- a/tests/nodes/scatter_i8_axis1_max/input_1.cairo +++ b/tests/nodes/scatter_i8_axis1_max/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_axis1_max/input_2.cairo b/tests/nodes/scatter_i8_axis1_max/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_i8_axis1_max/input_2.cairo +++ b/tests/nodes/scatter_i8_axis1_max/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_i8_axis1_max/output_0.cairo b/tests/nodes/scatter_i8_axis1_max/output_0.cairo index a7e44cf62..0537f8e92 100644 --- a/tests/nodes/scatter_i8_axis1_max/output_0.cairo +++ b/tests/nodes/scatter_i8_axis1_max/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(5); + data.append(6); + data.append(4); + data.append(8); + data.append(9); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_default.cairo b/tests/nodes/scatter_i8_default.cairo index 35e99a74f..c41b29d7b 100644 --- a/tests/nodes/scatter_i8_default.cairo +++ b/tests/nodes/scatter_i8_default.cairo @@ -4,11 +4,13 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +20,7 @@ fn test_scatter_i8_default() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(0), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(0), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_i8_default/input_0.cairo b/tests/nodes/scatter_i8_default/input_0.cairo index 99afe8e45..ffde19ad0 100644 --- a/tests/nodes/scatter_i8_default/input_0.cairo +++ b/tests/nodes/scatter_i8_default/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_default/input_1.cairo b/tests/nodes/scatter_i8_default/input_1.cairo index e874b5ac6..d2730d8a0 100644 --- a/tests/nodes/scatter_i8_default/input_1.cairo +++ b/tests/nodes/scatter_i8_default/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 9, sign: false }); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); + data.append(6); + data.append(7); + data.append(8); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_i8_default/input_2.cairo b/tests/nodes/scatter_i8_default/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_i8_default/input_2.cairo +++ b/tests/nodes/scatter_i8_default/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_i8_default/output_0.cairo b/tests/nodes/scatter_i8_default/output_0.cairo index 83cc4ccea..e22366170 100644 --- a/tests/nodes/scatter_i8_default/output_0.cairo +++ b/tests/nodes/scatter_i8_default/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,14 +8,14 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(1); + data.append(8); + data.append(0); + data.append(7); + data.append(2); + data.append(9); + data.append(4); + data.append(0); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/scatter_u32_add.cairo b/tests/nodes/scatter_u32_add.cairo index f3d18ef9d..735b8fb5e 100644 --- a/tests/nodes/scatter_u32_add.cairo +++ b/tests/nodes/scatter_u32_add.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +18,7 @@ fn test_scatter_u32_add() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(0), - reduction: Option::Some('add') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(0), reduction:Option::Some('add')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_u32_add/input_0.cairo b/tests/nodes/scatter_u32_add/input_0.cairo index e1542d854..4b387d30d 100644 --- a/tests/nodes/scatter_u32_add/input_0.cairo +++ b/tests/nodes/scatter_u32_add/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_add/input_1.cairo b/tests/nodes/scatter_u32_add/input_1.cairo index 0645d0d31..f66a5e672 100644 --- a/tests/nodes/scatter_u32_add/input_1.cairo +++ b/tests/nodes/scatter_u32_add/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_add/input_2.cairo b/tests/nodes/scatter_u32_add/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_u32_add/input_2.cairo +++ b/tests/nodes/scatter_u32_add/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_add/output_0.cairo b/tests/nodes/scatter_u32_add/output_0.cairo index 36a69b28c..62c7d8e6e 100644 --- a/tests/nodes/scatter_u32_add/output_0.cairo +++ b/tests/nodes/scatter_u32_add/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_axis1.cairo b/tests/nodes/scatter_u32_axis1.cairo index 5a8ac02da..e2a96e71b 100644 --- a/tests/nodes/scatter_u32_axis1.cairo +++ b/tests/nodes/scatter_u32_axis1.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +18,7 @@ fn test_scatter_u32_axis1() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(1), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(1), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_u32_axis1/input_0.cairo b/tests/nodes/scatter_u32_axis1/input_0.cairo index e1542d854..4b387d30d 100644 --- a/tests/nodes/scatter_u32_axis1/input_0.cairo +++ b/tests/nodes/scatter_u32_axis1/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_axis1/input_1.cairo b/tests/nodes/scatter_u32_axis1/input_1.cairo index 0645d0d31..f66a5e672 100644 --- a/tests/nodes/scatter_u32_axis1/input_1.cairo +++ b/tests/nodes/scatter_u32_axis1/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_axis1/input_2.cairo b/tests/nodes/scatter_u32_axis1/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_u32_axis1/input_2.cairo +++ b/tests/nodes/scatter_u32_axis1/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_axis1/output_0.cairo b/tests/nodes/scatter_u32_axis1/output_0.cairo index b27c846a6..8dfd438c5 100644 --- a/tests/nodes/scatter_u32_axis1/output_0.cairo +++ b/tests/nodes/scatter_u32_axis1/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_default.cairo b/tests/nodes/scatter_u32_default.cairo index d45d6606e..1ccdac72f 100644 --- a/tests/nodes/scatter_u32_default.cairo +++ b/tests/nodes/scatter_u32_default.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,13 +18,7 @@ fn test_scatter_u32_default() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0 - .scatter( - updates: input_1, - indices: input_2, - axis: Option::Some(0), - reduction: Option::Some('none') - ); + let y = input_0.scatter(updates:input_1, indices:input_2, axis:Option::Some(0), reduction:Option::Some('none')); assert_eq(y, z); } diff --git a/tests/nodes/scatter_u32_default/input_0.cairo b/tests/nodes/scatter_u32_default/input_0.cairo index e1542d854..4b387d30d 100644 --- a/tests/nodes/scatter_u32_default/input_0.cairo +++ b/tests/nodes/scatter_u32_default/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_default/input_1.cairo b/tests/nodes/scatter_u32_default/input_1.cairo index 0645d0d31..f66a5e672 100644 --- a/tests/nodes/scatter_u32_default/input_1.cairo +++ b/tests/nodes/scatter_u32_default/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_default/input_2.cairo b/tests/nodes/scatter_u32_default/input_2.cairo index d474a7622..ab695b60e 100644 --- a/tests/nodes/scatter_u32_default/input_2.cairo +++ b/tests/nodes/scatter_u32_default/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/scatter_u32_default/output_0.cairo b/tests/nodes/scatter_u32_default/output_0.cairo index d114c10aa..5224c1b9a 100644 --- a/tests/nodes/scatter_u32_default/output_0.cairo +++ b/tests/nodes/scatter_u32_default/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/sequence_at_fp16x16_negative.cairo b/tests/nodes/sequence_at_fp16x16_negative.cairo index 12bd5507c..a494baf1f 100644 --- a/tests/nodes/sequence_at_fp16x16_negative.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32Tensor; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; +use orion::operators::sequence::FP16x16Sequence; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::sequence::FP16x16Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_sequence_at_fp16x16_negative() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo b/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo index 7940f94bd..4cccf5b16 100644 --- a/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative/input_0.cairo @@ -1,53 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo b/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo b/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo index 1e9d6f3d2..1929d5f06 100644 --- a/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_negative/output_0.cairo @@ -1,14 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_fp16x16_positive.cairo b/tests/nodes/sequence_at_fp16x16_positive.cairo index c4f35cac4..292c1ad74 100644 --- a/tests/nodes/sequence_at_fp16x16_positive.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32Tensor; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; +use orion::operators::sequence::FP16x16Sequence; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::sequence::FP16x16Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_sequence_at_fp16x16_positive() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo b/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo index 50800a85f..c22f86302 100644 --- a/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive/input_0.cairo @@ -1,78 +1,53 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo b/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo b/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo index 66e8b8be9..ba18be24b 100644 --- a/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo +++ b/tests/nodes/sequence_at_fp16x16_positive/output_0.cairo @@ -1,19 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_fp8x23_negative.cairo b/tests/nodes/sequence_at_fp8x23_negative.cairo index 4a04b333c..b5b60d4e1 100644 --- a/tests/nodes/sequence_at_fp8x23_negative.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::sequence::FP8x23Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_sequence_at_fp8x23_negative() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo b/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo index 203e2b538..8e7876b60 100644 --- a/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative/input_0.cairo @@ -1,78 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo b/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo b/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo index cf51db60d..745006cd5 100644 --- a/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_negative/output_0.cairo @@ -1,19 +1,22 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_fp8x23_positive.cairo b/tests/nodes/sequence_at_fp8x23_positive.cairo index 543711645..bc84c02db 100644 --- a/tests/nodes/sequence_at_fp8x23_positive.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::I32Tensor; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::FP8x23TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::sequence::FP8x23Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_sequence_at_fp8x23_positive() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo b/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo index 54f5b1bef..aef14e873 100644 --- a/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { @@ -11,9 +11,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -22,9 +22,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -33,9 +33,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -44,9 +44,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -55,9 +55,9 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo b/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo b/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo index 89cdd433f..caddd6ae5 100644 --- a/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo +++ b/tests/nodes/sequence_at_fp8x23_positive/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -9,8 +9,8 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i32_negative.cairo b/tests/nodes/sequence_at_i32_negative.cairo index d45079d6a..946eb2fe2 100644 --- a/tests/nodes/sequence_at_i32_negative.cairo +++ b/tests/nodes/sequence_at_i32_negative.cairo @@ -3,22 +3,20 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::sequence::I32Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_sequence_at_i32_negative() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_i32_negative/input_0.cairo b/tests/nodes/sequence_at_i32_negative/input_0.cairo index 8e83f0131..7f12d59b2 100644 --- a/tests/nodes/sequence_at_i32_negative/input_0.cairo +++ b/tests/nodes/sequence_at_i32_negative/input_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); @@ -11,12 +11,12 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(2); + data.append(1); + data.append(1); + data.append(-6); + data.append(-4); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -25,12 +25,12 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: true }); + data.append(-5); + data.append(5); + data.append(-2); + data.append(0); + data.append(1); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -39,12 +39,12 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 6, sign: true }); + data.append(-6); + data.append(-1); + data.append(-5); + data.append(-2); + data.append(-4); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -53,12 +53,12 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(1); + data.append(-2); + data.append(-5); + data.append(-1); + data.append(-3); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -67,12 +67,12 @@ fn input_0() -> Array> { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 3, sign: false }); + data.append(1); + data.append(-3); + data.append(-6); + data.append(0); + data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_i32_negative/input_1.cairo b/tests/nodes/sequence_at_i32_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_at_i32_negative/input_1.cairo +++ b/tests/nodes/sequence_at_i32_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i32_negative/output_0.cairo b/tests/nodes/sequence_at_i32_negative/output_0.cairo index 1536ca6b7..c06c7a1af 100644 --- a/tests/nodes/sequence_at_i32_negative/output_0.cairo +++ b/tests/nodes/sequence_at_i32_negative/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,11 +9,11 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(1); + data.append(-2); + data.append(-5); + data.append(-1); + data.append(-3); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i32_positive.cairo b/tests/nodes/sequence_at_i32_positive.cairo index c25e289b7..fdc595821 100644 --- a/tests/nodes/sequence_at_i32_positive.cairo +++ b/tests/nodes/sequence_at_i32_positive.cairo @@ -3,22 +3,20 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::sequence::I32Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_sequence_at_i32_positive() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_i32_positive/input_0.cairo b/tests/nodes/sequence_at_i32_positive/input_0.cairo index 17b5ef71b..833cfb42d 100644 --- a/tests/nodes/sequence_at_i32_positive/input_0.cairo +++ b/tests/nodes/sequence_at_i32_positive/input_0.cairo @@ -1,93 +1,78 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 6, sign: true }); + data.append(0); + data.append(1); + data.append(-1); + data.append(-2); + data.append(1); + data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(0); + data.append(3); + data.append(2); + data.append(3); + data.append(-4); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: true }); + data.append(-2); + data.append(-1); + data.append(2); + data.append(-5); + data.append(4); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 5, sign: true }); + data.append(-3); + data.append(-6); + data.append(3); + data.append(1); + data.append(3); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(1); + data.append(-3); + data.append(-6); + data.append(-2); + data.append(-3); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_i32_positive/input_1.cairo b/tests/nodes/sequence_at_i32_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_at_i32_positive/input_1.cairo +++ b/tests/nodes/sequence_at_i32_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i32_positive/output_0.cairo b/tests/nodes/sequence_at_i32_positive/output_0.cairo index 011570348..741c6622b 100644 --- a/tests/nodes/sequence_at_i32_positive/output_0.cairo +++ b/tests/nodes/sequence_at_i32_positive/output_0.cairo @@ -1,22 +1,19 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: true }); + data.append(-2); + data.append(-1); + data.append(2); + data.append(-5); + data.append(4); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i8_negative.cairo b/tests/nodes/sequence_at_i8_negative.cairo index 33007f491..02421aa31 100644 --- a/tests/nodes/sequence_at_i8_negative.cairo +++ b/tests/nodes/sequence_at_i8_negative.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::sequence::I8Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I8TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_sequence_at_i8_negative() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_i8_negative/input_0.cairo b/tests/nodes/sequence_at_i8_negative/input_0.cairo index 1d4f61e2c..a2cbc06fe 100644 --- a/tests/nodes/sequence_at_i8_negative/input_0.cairo +++ b/tests/nodes/sequence_at_i8_negative/input_0.cairo @@ -1,58 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(4); + data.append(1); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(4); + data.append(-5); + data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 5, sign: true }); + data.append(2); + data.append(2); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(-4); + data.append(-3); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: true }); + data.append(0); + data.append(-5); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_i8_negative/input_1.cairo b/tests/nodes/sequence_at_i8_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_at_i8_negative/input_1.cairo +++ b/tests/nodes/sequence_at_i8_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i8_negative/output_0.cairo b/tests/nodes/sequence_at_i8_negative/output_0.cairo index 9a0efb499..f9f40f66b 100644 --- a/tests/nodes/sequence_at_i8_negative/output_0.cairo +++ b/tests/nodes/sequence_at_i8_negative/output_0.cairo @@ -1,15 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: true }); + data.append(-4); + data.append(-3); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i8_positive.cairo b/tests/nodes/sequence_at_i8_positive.cairo index 4cd397fff..718afa6da 100644 --- a/tests/nodes/sequence_at_i8_positive.cairo +++ b/tests/nodes/sequence_at_i8_positive.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::tensor::I8Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I8TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; use orion::operators::sequence::I8Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I8TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_sequence_at_i8_positive() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_i8_positive/input_0.cairo b/tests/nodes/sequence_at_i8_positive/input_0.cairo index b85ccb99c..f66ae5468 100644 --- a/tests/nodes/sequence_at_i8_positive/input_0.cairo +++ b/tests/nodes/sequence_at_i8_positive/input_0.cairo @@ -1,63 +1,78 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(0); + data.append(0); + data.append(-1); + data.append(2); + data.append(3); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: false }); + data.append(3); + data.append(2); + data.append(-2); + data.append(-3); + data.append(4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-1); + data.append(2); + data.append(0); + data.append(0); + data.append(5); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(2); + data.append(0); + data.append(-4); + data.append(-2); + data.append(5); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: true }); + data.append(-6); + data.append(-4); + data.append(-2); + data.append(2); + data.append(1); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_i8_positive/input_1.cairo b/tests/nodes/sequence_at_i8_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_at_i8_positive/input_1.cairo +++ b/tests/nodes/sequence_at_i8_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_i8_positive/output_0.cairo b/tests/nodes/sequence_at_i8_positive/output_0.cairo index d0dd46573..df1c4e9bb 100644 --- a/tests/nodes/sequence_at_i8_positive/output_0.cairo +++ b/tests/nodes/sequence_at_i8_positive/output_0.cairo @@ -1,16 +1,19 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-1); + data.append(2); + data.append(0); + data.append(0); + data.append(5); + data.append(-4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_u32_negative.cairo b/tests/nodes/sequence_at_u32_negative.cairo index dc22c2cbc..c81b82fd1 100644 --- a/tests/nodes/sequence_at_u32_negative.cairo +++ b/tests/nodes/sequence_at_u32_negative.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::sequence::U32Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_sequence_at_u32_negative() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_u32_negative/input_0.cairo b/tests/nodes/sequence_at_u32_negative/input_0.cairo index ed528bbbd..5c56fdbbf 100644 --- a/tests/nodes/sequence_at_u32_negative/input_0.cairo +++ b/tests/nodes/sequence_at_u32_negative/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); @@ -11,11 +12,11 @@ fn input_0() -> Array> { let mut data = ArrayTrait::new(); data.append(5); - data.append(2); + data.append(1); data.append(3); - data.append(4); - data.append(0); data.append(3); + data.append(0); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -24,12 +25,12 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(3); - data.append(3); + data.append(5); data.append(4); data.append(2); - data.append(2); + data.append(4); + data.append(0); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -38,12 +39,12 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); + data.append(1); data.append(5); data.append(1); + data.append(0); data.append(3); - data.append(2); - data.append(3); - data.append(3); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -52,12 +53,12 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(3); - data.append(0); data.append(5); - data.append(3); + data.append(2); + data.append(5); + data.append(2); + data.append(4); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -67,10 +68,10 @@ fn input_0() -> Array> { let mut data = ArrayTrait::new(); data.append(4); - data.append(2); data.append(1); - data.append(0); - data.append(4); + data.append(1); + data.append(1); + data.append(1); data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_u32_negative/input_1.cairo b/tests/nodes/sequence_at_u32_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_at_u32_negative/input_1.cairo +++ b/tests/nodes/sequence_at_u32_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_u32_negative/output_0.cairo b/tests/nodes/sequence_at_u32_negative/output_0.cairo index ee18cd210..69c82eec9 100644 --- a/tests/nodes/sequence_at_u32_negative/output_0.cairo +++ b/tests/nodes/sequence_at_u32_negative/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,11 +9,11 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(3); - data.append(0); data.append(5); - data.append(3); + data.append(2); + data.append(5); + data.append(2); + data.append(4); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_u32_positive.cairo b/tests/nodes/sequence_at_u32_positive.cairo index b55489cb7..cc61b28a1 100644 --- a/tests/nodes/sequence_at_u32_positive.cairo +++ b/tests/nodes/sequence_at_u32_positive.cairo @@ -3,24 +3,22 @@ mod input_1; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I32Sequence; use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32TensorPartialEq; use orion::operators::sequence::U32Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::U32TensorPartialEq; #[test] #[available_gas(2000000000)] fn test_sequence_at_u32_positive() { let input_0 = input_0::input_0(); let input_1 = input_1::input_1(); - let z = output_0::output_0(); + let z_0 = output_0::output_0(); - let y = SequenceTrait::sequence_at(input_0, input_1); + let y_0 = SequenceTrait::sequence_at(input_0, input_1); - assert_eq(y, z); + assert_eq(y_0, z_0); } diff --git a/tests/nodes/sequence_at_u32_positive/input_0.cairo b/tests/nodes/sequence_at_u32_positive/input_0.cairo index 5b34b358d..e688003dd 100644 --- a/tests/nodes/sequence_at_u32_positive/input_0.cairo +++ b/tests/nodes/sequence_at_u32_positive/input_0.cairo @@ -1,62 +1,68 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(3); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(2); data.append(3); data.append(1); - data.append(4); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(3); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(5); + data.append(3); data.append(4); data.append(1); - data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(3); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(4); data.append(5); - data.append(5); - data.append(0); + data.append(1); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(3); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(2); + data.append(3); data.append(1); - data.append(4); data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(3); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(5); + data.append(2); data.append(5); data.append(3); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_at_u32_positive/input_1.cairo b/tests/nodes/sequence_at_u32_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_at_u32_positive/input_1.cairo +++ b/tests/nodes/sequence_at_u32_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_at_u32_positive/output_0.cairo b/tests/nodes/sequence_at_u32_positive/output_0.cairo index 261a48101..5772ba821 100644 --- a/tests/nodes/sequence_at_u32_positive/output_0.cairo +++ b/tests/nodes/sequence_at_u32_positive/output_0.cairo @@ -1,15 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(3); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(4); data.append(5); - data.append(5); - data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_construct_fp16x16.cairo b/tests/nodes/sequence_construct_fp16x16.cairo index c6d2238fb..9ac369e47 100644 --- a/tests/nodes/sequence_construct_fp16x16.cairo +++ b/tests/nodes/sequence_construct_fp16x16.cairo @@ -2,12 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::sequence::FP16x16Sequence; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::sequence::SequenceTrait; -use orion::operators::sequence::FP16x16Sequence; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_construct_fp16x16/input_0.cairo b/tests/nodes/sequence_construct_fp16x16/input_0.cairo index 3c02bd6e7..e085b447f 100644 --- a/tests/nodes/sequence_construct_fp16x16/input_0.cairo +++ b/tests/nodes/sequence_construct_fp16x16/input_0.cairo @@ -1,53 +1,36 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: false }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_fp16x16/output_0.cairo b/tests/nodes/sequence_construct_fp16x16/output_0.cairo index 0fe9053ce..b2905190c 100644 --- a/tests/nodes/sequence_construct_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_construct_fp16x16/output_0.cairo @@ -1,53 +1,36 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: false }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_fp8x23.cairo b/tests/nodes/sequence_construct_fp8x23.cairo index fa08e589f..7a0482912 100644 --- a/tests/nodes/sequence_construct_fp8x23.cairo +++ b/tests/nodes/sequence_construct_fp8x23.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::FP8x23Sequence; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_construct_fp8x23/input_0.cairo b/tests/nodes/sequence_construct_fp8x23/input_0.cairo index 2c8b74ec1..dae17c132 100644 --- a/tests/nodes/sequence_construct_fp8x23/input_0.cairo +++ b/tests/nodes/sequence_construct_fp8x23/input_0.cairo @@ -1,68 +1,56 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); - - let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 41943040, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); - - let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_fp8x23/output_0.cairo b/tests/nodes/sequence_construct_fp8x23/output_0.cairo index 75264e3c8..88bb8063d 100644 --- a/tests/nodes/sequence_construct_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_construct_fp8x23/output_0.cairo @@ -1,68 +1,56 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); - - let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 41943040, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); - - let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_i32.cairo b/tests/nodes/sequence_construct_i32.cairo index f59b4df1b..fb02f72cc 100644 --- a/tests/nodes/sequence_construct_i32.cairo +++ b/tests/nodes/sequence_construct_i32.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I32TensorPartialEq; use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_construct_i32/input_0.cairo b/tests/nodes/sequence_construct_i32/input_0.cairo index e06dc295c..2793d8f78 100644 --- a/tests/nodes/sequence_construct_i32/input_0.cairo +++ b/tests/nodes/sequence_construct_i32/input_0.cairo @@ -1,48 +1,107 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: true }); + data.append(2); + data.append(5); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: false }); + data.append(-1); + data.append(-5); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(2); + data.append(-4); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: true }); + data.append(1); + data.append(3); + data.append(-5); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(2); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(-3); + data.append(-4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(-1); + data.append(-4); + data.append(-2); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(-6); + data.append(2); + data.append(2); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(2); + data.append(-3); + data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_i32/output_0.cairo b/tests/nodes/sequence_construct_i32/output_0.cairo index d0b8d356c..2e52888ec 100644 --- a/tests/nodes/sequence_construct_i32/output_0.cairo +++ b/tests/nodes/sequence_construct_i32/output_0.cairo @@ -1,48 +1,107 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: true }); + data.append(2); + data.append(5); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: false }); + data.append(-1); + data.append(-5); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); + data.append(2); + data.append(-4); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: true }); + data.append(1); + data.append(3); + data.append(-5); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(2); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(-3); + data.append(-4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(-1); + data.append(-4); + data.append(-2); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(-6); + data.append(2); + data.append(2); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(2); + data.append(-3); + data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_i8.cairo b/tests/nodes/sequence_construct_i8.cairo index 4d4a3f5ac..ba3f76321 100644 --- a/tests/nodes/sequence_construct_i8.cairo +++ b/tests/nodes/sequence_construct_i8.cairo @@ -3,11 +3,10 @@ mod output_0; use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::SequenceTrait; use orion::operators::sequence::I8Sequence; +use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_construct_i8/input_0.cairo b/tests/nodes/sequence_construct_i8/input_0.cairo index 715483b5b..0e3fb5e1d 100644 --- a/tests/nodes/sequence_construct_i8/input_0.cairo +++ b/tests/nodes/sequence_construct_i8/input_0.cairo @@ -1,48 +1,58 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 6, sign: true }); + data.append(-1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(0); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(-1); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); + shape.append(1); shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-2); + data.append(-3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: false }); + data.append(-3); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_i8/output_0.cairo b/tests/nodes/sequence_construct_i8/output_0.cairo index 268530d13..c47b24715 100644 --- a/tests/nodes/sequence_construct_i8/output_0.cairo +++ b/tests/nodes/sequence_construct_i8/output_0.cairo @@ -1,48 +1,58 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 6, sign: true }); + data.append(-1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(0); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(-1); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); + shape.append(1); shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-2); + data.append(-3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); shape.append(1); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: false }); + data.append(-3); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_u32.cairo b/tests/nodes/sequence_construct_u32.cairo index a6a783f51..c70c38873 100644 --- a/tests/nodes/sequence_construct_u32.cairo +++ b/tests/nodes/sequence_construct_u32.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::sequence::SequenceTrait; use orion::operators::sequence::U32Sequence; +use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_construct_u32/input_0.cairo b/tests/nodes/sequence_construct_u32/input_0.cairo index a24fb6345..1d548fef6 100644 --- a/tests/nodes/sequence_construct_u32/input_0.cairo +++ b/tests/nodes/sequence_construct_u32/input_0.cairo @@ -1,109 +1,52 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(3); - data.append(3); data.append(5); - data.append(2); - data.append(2); - data.append(1); data.append(0); - data.append(5); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(4); - data.append(0); + data.append(5); data.append(4); data.append(4); - data.append(2); - data.append(3); - data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(3); data.append(4); - data.append(0); - data.append(1); - data.append(0); data.append(2); - data.append(1); - data.append(3); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(0); - data.append(5); - data.append(1); - data.append(2); - data.append(5); - data.append(0); - data.append(3); data.append(4); - data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(5); - data.append(2); - data.append(1); - data.append(3); - data.append(2); data.append(4); - data.append(1); - data.append(4); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(5); - data.append(4); - data.append(5); - data.append(1); - data.append(5); - data.append(0); - data.append(4); - data.append(2); - data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_construct_u32/output_0.cairo b/tests/nodes/sequence_construct_u32/output_0.cairo index 59872afbd..51527d032 100644 --- a/tests/nodes/sequence_construct_u32/output_0.cairo +++ b/tests/nodes/sequence_construct_u32/output_0.cairo @@ -1,109 +1,52 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(3); - data.append(3); data.append(5); - data.append(2); - data.append(2); - data.append(1); data.append(0); - data.append(5); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(1); - data.append(4); - data.append(0); + data.append(5); data.append(4); data.append(4); - data.append(2); - data.append(3); - data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(3); data.append(4); - data.append(0); - data.append(1); - data.append(0); data.append(2); - data.append(1); - data.append(3); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(0); - data.append(5); - data.append(1); - data.append(2); - data.append(5); - data.append(0); - data.append(3); data.append(4); - data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); data.append(0); data.append(5); - data.append(2); - data.append(1); - data.append(3); - data.append(2); data.append(4); - data.append(1); - data.append(4); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(5); - data.append(4); - data.append(5); - data.append(1); - data.append(5); - data.append(0); - data.append(4); - data.append(2); - data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_empty_fp16x16.cairo b/tests/nodes/sequence_empty_fp16x16.cairo index b9348bb4f..c6532e1fb 100644 --- a/tests/nodes/sequence_empty_fp16x16.cairo +++ b/tests/nodes/sequence_empty_fp16x16.cairo @@ -2,10 +2,10 @@ mod output_0; use orion::operators::sequence::FP16x16Sequence; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::sequence::SequenceTrait; +use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_empty_fp16x16/output_0.cairo b/tests/nodes/sequence_empty_fp16x16/output_0.cairo index 23e81c93c..1a7e8f671 100644 --- a/tests/nodes/sequence_empty_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_empty_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Array> { diff --git a/tests/nodes/sequence_empty_fp8x23.cairo b/tests/nodes/sequence_empty_fp8x23.cairo index 6c7248e7f..817a405db 100644 --- a/tests/nodes/sequence_empty_fp8x23.cairo +++ b/tests/nodes/sequence_empty_fp8x23.cairo @@ -1,11 +1,11 @@ mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::sequence::FP8x23Sequence; -use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_empty_fp8x23/output_0.cairo b/tests/nodes/sequence_empty_fp8x23/output_0.cairo index 1750c0e17..31d33abb4 100644 --- a/tests/nodes/sequence_empty_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_empty_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Array> { diff --git a/tests/nodes/sequence_empty_i32.cairo b/tests/nodes/sequence_empty_i32.cairo index 798bc794a..83aa16ebc 100644 --- a/tests/nodes/sequence_empty_i32.cairo +++ b/tests/nodes/sequence_empty_i32.cairo @@ -1,13 +1,11 @@ mod output_0; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::I32Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::I32Sequence; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_empty_i32/output_0.cairo b/tests/nodes/sequence_empty_i32/output_0.cairo index 7361db7ba..7b4bb64c1 100644 --- a/tests/nodes/sequence_empty_i32/output_0.cairo +++ b/tests/nodes/sequence_empty_i32/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); diff --git a/tests/nodes/sequence_empty_i8.cairo b/tests/nodes/sequence_empty_i8.cairo index 07e9f8a57..ea723f410 100644 --- a/tests/nodes/sequence_empty_i8.cairo +++ b/tests/nodes/sequence_empty_i8.cairo @@ -4,7 +4,6 @@ mod output_0; use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; diff --git a/tests/nodes/sequence_empty_i8/output_0.cairo b/tests/nodes/sequence_empty_i8/output_0.cairo index d9d70f49b..f997d24bb 100644 --- a/tests/nodes/sequence_empty_i8/output_0.cairo +++ b/tests/nodes/sequence_empty_i8/output_0.cairo @@ -1,7 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); diff --git a/tests/nodes/sequence_empty_u32.cairo b/tests/nodes/sequence_empty_u32.cairo index ecd7cefef..52cc54c52 100644 --- a/tests/nodes/sequence_empty_u32.cairo +++ b/tests/nodes/sequence_empty_u32.cairo @@ -1,13 +1,11 @@ mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::sequence::U32Sequence; use orion::operators::tensor::U32TensorPartialEq; use orion::operators::sequence::SequenceTrait; -use orion::operators::sequence::U32Sequence; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_empty_u32/output_0.cairo b/tests/nodes/sequence_empty_u32/output_0.cairo index 2173ba154..0923d8b43 100644 --- a/tests/nodes/sequence_empty_u32/output_0.cairo +++ b/tests/nodes/sequence_empty_u32/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); diff --git a/tests/nodes/sequence_erase_fp16x16_empty.cairo b/tests/nodes/sequence_erase_fp16x16_empty.cairo index 3c6492874..e0a39fa90 100644 --- a/tests/nodes/sequence_erase_fp16x16_empty.cairo +++ b/tests/nodes/sequence_erase_fp16x16_empty.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::FP16x16Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::FP16x16Sequence; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo b/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo index 1cc30311e..77b9c79e4 100644 --- a/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_empty/input_0.cairo @@ -1,93 +1,78 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo b/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo index 55cd144b7..5cc071225 100644 --- a/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_empty/output_0.cairo @@ -1,76 +1,64 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp16x16_negative.cairo b/tests/nodes/sequence_erase_fp16x16_negative.cairo index f8deff4bb..78deb6e1e 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::I32Sequence; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::FP16x16Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::FP16x16Sequence; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo b/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo index d412ec13b..5f97523b1 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative/input_0.cairo @@ -1,62 +1,77 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo b/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo b/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo index 90ef78322..7afc99c88 100644 --- a/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_negative/output_0.cairo @@ -1,51 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp16x16_positive.cairo b/tests/nodes/sequence_erase_fp16x16_positive.cairo index dbc41c494..03f87400e 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::I32Sequence; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::FP16x16Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::FP16x16Sequence; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo b/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo index 1c0ff9223..618dd8653 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive/input_0.cairo @@ -1,93 +1,78 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo b/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo b/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo index 84a7faff5..95a6c0a27 100644 --- a/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_fp16x16_positive/output_0.cairo @@ -1,76 +1,64 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp8x23_empty.cairo b/tests/nodes/sequence_erase_fp8x23_empty.cairo index bcaabf9ad..a53d6becd 100644 --- a/tests/nodes/sequence_erase_fp8x23_empty.cairo +++ b/tests/nodes/sequence_erase_fp8x23_empty.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::FP8x23Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo b/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo index 0a1b0e21b..e053e1686 100644 --- a/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_empty/input_0.cairo @@ -1,92 +1,52 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo b/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo index f0fd5e99a..dec6d64ac 100644 --- a/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_empty/output_0.cairo @@ -1,76 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp8x23_negative.cairo b/tests/nodes/sequence_erase_fp8x23_negative.cairo index 408c8e897..867ced470 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::FP8x23Sequence; +use orion::operators::sequence::I32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo b/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo index d6dfa37db..1a3fb5268 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative/input_0.cairo @@ -1,93 +1,53 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo b/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo b/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo index dc702be2d..4d0dd2b96 100644 --- a/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_negative/output_0.cairo @@ -1,76 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(3); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp8x23_positive.cairo b/tests/nodes/sequence_erase_fp8x23_positive.cairo index ce5f2e1a9..9436f0c41 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::FP8x23Sequence; +use orion::operators::sequence::I32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo b/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo index b44e4dfae..78cfef3cf 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive/input_0.cairo @@ -1,68 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo b/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo b/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo index e2c12f0a1..244ccb16f 100644 --- a/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_fp8x23_positive/output_0.cairo @@ -1,56 +1,76 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i32_empty.cairo b/tests/nodes/sequence_erase_i32_empty.cairo index bd7f7da59..27bd74b17 100644 --- a/tests/nodes/sequence_erase_i32_empty.cairo +++ b/tests/nodes/sequence_erase_i32_empty.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::I32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_i32_empty/input_0.cairo b/tests/nodes/sequence_erase_i32_empty/input_0.cairo index 8c34ebc4f..7f2394533 100644 --- a/tests/nodes/sequence_erase_i32_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_i32_empty/input_0.cairo @@ -1,78 +1,53 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: false }); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i32_empty/output_0.cairo b/tests/nodes/sequence_erase_i32_empty/output_0.cairo index 48e2a31e3..003ffebf6 100644 --- a/tests/nodes/sequence_erase_i32_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_i32_empty/output_0.cairo @@ -1,64 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 4, sign: true }); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: false }); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i32_negative.cairo b/tests/nodes/sequence_erase_i32_negative.cairo index 8d839c32d..be0360709 100644 --- a/tests/nodes/sequence_erase_i32_negative.cairo +++ b/tests/nodes/sequence_erase_i32_negative.cairo @@ -3,13 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::I32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_i32_negative/input_0.cairo b/tests/nodes/sequence_erase_i32_negative/input_0.cairo index 319738725..e1bb161ad 100644 --- a/tests/nodes/sequence_erase_i32_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_i32_negative/input_0.cairo @@ -1,53 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(5); + data.append(3); + data.append(-3); + data.append(5); + data.append(-5); + data.append(-1); + data.append(3); + data.append(-5); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); + data.append(-5); + data.append(5); + data.append(1); + data.append(5); + data.append(5); + data.append(-1); + data.append(3); + data.append(4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-4); + data.append(0); + data.append(-4); + data.append(-6); + data.append(1); + data.append(-1); + data.append(4); + data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); + data.append(-5); + data.append(-6); + data.append(1); + data.append(5); + data.append(1); + data.append(-6); + data.append(2); + data.append(5); + data.append(-3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: true }); + data.append(-3); + data.append(-5); + data.append(2); + data.append(1); + data.append(1); + data.append(-1); + data.append(-6); + data.append(-3); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i32_negative/input_1.cairo b/tests/nodes/sequence_erase_i32_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_erase_i32_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_i32_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_i32_negative/output_0.cairo b/tests/nodes/sequence_erase_i32_negative/output_0.cairo index 2861c3ba4..a87683b5b 100644 --- a/tests/nodes/sequence_erase_i32_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_i32_negative/output_0.cairo @@ -1,44 +1,76 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(5); + data.append(3); + data.append(-3); + data.append(5); + data.append(-5); + data.append(-1); + data.append(3); + data.append(-5); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); + data.append(-5); + data.append(5); + data.append(1); + data.append(5); + data.append(5); + data.append(-1); + data.append(3); + data.append(4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-4); + data.append(0); + data.append(-4); + data.append(-6); + data.append(1); + data.append(-1); + data.append(4); + data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: true }); + data.append(-3); + data.append(-5); + data.append(2); + data.append(1); + data.append(1); + data.append(-1); + data.append(-6); + data.append(-3); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i32_positive.cairo b/tests/nodes/sequence_erase_i32_positive.cairo index 928acffcb..6882498b8 100644 --- a/tests/nodes/sequence_erase_i32_positive.cairo +++ b/tests/nodes/sequence_erase_i32_positive.cairo @@ -3,13 +3,11 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::sequence::I32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_i32_positive/input_0.cairo b/tests/nodes/sequence_erase_i32_positive/input_0.cairo index d11d3bf7d..d35ba577c 100644 --- a/tests/nodes/sequence_erase_i32_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_i32_positive/input_0.cairo @@ -1,68 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-3); + data.append(2); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(5); + data.append(-4); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); + data.append(-1); + data.append(-3); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); + data.append(2); + data.append(4); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(2); + data.append(1); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i32_positive/input_1.cairo b/tests/nodes/sequence_erase_i32_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_erase_i32_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_i32_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_i32_positive/output_0.cairo b/tests/nodes/sequence_erase_i32_positive/output_0.cairo index 31258ba3f..c6631b10a 100644 --- a/tests/nodes/sequence_erase_i32_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_i32_positive/output_0.cairo @@ -1,56 +1,52 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-3); + data.append(2); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(5); + data.append(-4); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); + data.append(2); + data.append(4); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(2); + data.append(1); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i8_empty.cairo b/tests/nodes/sequence_erase_i8_empty.cairo index e7a55fb4d..5de019182 100644 --- a/tests/nodes/sequence_erase_i8_empty.cairo +++ b/tests/nodes/sequence_erase_i8_empty.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I8Sequence; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_i8_empty/input_0.cairo b/tests/nodes/sequence_erase_i8_empty/input_0.cairo index 46a591d1c..d02c6dd32 100644 --- a/tests/nodes/sequence_erase_i8_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_i8_empty/input_0.cairo @@ -1,58 +1,53 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 4, sign: true }); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 6, sign: true }); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 5, sign: false }); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i8_empty/output_0.cairo b/tests/nodes/sequence_erase_i8_empty/output_0.cairo index 376d15b03..a65c03c64 100644 --- a/tests/nodes/sequence_erase_i8_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_i8_empty/output_0.cairo @@ -1,48 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 4, sign: true }); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 6, sign: true }); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 5, sign: false }); + data.append(-4); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i8_negative.cairo b/tests/nodes/sequence_erase_i8_negative.cairo index a41daf502..66cf95d75 100644 --- a/tests/nodes/sequence_erase_i8_negative.cairo +++ b/tests/nodes/sequence_erase_i8_negative.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::I32Sequence; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I8Sequence; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_i8_negative/input_0.cairo b/tests/nodes/sequence_erase_i8_negative/input_0.cairo index c7c966295..83abba47c 100644 --- a/tests/nodes/sequence_erase_i8_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_i8_negative/input_0.cairo @@ -1,93 +1,78 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: true }); + data.append(-5); + data.append(2); + data.append(3); + data.append(3); + data.append(0); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: true }); + data.append(2); + data.append(-4); + data.append(2); + data.append(3); + data.append(4); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 1, sign: true }); + data.append(4); + data.append(-6); + data.append(2); + data.append(-5); + data.append(2); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(2); + data.append(-5); + data.append(3); + data.append(3); + data.append(1); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(-4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i8_negative/input_1.cairo b/tests/nodes/sequence_erase_i8_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_erase_i8_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_i8_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_i8_negative/output_0.cairo b/tests/nodes/sequence_erase_i8_negative/output_0.cairo index 8963bbfaf..0057d2dbc 100644 --- a/tests/nodes/sequence_erase_i8_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_i8_negative/output_0.cairo @@ -1,76 +1,64 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: true }); + data.append(-5); + data.append(2); + data.append(3); + data.append(3); + data.append(0); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: true }); + data.append(2); + data.append(-4); + data.append(2); + data.append(3); + data.append(4); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 1, sign: true }); + data.append(4); + data.append(-6); + data.append(2); + data.append(-5); + data.append(2); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(3); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); + data.append(4); + data.append(5); + data.append(4); + data.append(3); + data.append(-4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i8_positive.cairo b/tests/nodes/sequence_erase_i8_positive.cairo index d0c7dfb04..3791ab22c 100644 --- a/tests/nodes/sequence_erase_i8_positive.cairo +++ b/tests/nodes/sequence_erase_i8_positive.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::I32Sequence; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::I8Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I8Sequence; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_i8_positive/input_0.cairo b/tests/nodes/sequence_erase_i8_positive/input_0.cairo index bf3db7dfb..c5b82b26b 100644 --- a/tests/nodes/sequence_erase_i8_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_i8_positive/input_0.cairo @@ -1,53 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); + data.append(5); + data.append(-5); + data.append(1); + data.append(3); + data.append(-1); + data.append(-5); + data.append(3); + data.append(-2); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); + data.append(0); + data.append(-5); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(5); + data.append(4); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); + data.append(4); + data.append(0); + data.append(-4); + data.append(4); + data.append(-4); + data.append(2); + data.append(-2); + data.append(-4); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); + data.append(-2); + data.append(5); + data.append(2); + data.append(-2); + data.append(-6); + data.append(5); + data.append(2); + data.append(-3); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); + data.append(4); + data.append(3); + data.append(1); + data.append(5); + data.append(5); + data.append(2); + data.append(2); + data.append(0); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_i8_positive/input_1.cairo b/tests/nodes/sequence_erase_i8_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_erase_i8_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_i8_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_i8_positive/output_0.cairo b/tests/nodes/sequence_erase_i8_positive/output_0.cairo index 765cf80c5..5c5a090c2 100644 --- a/tests/nodes/sequence_erase_i8_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_i8_positive/output_0.cairo @@ -1,44 +1,76 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); + data.append(5); + data.append(-5); + data.append(1); + data.append(3); + data.append(-1); + data.append(-5); + data.append(3); + data.append(-2); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); + data.append(0); + data.append(-5); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(5); + data.append(4); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); + data.append(-2); + data.append(5); + data.append(2); + data.append(-2); + data.append(-6); + data.append(5); + data.append(2); + data.append(-3); + data.append(-6); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); + data.append(4); + data.append(3); + data.append(1); + data.append(5); + data.append(5); + data.append(2); + data.append(2); + data.append(0); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_u32_empty.cairo b/tests/nodes/sequence_erase_u32_empty.cairo index 8065bda49..7efb3f54a 100644 --- a/tests/nodes/sequence_erase_u32_empty.cairo +++ b/tests/nodes/sequence_erase_u32_empty.cairo @@ -2,13 +2,11 @@ mod input_0; mod output_0; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::U32Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::U32Sequence; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_u32_empty/input_0.cairo b/tests/nodes/sequence_erase_u32_empty/input_0.cairo index 02d85abac..69ff06d92 100644 --- a/tests/nodes/sequence_erase_u32_empty/input_0.cairo +++ b/tests/nodes/sequence_erase_u32_empty/input_0.cairo @@ -1,67 +1,53 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); data.append(2); - data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(3); data.append(0); - data.append(3); - data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(4); - data.append(5); - data.append(4); - data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(2); - data.append(5); - data.append(4); - data.append(0); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(5); - data.append(2); - data.append(3); - data.append(5); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_u32_empty/output_0.cairo b/tests/nodes/sequence_erase_u32_empty/output_0.cairo index 37943a78b..590164937 100644 --- a/tests/nodes/sequence_erase_u32_empty/output_0.cairo +++ b/tests/nodes/sequence_erase_u32_empty/output_0.cairo @@ -1,55 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); data.append(2); - data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(3); data.append(0); - data.append(3); - data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(4); - data.append(5); - data.append(4); - data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(1); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(2); - data.append(5); - data.append(4); - data.append(0); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_u32_negative.cairo b/tests/nodes/sequence_erase_u32_negative.cairo index feab9c1ee..00e19fbf5 100644 --- a/tests/nodes/sequence_erase_u32_negative.cairo +++ b/tests/nodes/sequence_erase_u32_negative.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::I32Sequence; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::U32Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::U32Sequence; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_u32_negative/input_0.cairo b/tests/nodes/sequence_erase_u32_negative/input_0.cairo index 72ad07fb7..2c738f7f0 100644 --- a/tests/nodes/sequence_erase_u32_negative/input_0.cairo +++ b/tests/nodes/sequence_erase_u32_negative/input_0.cairo @@ -1,67 +1,63 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); + data.append(4); + data.append(3); data.append(5); - data.append(0); - data.append(2); - data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(5); - data.append(5); - data.append(1); data.append(3); + data.append(0); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); - data.append(2); - data.append(2); + data.append(3); + data.append(0); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(4); - data.append(3); - data.append(1); data.append(2); + data.append(4); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(4); data.append(5); data.append(0); - data.append(4); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_u32_negative/input_1.cairo b/tests/nodes/sequence_erase_u32_negative/input_1.cairo index 87692e397..c0a28b368 100644 --- a/tests/nodes/sequence_erase_u32_negative/input_1.cairo +++ b/tests/nodes/sequence_erase_u32_negative/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_u32_negative/output_0.cairo b/tests/nodes/sequence_erase_u32_negative/output_0.cairo index 871e0d4a8..2199d40de 100644 --- a/tests/nodes/sequence_erase_u32_negative/output_0.cairo +++ b/tests/nodes/sequence_erase_u32_negative/output_0.cairo @@ -1,55 +1,52 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); + data.append(4); + data.append(3); data.append(5); - data.append(0); - data.append(2); - data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(5); - data.append(5); - data.append(1); data.append(3); + data.append(0); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); - data.append(2); - data.append(2); + data.append(3); + data.append(0); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(2); + shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(4); data.append(5); data.append(0); - data.append(4); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_u32_positive.cairo b/tests/nodes/sequence_erase_u32_positive.cairo index a742989c2..e6cd0867b 100644 --- a/tests/nodes/sequence_erase_u32_positive.cairo +++ b/tests/nodes/sequence_erase_u32_positive.cairo @@ -3,15 +3,13 @@ mod input_1; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::sequence::I32Sequence; use core::array::{ArrayTrait, SpanTrait}; -use orion::utils::{assert_eq, assert_seq_eq}; -use orion::operators::sequence::U32Sequence; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::U32Sequence; +use orion::operators::tensor::I32TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_erase_u32_positive/input_0.cairo b/tests/nodes/sequence_erase_u32_positive/input_0.cairo index 3ef9a6b54..ee84e990c 100644 --- a/tests/nodes/sequence_erase_u32_positive/input_0.cairo +++ b/tests/nodes/sequence_erase_u32_positive/input_0.cairo @@ -1,52 +1,93 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); data.append(2); + data.append(0); + data.append(0); + data.append(0); + data.append(5); + data.append(5); + data.append(4); + data.append(4); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(1); data.append(5); + data.append(1); + data.append(5); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(0); + data.append(4); + data.append(0); + data.append(0); + data.append(5); data.append(3); + data.append(4); + data.append(1); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(1); + data.append(2); data.append(4); + data.append(1); + data.append(0); + data.append(0); + data.append(3); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); data.append(0); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(3); + data.append(1); + data.append(2); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_erase_u32_positive/input_1.cairo b/tests/nodes/sequence_erase_u32_positive/input_1.cairo index 132fbe314..337dd66e3 100644 --- a/tests/nodes/sequence_erase_u32_positive/input_1.cairo +++ b/tests/nodes/sequence_erase_u32_positive/input_1.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_erase_u32_positive/output_0.cairo b/tests/nodes/sequence_erase_u32_positive/output_0.cairo index a70f22381..7f9e3ef1c 100644 --- a/tests/nodes/sequence_erase_u32_positive/output_0.cairo +++ b/tests/nodes/sequence_erase_u32_positive/output_0.cairo @@ -1,43 +1,76 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); data.append(2); + data.append(0); + data.append(0); + data.append(0); + data.append(5); + data.append(5); + data.append(4); + data.append(4); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(1); data.append(5); + data.append(1); + data.append(5); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(1); + data.append(2); data.append(4); + data.append(1); + data.append(0); + data.append(0); + data.append(3); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); - shape.append(1); + shape.append(3); + shape.append(3); let mut data = ArrayTrait::new(); data.append(0); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(3); + data.append(1); + data.append(2); + data.append(0); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_fp16x16.cairo b/tests/nodes/sequence_insert_fp16x16.cairo index 9f9fe2754..d30b0d3e1 100644 --- a/tests/nodes/sequence_insert_fp16x16.cairo +++ b/tests/nodes/sequence_insert_fp16x16.cairo @@ -4,15 +4,13 @@ mod input_2; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::sequence::SequenceTrait; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::sequence::FP16x16Sequence; -use orion::operators::sequence::SequenceTrait; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::sequence::I32Sequence; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -22,7 +20,7 @@ fn test_sequence_insert_fp16x16() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.sequence_insert(@input_1, Option::Some(input_2)); + let y = input_0.sequence_insert(@input_1,Option::Some(input_2)); assert_seq_eq(y, z); } diff --git a/tests/nodes/sequence_insert_fp16x16/input_0.cairo b/tests/nodes/sequence_insert_fp16x16/input_0.cairo index 49c752d21..9f3b7c180 100644 --- a/tests/nodes/sequence_insert_fp16x16/input_0.cairo +++ b/tests/nodes/sequence_insert_fp16x16/input_0.cairo @@ -1,50 +1,50 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_fp16x16/input_1.cairo b/tests/nodes/sequence_insert_fp16x16/input_1.cairo index d9dfe17cf..233caf9b7 100644 --- a/tests/nodes/sequence_insert_fp16x16/input_1.cairo +++ b/tests/nodes/sequence_insert_fp16x16/input_1.cairo @@ -1,19 +1,19 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_fp16x16/input_2.cairo b/tests/nodes/sequence_insert_fp16x16/input_2.cairo index 3d41f6520..8b86e4317 100644 --- a/tests/nodes/sequence_insert_fp16x16/input_2.cairo +++ b/tests/nodes/sequence_insert_fp16x16/input_2.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_fp16x16/output_0.cairo b/tests/nodes/sequence_insert_fp16x16/output_0.cairo index affef0af5..d36fbf970 100644 --- a/tests/nodes/sequence_insert_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_insert_fp16x16/output_0.cairo @@ -1,64 +1,64 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_fp8x23.cairo b/tests/nodes/sequence_insert_fp8x23.cairo index e18208548..ad4d12be4 100644 --- a/tests/nodes/sequence_insert_fp8x23.cairo +++ b/tests/nodes/sequence_insert_fp8x23.cairo @@ -4,15 +4,13 @@ mod input_2; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::sequence::SequenceTrait; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::sequence::I32Sequence; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::sequence::FP8x23Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] @@ -22,7 +20,7 @@ fn test_sequence_insert_fp8x23() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.sequence_insert(@input_1, Option::Some(input_2)); + let y = input_0.sequence_insert(@input_1,Option::Some(input_2)); assert_seq_eq(y, z); } diff --git a/tests/nodes/sequence_insert_fp8x23/input_0.cairo b/tests/nodes/sequence_insert_fp8x23/input_0.cairo index 516565369..f9583e4cd 100644 --- a/tests/nodes/sequence_insert_fp8x23/input_0.cairo +++ b/tests/nodes/sequence_insert_fp8x23/input_0.cairo @@ -1,50 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_fp8x23/input_1.cairo b/tests/nodes/sequence_insert_fp8x23/input_1.cairo index 6483cd800..ea2586661 100644 --- a/tests/nodes/sequence_insert_fp8x23/input_1.cairo +++ b/tests/nodes/sequence_insert_fp8x23/input_1.cairo @@ -1,19 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_fp8x23/input_2.cairo b/tests/nodes/sequence_insert_fp8x23/input_2.cairo index 443d9db87..ffbb3b95e 100644 --- a/tests/nodes/sequence_insert_fp8x23/input_2.cairo +++ b/tests/nodes/sequence_insert_fp8x23/input_2.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_fp8x23/output_0.cairo b/tests/nodes/sequence_insert_fp8x23/output_0.cairo index 2d8769a0b..8421146a2 100644 --- a/tests/nodes/sequence_insert_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_insert_fp8x23/output_0.cairo @@ -1,64 +1,56 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_i32.cairo b/tests/nodes/sequence_insert_i32.cairo index f23a2ea7c..3a397715d 100644 --- a/tests/nodes/sequence_insert_i32.cairo +++ b/tests/nodes/sequence_insert_i32.cairo @@ -4,13 +4,11 @@ mod input_2; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::sequence::SequenceTrait; use orion::operators::tensor::I32TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::sequence::I32Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] @@ -20,7 +18,7 @@ fn test_sequence_insert_i32() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.sequence_insert(@input_1, Option::Some(input_2)); + let y = input_0.sequence_insert(@input_1,Option::Some(input_2)); assert_seq_eq(y, z); } diff --git a/tests/nodes/sequence_insert_i32/input_0.cairo b/tests/nodes/sequence_insert_i32/input_0.cairo index 44efad2b3..d958a99d5 100644 --- a/tests/nodes/sequence_insert_i32/input_0.cairo +++ b/tests/nodes/sequence_insert_i32/input_0.cairo @@ -1,38 +1,35 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_i32/input_1.cairo b/tests/nodes/sequence_insert_i32/input_1.cairo index 31f32ef39..b7a006947 100644 --- a/tests/nodes/sequence_insert_i32/input_1.cairo +++ b/tests/nodes/sequence_insert_i32/input_1.cairo @@ -1,15 +1,14 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_i32/input_2.cairo b/tests/nodes/sequence_insert_i32/input_2.cairo index 3d41f6520..ffbb3b95e 100644 --- a/tests/nodes/sequence_insert_i32/input_2.cairo +++ b/tests/nodes/sequence_insert_i32/input_2.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_i32/output_0.cairo b/tests/nodes/sequence_insert_i32/output_0.cairo index d50a03921..a1d6c393c 100644 --- a/tests/nodes/sequence_insert_i32/output_0.cairo +++ b/tests/nodes/sequence_insert_i32/output_0.cairo @@ -1,48 +1,44 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_i8.cairo b/tests/nodes/sequence_insert_i8.cairo index 604c39326..a304ff2c4 100644 --- a/tests/nodes/sequence_insert_i8.cairo +++ b/tests/nodes/sequence_insert_i8.cairo @@ -4,15 +4,13 @@ mod input_2; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::operators::tensor::I8Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::sequence::SequenceTrait; use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::sequence::I32Sequence; use orion::operators::sequence::I8Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] @@ -22,7 +20,7 @@ fn test_sequence_insert_i8() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.sequence_insert(@input_1, Option::Some(input_2)); + let y = input_0.sequence_insert(@input_1,Option::Some(input_2)); assert_seq_eq(y, z); } diff --git a/tests/nodes/sequence_insert_i8/input_0.cairo b/tests/nodes/sequence_insert_i8/input_0.cairo index 32a61b6be..4daf38f01 100644 --- a/tests/nodes/sequence_insert_i8/input_0.cairo +++ b/tests/nodes/sequence_insert_i8/input_0.cairo @@ -1,38 +1,41 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(2); + data.append(3); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(5); + data.append(5); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(3); + data.append(1); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_i8/input_1.cairo b/tests/nodes/sequence_insert_i8/input_1.cairo index 0f8e8db05..b1ec64cff 100644 --- a/tests/nodes/sequence_insert_i8/input_1.cairo +++ b/tests/nodes/sequence_insert_i8/input_1.cairo @@ -1,15 +1,16 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(4); + data.append(3); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_i8/input_2.cairo b/tests/nodes/sequence_insert_i8/input_2.cairo index 443d9db87..8782dcfc3 100644 --- a/tests/nodes/sequence_insert_i8/input_2.cairo +++ b/tests/nodes/sequence_insert_i8/input_2.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_i8/output_0.cairo b/tests/nodes/sequence_insert_i8/output_0.cairo index 6d4c5e259..5544f5e9c 100644 --- a/tests/nodes/sequence_insert_i8/output_0.cairo +++ b/tests/nodes/sequence_insert_i8/output_0.cairo @@ -1,48 +1,52 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(2); + data.append(3); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(5); + data.append(5); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(4); + data.append(3); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(3); + data.append(1); + data.append(4); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_u32.cairo b/tests/nodes/sequence_insert_u32.cairo index 8791e81d6..dcd905f72 100644 --- a/tests/nodes/sequence_insert_u32.cairo +++ b/tests/nodes/sequence_insert_u32.cairo @@ -4,15 +4,13 @@ mod input_2; mod output_0; -use orion::operators::tensor::I32Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::sequence::SequenceTrait; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::sequence::U32Sequence; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::sequence::I32Sequence; use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::sequence::U32Sequence; -use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] @@ -22,7 +20,7 @@ fn test_sequence_insert_u32() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.sequence_insert(@input_1, Option::Some(input_2)); + let y = input_0.sequence_insert(@input_1,Option::Some(input_2)); assert_seq_eq(y, z); } diff --git a/tests/nodes/sequence_insert_u32/input_0.cairo b/tests/nodes/sequence_insert_u32/input_0.cairo index 0071622e7..31be7a60a 100644 --- a/tests/nodes/sequence_insert_u32/input_0.cairo +++ b/tests/nodes/sequence_insert_u32/input_0.cairo @@ -1,42 +1,37 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); - data.append(2); - data.append(5); - data.append(0); + data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(2); data.append(1); - data.append(3); - data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); - data.append(0); + data.append(3); data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_insert_u32/input_1.cairo b/tests/nodes/sequence_insert_u32/input_1.cairo index 4a8675a69..fdf229aaf 100644 --- a/tests/nodes/sequence_insert_u32/input_1.cairo +++ b/tests/nodes/sequence_insert_u32/input_1.cairo @@ -1,16 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); data.append(1); - data.append(0); - data.append(2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_u32/input_2.cairo b/tests/nodes/sequence_insert_u32/input_2.cairo index 3d41f6520..ffbb3b95e 100644 --- a/tests/nodes/sequence_insert_u32/input_2.cairo +++ b/tests/nodes/sequence_insert_u32/input_2.cairo @@ -1,12 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_insert_u32/output_0.cairo b/tests/nodes/sequence_insert_u32/output_0.cairo index c41b91cce..e84f93b6e 100644 --- a/tests/nodes/sequence_insert_u32/output_0.cairo +++ b/tests/nodes/sequence_insert_u32/output_0.cairo @@ -1,54 +1,47 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); - data.append(2); - data.append(5); - data.append(0); + data.append(1); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); data.append(1); - data.append(0); - data.append(2); + data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(0); + data.append(2); data.append(1); - data.append(3); - data.append(3); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(2); + shape.append(1); shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(2); - data.append(0); + data.append(3); data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_fp16x16.cairo b/tests/nodes/sequence_length_fp16x16.cairo index b43f3494b..d971d5569 100644 --- a/tests/nodes/sequence_length_fp16x16.cairo +++ b/tests/nodes/sequence_length_fp16x16.cairo @@ -2,23 +2,21 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::sequence::FP16x16Sequence; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::U32Sequence; +use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; #[test] #[available_gas(2000000000)] fn test_sequence_length_fp16x16() { - let input_0 = input_0::input_0(); + let input_0 = input_0::input_0(); let z = output_0::output_0(); let y = input_0.sequence_length(); assert_eq(y, z); -} +} diff --git a/tests/nodes/sequence_length_fp16x16/input_0.cairo b/tests/nodes/sequence_length_fp16x16/input_0.cairo index 744df487a..cb7bc02df 100644 --- a/tests/nodes/sequence_length_fp16x16/input_0.cairo +++ b/tests/nodes/sequence_length_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { @@ -8,100 +8,55 @@ fn input_0() -> Array> { let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_fp16x16/output_0.cairo b/tests/nodes/sequence_length_fp16x16/output_0.cairo index 0b6948bb8..7d4c906ee 100644 --- a/tests/nodes/sequence_length_fp16x16/output_0.cairo +++ b/tests/nodes/sequence_length_fp16x16/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(9); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_fp16x16_broadcast.cairo b/tests/nodes/sequence_length_fp16x16_broadcast.cairo index f8c59e131..251f8227d 100644 --- a/tests/nodes/sequence_length_fp16x16_broadcast.cairo +++ b/tests/nodes/sequence_length_fp16x16_broadcast.cairo @@ -2,14 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; use orion::operators::sequence::FP16x16Sequence; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::U32Sequence; +use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; #[test] diff --git a/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo b/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo index 579546c86..a538dd7f8 100644 --- a/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_fp16x16_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Array> { @@ -8,54 +8,48 @@ fn input_0() -> Array> { let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); @@ -64,23 +58,26 @@ fn input_0() -> Array> { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); + shape.append(2); shape.append(3); - shape.append(1); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo b/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo index a2f466504..7d4c906ee 100644 --- a/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/sequence_length_fp8x23.cairo b/tests/nodes/sequence_length_fp8x23.cairo index cbe83fbc7..f06c4dc96 100644 --- a/tests/nodes/sequence_length_fp8x23.cairo +++ b/tests/nodes/sequence_length_fp8x23.cairo @@ -2,15 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::U32Sequence; use orion::operators::sequence::FP8x23Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_length_fp8x23/input_0.cairo b/tests/nodes/sequence_length_fp8x23/input_0.cairo index b7efb6e62..1860f85e6 100644 --- a/tests/nodes/sequence_length_fp8x23/input_0.cairo +++ b/tests/nodes/sequence_length_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { @@ -8,61 +8,61 @@ fn input_0() -> Array> { let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(2); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(2); + shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_fp8x23/output_0.cairo b/tests/nodes/sequence_length_fp8x23/output_0.cairo index d85f9557c..7d4c906ee 100644 --- a/tests/nodes/sequence_length_fp8x23/output_0.cairo +++ b/tests/nodes/sequence_length_fp8x23/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(5); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_fp8x23_broadcast.cairo b/tests/nodes/sequence_length_fp8x23_broadcast.cairo index 4c78e99bb..0be668a3d 100644 --- a/tests/nodes/sequence_length_fp8x23_broadcast.cairo +++ b/tests/nodes/sequence_length_fp8x23_broadcast.cairo @@ -2,15 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::U32Sequence; use orion::operators::sequence::FP8x23Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::tensor::FP8x23TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo b/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo index 333ced017..83f5f2be7 100644 --- a/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_fp8x23_broadcast/input_0.cairo @@ -1,18 +1,33 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); shape.append(2); + shape.append(3); let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo b/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo index 5925c78ea..8f249f9cc 100644 --- a/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_fp8x23_broadcast/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_i32.cairo b/tests/nodes/sequence_length_i32.cairo index 566c70e9a..9e299f9b4 100644 --- a/tests/nodes/sequence_length_i32.cairo +++ b/tests/nodes/sequence_length_i32.cairo @@ -2,14 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32Tensor; +use orion::operators::sequence::U32Sequence; use orion::operators::sequence::I32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; #[test] diff --git a/tests/nodes/sequence_length_i32/input_0.cairo b/tests/nodes/sequence_length_i32/input_0.cairo index 5532e0c5c..cc043d78d 100644 --- a/tests/nodes/sequence_length_i32/input_0.cairo +++ b/tests/nodes/sequence_length_i32/input_0.cairo @@ -1,28 +1,92 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(-5); + data.append(4); + data.append(-6); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-5); + data.append(-1); + data.append(5); + data.append(-6); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(4); + data.append(-6); + data.append(5); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 6, sign: true }); + data.append(4); + data.append(-2); + data.append(-4); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(1); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-4); + data.append(-5); + data.append(-1); + data.append(3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(2); + data.append(-4); + data.append(-5); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 5, sign: true }); + data.append(3); + data.append(2); + data.append(-6); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_i32/output_0.cairo b/tests/nodes/sequence_length_i32/output_0.cairo index a17dabf7a..ef4d49e28 100644 --- a/tests/nodes/sequence_length_i32/output_0.cairo +++ b/tests/nodes/sequence_length_i32/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(2); + data.append(7); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_i32_broadcast.cairo b/tests/nodes/sequence_length_i32_broadcast.cairo index 89ae3fad8..3939be874 100644 --- a/tests/nodes/sequence_length_i32_broadcast.cairo +++ b/tests/nodes/sequence_length_i32_broadcast.cairo @@ -2,14 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::U32Tensor; +use orion::operators::sequence::U32Sequence; use orion::operators::sequence::I32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; #[test] diff --git a/tests/nodes/sequence_length_i32_broadcast/input_0.cairo b/tests/nodes/sequence_length_i32_broadcast/input_0.cairo index 152349758..9384c818f 100644 --- a/tests/nodes/sequence_length_i32_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_i32_broadcast/input_0.cairo @@ -1,54 +1,27 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); - let mut shape = ArrayTrait::::new(); - shape.append(2); - shape.append(3); - - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 1, sign: false }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - let mut shape = ArrayTrait::::new(); shape.append(1); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(2); + data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); - shape.append(3); shape.append(1); - - let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 6, sign: true }); - - sequence.append(TensorTrait::new(shape.span(), data.span())); - - let mut shape = ArrayTrait::::new(); - shape.append(2); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: true }); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_i32_broadcast/output_0.cairo b/tests/nodes/sequence_length_i32_broadcast/output_0.cairo index 2b6194754..8f249f9cc 100644 --- a/tests/nodes/sequence_length_i32_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_i32_broadcast/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(4); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_i8.cairo b/tests/nodes/sequence_length_i8.cairo index 3de36247b..4f2c73062 100644 --- a/tests/nodes/sequence_length_i8.cairo +++ b/tests/nodes/sequence_length_i8.cairo @@ -2,15 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::U32Sequence; use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::I8Tensor; -use orion::operators::sequence::I8Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I8Sequence; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_length_i8/input_0.cairo b/tests/nodes/sequence_length_i8/input_0.cairo index be1b45385..1345057a2 100644 --- a/tests/nodes/sequence_length_i8/input_0.cairo +++ b/tests/nodes/sequence_length_i8/input_0.cairo @@ -1,50 +1,104 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(3); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-4); + data.append(4); + data.append(2); + data.append(-6); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(3); + data.append(4); + data.append(5); + data.append(-6); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 6, sign: true }); + data.append(-2); + data.append(4); + data.append(5); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(3); + data.append(4); + data.append(-4); + data.append(1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(2); - shape.append(3); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-2); + data.append(3); + data.append(5); + data.append(-4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-3); + data.append(-5); + data.append(-5); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(-2); + data.append(1); + data.append(3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 4, sign: true }); + data.append(-5); + data.append(-4); + data.append(0); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_i8/output_0.cairo b/tests/nodes/sequence_length_i8/output_0.cairo index bbe021e68..15377ffa0 100644 --- a/tests/nodes/sequence_length_i8/output_0.cairo +++ b/tests/nodes/sequence_length_i8/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(3); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_i8_broadcast.cairo b/tests/nodes/sequence_length_i8_broadcast.cairo index 03b2a9d90..80673312f 100644 --- a/tests/nodes/sequence_length_i8_broadcast.cairo +++ b/tests/nodes/sequence_length_i8_broadcast.cairo @@ -2,15 +2,13 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::sequence::U32Sequence; use orion::operators::tensor::I8TensorPartialEq; -use orion::operators::tensor::I8Tensor; -use orion::operators::sequence::I8Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; +use orion::operators::sequence::I8Sequence; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sequence_length_i8_broadcast/input_0.cairo b/tests/nodes/sequence_length_i8_broadcast/input_0.cairo index c6289e487..a05cb0c3e 100644 --- a/tests/nodes/sequence_length_i8_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_i8_broadcast/input_0.cairo @@ -1,60 +1,107 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-6); + data.append(3); + data.append(-4); + data.append(-6); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + let mut shape = ArrayTrait::::new(); shape.append(3); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(-4); + data.append(-1); + data.append(3); + data.append(-2); + data.append(1); + data.append(0); + data.append(-6); + data.append(5); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-3); + data.append(-6); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); + data.append(0); + data.append(3); + data.append(-1); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); + shape.append(2); shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(4); + data.append(4); + data.append(-4); + data.append(5); + data.append(3); + data.append(3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); shape.append(3); + shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 6, sign: true }); + data.append(5); + data.append(0); + data.append(2); + data.append(-5); + data.append(3); + data.append(-5); sequence.append(TensorTrait::new(shape.span(), data.span())); let mut shape = ArrayTrait::::new(); shape.append(1); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(-2); + data.append(3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); shape.append(1); + shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); + data.append(2); + data.append(0); + data.append(-2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_i8_broadcast/output_0.cairo b/tests/nodes/sequence_length_i8_broadcast/output_0.cairo index 2b6194754..15377ffa0 100644 --- a/tests/nodes/sequence_length_i8_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_i8_broadcast/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(4); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_u32.cairo b/tests/nodes/sequence_length_u32.cairo index caf367c71..7ff130256 100644 --- a/tests/nodes/sequence_length_u32.cairo +++ b/tests/nodes/sequence_length_u32.cairo @@ -2,12 +2,10 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::sequence::U32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; #[test] diff --git a/tests/nodes/sequence_length_u32/input_0.cairo b/tests/nodes/sequence_length_u32/input_0.cairo index 0ce90ec66..677011641 100644 --- a/tests/nodes/sequence_length_u32/input_0.cairo +++ b/tests/nodes/sequence_length_u32/input_0.cairo @@ -1,24 +1,74 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); - shape.append(3); + shape.append(1); shape.append(3); let mut data = ArrayTrait::new(); + data.append(4); data.append(5); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(1); + shape.append(3); + + let mut data = ArrayTrait::new(); data.append(1); + data.append(3); + data.append(1); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(1); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(1); + data.append(3); + data.append(5); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(1); + shape.append(3); + + let mut data = ArrayTrait::new(); data.append(4); - data.append(0); - data.append(2); data.append(4); + data.append(2); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(1); + shape.append(3); + + let mut data = ArrayTrait::new(); data.append(1); - data.append(3); data.append(1); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(1); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(3); + data.append(3); + data.append(2); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_u32/output_0.cairo b/tests/nodes/sequence_length_u32/output_0.cairo index 5925c78ea..7d4c906ee 100644 --- a/tests/nodes/sequence_length_u32/output_0.cairo +++ b/tests/nodes/sequence_length_u32/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(1); + data.append(6); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sequence_length_u32_broadcast.cairo b/tests/nodes/sequence_length_u32_broadcast.cairo index 67b26c272..bba92b1ab 100644 --- a/tests/nodes/sequence_length_u32_broadcast.cairo +++ b/tests/nodes/sequence_length_u32_broadcast.cairo @@ -2,12 +2,10 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32TensorPartialEq; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::U32TensorPartialEq; use orion::operators::sequence::U32Sequence; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::sequence::SequenceTrait; #[test] diff --git a/tests/nodes/sequence_length_u32_broadcast/input_0.cairo b/tests/nodes/sequence_length_u32_broadcast/input_0.cairo index e3e1524dd..7e10a6ab9 100644 --- a/tests/nodes/sequence_length_u32_broadcast/input_0.cairo +++ b/tests/nodes/sequence_length_u32_broadcast/input_0.cairo @@ -1,17 +1,114 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Array> { let mut sequence = ArrayTrait::new(); let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(5); + data.append(3); + data.append(2); + data.append(0); + data.append(5); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(5); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); shape.append(1); + + let mut data = ArrayTrait::new(); + data.append(3); + data.append(2); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(3); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(4); + data.append(2); + data.append(5); + data.append(4); + data.append(4); + data.append(5); + data.append(5); + data.append(3); + data.append(2); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); shape.append(2); let mut data = ArrayTrait::new(); data.append(3); + data.append(5); + data.append(2); + data.append(3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(1); + + let mut data = ArrayTrait::new(); data.append(1); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(2); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(4); + data.append(5); + data.append(3); + data.append(3); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(1); + shape.append(2); + + let mut data = ArrayTrait::new(); + data.append(0); + data.append(4); + + sequence.append(TensorTrait::new(shape.span(), data.span())); + + let mut shape = ArrayTrait::::new(); + shape.append(1); + shape.append(3); + + let mut data = ArrayTrait::new(); + data.append(3); + data.append(0); + data.append(5); sequence.append(TensorTrait::new(shape.span(), data.span())); diff --git a/tests/nodes/sequence_length_u32_broadcast/output_0.cairo b/tests/nodes/sequence_length_u32_broadcast/output_0.cairo index 5925c78ea..fa9f22a1b 100644 --- a/tests/nodes/sequence_length_u32_broadcast/output_0.cairo +++ b/tests/nodes/sequence_length_u32_broadcast/output_0.cairo @@ -1,11 +1,12 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); let mut data = ArrayTrait::new(); - data.append(1); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_hard_fp16x16.cairo b/tests/nodes/shrink_hard_fp16x16.cairo index 6d177255b..0818844b2 100644 --- a/tests/nodes/shrink_hard_fp16x16.cairo +++ b/tests/nodes/shrink_hard_fp16x16.cairo @@ -2,12 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::numbers::FixedTrait; +use orion::numbers::{FixedTrait, FP16x16}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -15,9 +15,7 @@ fn test_shrink_hard_fp16x16() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = TensorTrait::shrink( - input_0, Option::None(()), Option::Some(FixedTrait::new(65536, false)) - ); + let y = TensorTrait::shrink(input_0, Option::None(()), Option::Some(FixedTrait::new(65536, false))); assert_eq(y, z); } diff --git a/tests/nodes/shrink_hard_fp16x16/input_0.cairo b/tests/nodes/shrink_hard_fp16x16/input_0.cairo index 64d741fa3..d2e5cd600 100644 --- a/tests/nodes/shrink_hard_fp16x16/input_0.cairo +++ b/tests/nodes/shrink_hard_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 53724, sign: false }); - data.append(FP16x16 { mag: 100114, sign: true }); - data.append(FP16x16 { mag: 105707, sign: true }); - data.append(FP16x16 { mag: 172713, sign: false }); - data.append(FP16x16 { mag: 117489, sign: true }); - data.append(FP16x16 { mag: 131055, sign: false }); - data.append(FP16x16 { mag: 136968, sign: true }); - data.append(FP16x16 { mag: 139039, sign: true }); - data.append(FP16x16 { mag: 179765, sign: false }); - data.append(FP16x16 { mag: 116549, sign: false }); - data.append(FP16x16 { mag: 86012, sign: true }); - data.append(FP16x16 { mag: 42842, sign: false }); - data.append(FP16x16 { mag: 102196, sign: false }); - data.append(FP16x16 { mag: 91319, sign: true }); - data.append(FP16x16 { mag: 154563, sign: true }); - data.append(FP16x16 { mag: 148265, sign: false }); - data.append(FP16x16 { mag: 147485, sign: false }); - data.append(FP16x16 { mag: 18844, sign: true }); - data.append(FP16x16 { mag: 87916, sign: true }); - data.append(FP16x16 { mag: 53116, sign: false }); - data.append(FP16x16 { mag: 189184, sign: false }); - data.append(FP16x16 { mag: 172959, sign: true }); - data.append(FP16x16 { mag: 24790, sign: false }); - data.append(FP16x16 { mag: 141694, sign: false }); - data.append(FP16x16 { mag: 142845, sign: false }); - data.append(FP16x16 { mag: 88179, sign: false }); - data.append(FP16x16 { mag: 76572, sign: true }); + data.append(FP16x16 { mag: 783, sign: true }); + data.append(FP16x16 { mag: 136168, sign: true }); + data.append(FP16x16 { mag: 71974, sign: false }); + data.append(FP16x16 { mag: 179326, sign: false }); + data.append(FP16x16 { mag: 152653, sign: true }); + data.append(FP16x16 { mag: 26718, sign: false }); + data.append(FP16x16 { mag: 37215, sign: false }); + data.append(FP16x16 { mag: 183129, sign: true }); + data.append(FP16x16 { mag: 118922, sign: true }); + data.append(FP16x16 { mag: 32220, sign: false }); + data.append(FP16x16 { mag: 107283, sign: false }); + data.append(FP16x16 { mag: 63927, sign: false }); + data.append(FP16x16 { mag: 169946, sign: true }); + data.append(FP16x16 { mag: 159111, sign: true }); + data.append(FP16x16 { mag: 187330, sign: false }); + data.append(FP16x16 { mag: 112385, sign: true }); + data.append(FP16x16 { mag: 145842, sign: false }); + data.append(FP16x16 { mag: 34532, sign: false }); + data.append(FP16x16 { mag: 117182, sign: true }); + data.append(FP16x16 { mag: 23252, sign: false }); + data.append(FP16x16 { mag: 78368, sign: true }); + data.append(FP16x16 { mag: 137560, sign: false }); + data.append(FP16x16 { mag: 157981, sign: false }); + data.append(FP16x16 { mag: 89138, sign: true }); + data.append(FP16x16 { mag: 108598, sign: true }); + data.append(FP16x16 { mag: 144474, sign: true }); + data.append(FP16x16 { mag: 118439, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_hard_fp16x16/output_0.cairo b/tests/nodes/shrink_hard_fp16x16/output_0.cairo index 2ff82ffae..beb1720dc 100644 --- a/tests/nodes/shrink_hard_fp16x16/output_0.cairo +++ b/tests/nodes/shrink_hard_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -11,31 +11,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 100114, sign: true }); - data.append(FP16x16 { mag: 105707, sign: true }); - data.append(FP16x16 { mag: 172713, sign: false }); - data.append(FP16x16 { mag: 117489, sign: true }); - data.append(FP16x16 { mag: 131055, sign: false }); - data.append(FP16x16 { mag: 136968, sign: true }); - data.append(FP16x16 { mag: 139039, sign: true }); - data.append(FP16x16 { mag: 179765, sign: false }); - data.append(FP16x16 { mag: 116549, sign: false }); - data.append(FP16x16 { mag: 86012, sign: true }); + data.append(FP16x16 { mag: 136168, sign: true }); + data.append(FP16x16 { mag: 71974, sign: false }); + data.append(FP16x16 { mag: 179326, sign: false }); + data.append(FP16x16 { mag: 152653, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 102196, sign: false }); - data.append(FP16x16 { mag: 91319, sign: true }); - data.append(FP16x16 { mag: 154563, sign: true }); - data.append(FP16x16 { mag: 148265, sign: false }); - data.append(FP16x16 { mag: 147485, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 87916, sign: true }); + data.append(FP16x16 { mag: 183129, sign: true }); + data.append(FP16x16 { mag: 118922, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 189184, sign: false }); - data.append(FP16x16 { mag: 172959, sign: true }); + data.append(FP16x16 { mag: 107283, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 141694, sign: false }); - data.append(FP16x16 { mag: 142845, sign: false }); - data.append(FP16x16 { mag: 88179, sign: false }); - data.append(FP16x16 { mag: 76572, sign: true }); + data.append(FP16x16 { mag: 169946, sign: true }); + data.append(FP16x16 { mag: 159111, sign: true }); + data.append(FP16x16 { mag: 187330, sign: false }); + data.append(FP16x16 { mag: 112385, sign: true }); + data.append(FP16x16 { mag: 145842, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 117182, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 78368, sign: true }); + data.append(FP16x16 { mag: 137560, sign: false }); + data.append(FP16x16 { mag: 157981, sign: false }); + data.append(FP16x16 { mag: 89138, sign: true }); + data.append(FP16x16 { mag: 108598, sign: true }); + data.append(FP16x16 { mag: 144474, sign: true }); + data.append(FP16x16 { mag: 118439, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_hard_fp8x23.cairo b/tests/nodes/shrink_hard_fp8x23.cairo index 175357204..3c054f433 100644 --- a/tests/nodes/shrink_hard_fp8x23.cairo +++ b/tests/nodes/shrink_hard_fp8x23.cairo @@ -2,12 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::numbers::FixedTrait; +use orion::numbers::{FixedTrait, FP8x23}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; #[test] #[available_gas(2000000000)] @@ -15,9 +15,7 @@ fn test_shrink_hard_fp8x23() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = TensorTrait::shrink( - input_0, Option::None(()), Option::Some(FixedTrait::new(8388608, false)) - ); + let y = TensorTrait::shrink(input_0, Option::None(()), Option::Some(FixedTrait::new(8388608, false))); assert_eq(y, z); } diff --git a/tests/nodes/shrink_hard_fp8x23/input_0.cairo b/tests/nodes/shrink_hard_fp8x23/input_0.cairo index 57aaddaa1..cd685bd12 100644 --- a/tests/nodes/shrink_hard_fp8x23/input_0.cairo +++ b/tests/nodes/shrink_hard_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16287022, sign: true }); - data.append(FP8x23 { mag: 10799553, sign: false }); - data.append(FP8x23 { mag: 2484402, sign: true }); - data.append(FP8x23 { mag: 17585288, sign: true }); - data.append(FP8x23 { mag: 6428, sign: false }); - data.append(FP8x23 { mag: 22747410, sign: false }); - data.append(FP8x23 { mag: 7024249, sign: false }); - data.append(FP8x23 { mag: 1080111, sign: false }); - data.append(FP8x23 { mag: 21293057, sign: true }); - data.append(FP8x23 { mag: 1501238, sign: true }); - data.append(FP8x23 { mag: 8554184, sign: true }); - data.append(FP8x23 { mag: 12577394, sign: false }); - data.append(FP8x23 { mag: 14241673, sign: true }); - data.append(FP8x23 { mag: 316469, sign: true }); - data.append(FP8x23 { mag: 16672164, sign: false }); - data.append(FP8x23 { mag: 23534429, sign: false }); - data.append(FP8x23 { mag: 22979924, sign: false }); - data.append(FP8x23 { mag: 12554544, sign: true }); - data.append(FP8x23 { mag: 8831121, sign: false }); - data.append(FP8x23 { mag: 12310986, sign: false }); - data.append(FP8x23 { mag: 16220051, sign: false }); - data.append(FP8x23 { mag: 1096465, sign: true }); - data.append(FP8x23 { mag: 1158077, sign: false }); - data.append(FP8x23 { mag: 7755965, sign: false }); - data.append(FP8x23 { mag: 24795265, sign: false }); - data.append(FP8x23 { mag: 1285412, sign: true }); - data.append(FP8x23 { mag: 12210140, sign: true }); + data.append(FP8x23 { mag: 24359422, sign: false }); + data.append(FP8x23 { mag: 1702352, sign: true }); + data.append(FP8x23 { mag: 24476144, sign: false }); + data.append(FP8x23 { mag: 5048882, sign: false }); + data.append(FP8x23 { mag: 15295379, sign: false }); + data.append(FP8x23 { mag: 20023509, sign: false }); + data.append(FP8x23 { mag: 22548090, sign: true }); + data.append(FP8x23 { mag: 2168923, sign: true }); + data.append(FP8x23 { mag: 1169120, sign: false }); + data.append(FP8x23 { mag: 21744823, sign: false }); + data.append(FP8x23 { mag: 3101366, sign: false }); + data.append(FP8x23 { mag: 22241666, sign: true }); + data.append(FP8x23 { mag: 18004240, sign: true }); + data.append(FP8x23 { mag: 5000783, sign: false }); + data.append(FP8x23 { mag: 16034040, sign: false }); + data.append(FP8x23 { mag: 16596277, sign: false }); + data.append(FP8x23 { mag: 2746457, sign: true }); + data.append(FP8x23 { mag: 3600474, sign: true }); + data.append(FP8x23 { mag: 250279, sign: true }); + data.append(FP8x23 { mag: 12351379, sign: false }); + data.append(FP8x23 { mag: 16444516, sign: false }); + data.append(FP8x23 { mag: 5440394, sign: false }); + data.append(FP8x23 { mag: 1795224, sign: true }); + data.append(FP8x23 { mag: 15465976, sign: true }); + data.append(FP8x23 { mag: 784106, sign: false }); + data.append(FP8x23 { mag: 10988354, sign: true }); + data.append(FP8x23 { mag: 10264893, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_hard_fp8x23/output_0.cairo b/tests/nodes/shrink_hard_fp8x23/output_0.cairo index c1a1baee2..44ffe2b50 100644 --- a/tests/nodes/shrink_hard_fp8x23/output_0.cairo +++ b/tests/nodes/shrink_hard_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16287022, sign: true }); - data.append(FP8x23 { mag: 10799553, sign: false }); + data.append(FP8x23 { mag: 24359422, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 17585288, sign: true }); + data.append(FP8x23 { mag: 24476144, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 22747410, sign: false }); + data.append(FP8x23 { mag: 15295379, sign: false }); + data.append(FP8x23 { mag: 20023509, sign: false }); + data.append(FP8x23 { mag: 22548090, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 21293057, sign: true }); + data.append(FP8x23 { mag: 21744823, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8554184, sign: true }); - data.append(FP8x23 { mag: 12577394, sign: false }); - data.append(FP8x23 { mag: 14241673, sign: true }); + data.append(FP8x23 { mag: 22241666, sign: true }); + data.append(FP8x23 { mag: 18004240, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16672164, sign: false }); - data.append(FP8x23 { mag: 23534429, sign: false }); - data.append(FP8x23 { mag: 22979924, sign: false }); - data.append(FP8x23 { mag: 12554544, sign: true }); - data.append(FP8x23 { mag: 8831121, sign: false }); - data.append(FP8x23 { mag: 12310986, sign: false }); - data.append(FP8x23 { mag: 16220051, sign: false }); + data.append(FP8x23 { mag: 16034040, sign: false }); + data.append(FP8x23 { mag: 16596277, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 24795265, sign: false }); + data.append(FP8x23 { mag: 12351379, sign: false }); + data.append(FP8x23 { mag: 16444516, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 12210140, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 15465976, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 10988354, sign: true }); + data.append(FP8x23 { mag: 10264893, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_soft_fp16x16.cairo b/tests/nodes/shrink_soft_fp16x16.cairo index 74196a9b5..924ecfde5 100644 --- a/tests/nodes/shrink_soft_fp16x16.cairo +++ b/tests/nodes/shrink_soft_fp16x16.cairo @@ -2,12 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::FP16x16Tensor; -use orion::operators::tensor::FP16x16TensorPartialEq; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; use orion::utils::{assert_eq, assert_seq_eq}; -use core::array::{ArrayTrait, SpanTrait}; -use orion::numbers::FixedTrait; +use orion::numbers::{FixedTrait, FP16x16}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] @@ -15,11 +15,7 @@ fn test_shrink_soft_fp16x16() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = TensorTrait::shrink( - input_0, - Option::Some(FixedTrait::new(65536, false)), - Option::Some(FixedTrait::new(65536, false)) - ); + let y = TensorTrait::shrink(input_0, Option::Some(FixedTrait::new(65536, false)), Option::Some(FixedTrait::new(65536, false))); assert_eq(y, z); } diff --git a/tests/nodes/shrink_soft_fp16x16/input_0.cairo b/tests/nodes/shrink_soft_fp16x16/input_0.cairo index 384760b5a..a790e8958 100644 --- a/tests/nodes/shrink_soft_fp16x16/input_0.cairo +++ b/tests/nodes/shrink_soft_fp16x16/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 78056, sign: true }); - data.append(FP16x16 { mag: 31456, sign: true }); - data.append(FP16x16 { mag: 172639, sign: true }); - data.append(FP16x16 { mag: 78597, sign: false }); - data.append(FP16x16 { mag: 62154, sign: false }); - data.append(FP16x16 { mag: 171656, sign: false }); - data.append(FP16x16 { mag: 157535, sign: false }); - data.append(FP16x16 { mag: 49284, sign: false }); - data.append(FP16x16 { mag: 97008, sign: false }); - data.append(FP16x16 { mag: 123759, sign: true }); - data.append(FP16x16 { mag: 190267, sign: false }); - data.append(FP16x16 { mag: 107363, sign: false }); - data.append(FP16x16 { mag: 7956, sign: true }); - data.append(FP16x16 { mag: 68542, sign: false }); - data.append(FP16x16 { mag: 116678, sign: false }); - data.append(FP16x16 { mag: 85597, sign: false }); - data.append(FP16x16 { mag: 19210, sign: true }); - data.append(FP16x16 { mag: 99774, sign: false }); - data.append(FP16x16 { mag: 173484, sign: false }); - data.append(FP16x16 { mag: 127017, sign: true }); - data.append(FP16x16 { mag: 83696, sign: false }); - data.append(FP16x16 { mag: 16087, sign: true }); - data.append(FP16x16 { mag: 80426, sign: false }); - data.append(FP16x16 { mag: 187986, sign: false }); - data.append(FP16x16 { mag: 45262, sign: true }); - data.append(FP16x16 { mag: 46955, sign: false }); - data.append(FP16x16 { mag: 38631, sign: true }); + data.append(FP16x16 { mag: 196450, sign: false }); + data.append(FP16x16 { mag: 110458, sign: true }); + data.append(FP16x16 { mag: 25601, sign: true }); + data.append(FP16x16 { mag: 88269, sign: false }); + data.append(FP16x16 { mag: 9547, sign: false }); + data.append(FP16x16 { mag: 15522, sign: true }); + data.append(FP16x16 { mag: 59558, sign: true }); + data.append(FP16x16 { mag: 141551, sign: true }); + data.append(FP16x16 { mag: 136437, sign: false }); + data.append(FP16x16 { mag: 30273, sign: false }); + data.append(FP16x16 { mag: 157482, sign: false }); + data.append(FP16x16 { mag: 180474, sign: false }); + data.append(FP16x16 { mag: 16595, sign: false }); + data.append(FP16x16 { mag: 52197, sign: true }); + data.append(FP16x16 { mag: 90707, sign: false }); + data.append(FP16x16 { mag: 61283, sign: true }); + data.append(FP16x16 { mag: 12204, sign: true }); + data.append(FP16x16 { mag: 9568, sign: true }); + data.append(FP16x16 { mag: 98355, sign: false }); + data.append(FP16x16 { mag: 125547, sign: false }); + data.append(FP16x16 { mag: 108859, sign: true }); + data.append(FP16x16 { mag: 120511, sign: true }); + data.append(FP16x16 { mag: 109130, sign: true }); + data.append(FP16x16 { mag: 141659, sign: true }); + data.append(FP16x16 { mag: 25063, sign: false }); + data.append(FP16x16 { mag: 71249, sign: false }); + data.append(FP16x16 { mag: 47160, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_soft_fp16x16/output_0.cairo b/tests/nodes/shrink_soft_fp16x16/output_0.cairo index 5163b0565..0e9e88229 100644 --- a/tests/nodes/shrink_soft_fp16x16/output_0.cairo +++ b/tests/nodes/shrink_soft_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 12520, sign: true }); + data.append(FP16x16 { mag: 130914, sign: false }); + data.append(FP16x16 { mag: 44922, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 107103, sign: true }); - data.append(FP16x16 { mag: 13061, sign: false }); + data.append(FP16x16 { mag: 22733, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 106120, sign: false }); - data.append(FP16x16 { mag: 91999, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 31472, sign: false }); - data.append(FP16x16 { mag: 58223, sign: true }); - data.append(FP16x16 { mag: 124731, sign: false }); - data.append(FP16x16 { mag: 41827, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3006, sign: false }); - data.append(FP16x16 { mag: 51142, sign: false }); - data.append(FP16x16 { mag: 20061, sign: false }); + data.append(FP16x16 { mag: 76015, sign: true }); + data.append(FP16x16 { mag: 70901, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 34238, sign: false }); - data.append(FP16x16 { mag: 107948, sign: false }); - data.append(FP16x16 { mag: 61481, sign: true }); - data.append(FP16x16 { mag: 18160, sign: false }); + data.append(FP16x16 { mag: 91946, sign: false }); + data.append(FP16x16 { mag: 114938, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 14890, sign: false }); - data.append(FP16x16 { mag: 122450, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 25171, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 32819, sign: false }); + data.append(FP16x16 { mag: 60011, sign: false }); + data.append(FP16x16 { mag: 43323, sign: true }); + data.append(FP16x16 { mag: 54975, sign: true }); + data.append(FP16x16 { mag: 43594, sign: true }); + data.append(FP16x16 { mag: 76123, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5713, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_soft_fp8x23.cairo b/tests/nodes/shrink_soft_fp8x23.cairo index a1b21f0a3..01a314e10 100644 --- a/tests/nodes/shrink_soft_fp8x23.cairo +++ b/tests/nodes/shrink_soft_fp8x23.cairo @@ -2,12 +2,12 @@ mod input_0; mod output_0; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::operators::tensor::FP8x23Tensor; -use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::numbers::FixedTrait; +use orion::numbers::{FixedTrait, FP8x23}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; #[test] #[available_gas(2000000000)] @@ -15,11 +15,7 @@ fn test_shrink_soft_fp8x23() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = TensorTrait::shrink( - input_0, - Option::Some(FixedTrait::new(8388608, false)), - Option::Some(FixedTrait::new(8388608, false)) - ); + let y = TensorTrait::shrink(input_0, Option::Some(FixedTrait::new(8388608, false)), Option::Some(FixedTrait::new(8388608, false))); assert_eq(y, z); } diff --git a/tests/nodes/shrink_soft_fp8x23/input_0.cairo b/tests/nodes/shrink_soft_fp8x23/input_0.cairo index 8fc7a947b..2d49d4619 100644 --- a/tests/nodes/shrink_soft_fp8x23/input_0.cairo +++ b/tests/nodes/shrink_soft_fp8x23/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 13404706, sign: true }); - data.append(FP8x23 { mag: 1642563, sign: true }); - data.append(FP8x23 { mag: 16689459, sign: false }); - data.append(FP8x23 { mag: 2347829, sign: false }); - data.append(FP8x23 { mag: 3467112, sign: false }); - data.append(FP8x23 { mag: 592703, sign: true }); - data.append(FP8x23 { mag: 1941576, sign: false }); - data.append(FP8x23 { mag: 4972, sign: true }); - data.append(FP8x23 { mag: 21738998, sign: false }); - data.append(FP8x23 { mag: 11513586, sign: true }); - data.append(FP8x23 { mag: 23646070, sign: false }); - data.append(FP8x23 { mag: 13206001, sign: true }); - data.append(FP8x23 { mag: 10769444, sign: false }); - data.append(FP8x23 { mag: 10345798, sign: false }); - data.append(FP8x23 { mag: 1337911, sign: true }); - data.append(FP8x23 { mag: 23240711, sign: false }); - data.append(FP8x23 { mag: 3398664, sign: false }); - data.append(FP8x23 { mag: 13332160, sign: true }); - data.append(FP8x23 { mag: 2545195, sign: false }); - data.append(FP8x23 { mag: 21250720, sign: true }); - data.append(FP8x23 { mag: 16789138, sign: true }); - data.append(FP8x23 { mag: 23029037, sign: true }); - data.append(FP8x23 { mag: 19022158, sign: false }); - data.append(FP8x23 { mag: 20748602, sign: false }); - data.append(FP8x23 { mag: 21590667, sign: false }); - data.append(FP8x23 { mag: 1180061, sign: false }); - data.append(FP8x23 { mag: 8043052, sign: false }); + data.append(FP8x23 { mag: 15286254, sign: false }); + data.append(FP8x23 { mag: 8658111, sign: false }); + data.append(FP8x23 { mag: 20563043, sign: true }); + data.append(FP8x23 { mag: 1544545, sign: true }); + data.append(FP8x23 { mag: 17891099, sign: false }); + data.append(FP8x23 { mag: 12585699, sign: true }); + data.append(FP8x23 { mag: 15983949, sign: false }); + data.append(FP8x23 { mag: 2040356, sign: false }); + data.append(FP8x23 { mag: 16325343, sign: false }); + data.append(FP8x23 { mag: 8838001, sign: false }); + data.append(FP8x23 { mag: 12943137, sign: true }); + data.append(FP8x23 { mag: 11093722, sign: false }); + data.append(FP8x23 { mag: 2693368, sign: false }); + data.append(FP8x23 { mag: 20149881, sign: false }); + data.append(FP8x23 { mag: 916303, sign: false }); + data.append(FP8x23 { mag: 23170082, sign: true }); + data.append(FP8x23 { mag: 21298676, sign: false }); + data.append(FP8x23 { mag: 24498513, sign: true }); + data.append(FP8x23 { mag: 10219527, sign: true }); + data.append(FP8x23 { mag: 13912176, sign: false }); + data.append(FP8x23 { mag: 11208649, sign: true }); + data.append(FP8x23 { mag: 17452815, sign: false }); + data.append(FP8x23 { mag: 24243821, sign: true }); + data.append(FP8x23 { mag: 190936, sign: false }); + data.append(FP8x23 { mag: 11213942, sign: false }); + data.append(FP8x23 { mag: 21569767, sign: false }); + data.append(FP8x23 { mag: 10078186, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/shrink_soft_fp8x23/output_0.cairo b/tests/nodes/shrink_soft_fp8x23/output_0.cairo index 286d921c5..6d9b218e2 100644 --- a/tests/nodes/shrink_soft_fp8x23/output_0.cairo +++ b/tests/nodes/shrink_soft_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 5016098, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8300851, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 13350390, sign: false }); - data.append(FP8x23 { mag: 3124978, sign: true }); - data.append(FP8x23 { mag: 15257462, sign: false }); - data.append(FP8x23 { mag: 4817393, sign: true }); - data.append(FP8x23 { mag: 2380836, sign: false }); - data.append(FP8x23 { mag: 1957190, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 14852103, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 4943552, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 12862112, sign: true }); - data.append(FP8x23 { mag: 8400530, sign: true }); - data.append(FP8x23 { mag: 14640429, sign: true }); - data.append(FP8x23 { mag: 10633550, sign: false }); - data.append(FP8x23 { mag: 12359994, sign: false }); - data.append(FP8x23 { mag: 13202059, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 6897646, sign: false }); + data.append(FP8x23 { mag: 269503, sign: false }); + data.append(FP8x23 { mag: 12174435, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 9502491, sign: false }); + data.append(FP8x23 { mag: 4197091, sign: true }); + data.append(FP8x23 { mag: 7595341, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 7936735, sign: false }); + data.append(FP8x23 { mag: 449393, sign: false }); + data.append(FP8x23 { mag: 4554529, sign: true }); + data.append(FP8x23 { mag: 2705114, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 11761273, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 14781474, sign: true }); + data.append(FP8x23 { mag: 12910068, sign: false }); + data.append(FP8x23 { mag: 16109905, sign: true }); + data.append(FP8x23 { mag: 1830919, sign: true }); + data.append(FP8x23 { mag: 5523568, sign: false }); + data.append(FP8x23 { mag: 2820041, sign: true }); + data.append(FP8x23 { mag: 9064207, sign: false }); + data.append(FP8x23 { mag: 15855213, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 2825334, sign: false }); + data.append(FP8x23 { mag: 13181159, sign: false }); + data.append(FP8x23 { mag: 1689578, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sigmoid_fp16x16.cairo b/tests/nodes/sigmoid_fp16x16.cairo index 1172a58f1..38c7fdb76 100644 --- a/tests/nodes/sigmoid_fp16x16.cairo +++ b/tests/nodes/sigmoid_fp16x16.cairo @@ -3,10 +3,10 @@ mod output_0; use orion::operators::nn::NNTrait; -use orion::numbers::FixedTrait; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sigmoid_fp16x16/input_0.cairo b/tests/nodes/sigmoid_fp16x16/input_0.cairo index eff6c1a79..44799cd2f 100644 --- a/tests/nodes/sigmoid_fp16x16/input_0.cairo +++ b/tests/nodes/sigmoid_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 42997, sign: true }); - data.append(FP16x16 { mag: 108408, sign: true }); - data.append(FP16x16 { mag: 87345, sign: false }); - data.append(FP16x16 { mag: 169098, sign: false }); + data.append(FP16x16 { mag: 82699, sign: false }); + data.append(FP16x16 { mag: 170070, sign: false }); + data.append(FP16x16 { mag: 142885, sign: true }); + data.append(FP16x16 { mag: 13560, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sigmoid_fp16x16/output_0.cairo b/tests/nodes/sigmoid_fp16x16/output_0.cairo index 88663e229..89712367d 100644 --- a/tests/nodes/sigmoid_fp16x16/output_0.cairo +++ b/tests/nodes/sigmoid_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 22388, sign: false }); - data.append(FP16x16 { mag: 10521, sign: false }); - data.append(FP16x16 { mag: 51858, sign: false }); - data.append(FP16x16 { mag: 60920, sign: false }); + data.append(FP16x16 { mag: 51075, sign: false }); + data.append(FP16x16 { mag: 60984, sign: false }); + data.append(FP16x16 { mag: 6654, sign: false }); + data.append(FP16x16 { mag: 29390, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sigmoid_fp8x23.cairo b/tests/nodes/sigmoid_fp8x23.cairo index 97fdf368b..dd1b0af82 100644 --- a/tests/nodes/sigmoid_fp8x23.cairo +++ b/tests/nodes/sigmoid_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sigmoid_fp8x23/input_0.cairo b/tests/nodes/sigmoid_fp8x23/input_0.cairo index 394e44613..c41c572b7 100644 --- a/tests/nodes/sigmoid_fp8x23/input_0.cairo +++ b/tests/nodes/sigmoid_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 20907772, sign: true }); - data.append(FP8x23 { mag: 24683986, sign: true }); - data.append(FP8x23 { mag: 21494604, sign: true }); - data.append(FP8x23 { mag: 1609367, sign: false }); + data.append(FP8x23 { mag: 22414770, sign: false }); + data.append(FP8x23 { mag: 6589932, sign: false }); + data.append(FP8x23 { mag: 24613134, sign: true }); + data.append(FP8x23 { mag: 21879416, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sigmoid_fp8x23/output_0.cairo b/tests/nodes/sigmoid_fp8x23/output_0.cairo index 0d5cca7f1..2fae8ac9b 100644 --- a/tests/nodes/sigmoid_fp8x23/output_0.cairo +++ b/tests/nodes/sigmoid_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 640827, sign: false }); - data.append(FP8x23 { mag: 420179, sign: false }); - data.append(FP8x23 { mag: 600630, sign: false }); - data.append(FP8x23 { mag: 4595416, sign: false }); + data.append(FP8x23 { mag: 7846343, sign: false }); + data.append(FP8x23 { mag: 5761981, sign: false }); + data.append(FP8x23 { mag: 423563, sign: false }); + data.append(FP8x23 { mag: 575547, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sign_fP16x16.cairo b/tests/nodes/sign_fP16x16.cairo index 31cde6c80..2e31ffd2b 100644 --- a/tests/nodes/sign_fP16x16.cairo +++ b/tests/nodes/sign_fP16x16.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sign_fP16x16/input_0.cairo b/tests/nodes/sign_fP16x16/input_0.cairo index 2ea7f3ed2..7fa6b9daf 100644 --- a/tests/nodes/sign_fP16x16/input_0.cairo +++ b/tests/nodes/sign_fP16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/sign_fP16x16/output_0.cairo b/tests/nodes/sign_fP16x16/output_0.cairo index 5ecf13619..5044f0472 100644 --- a/tests/nodes/sign_fP16x16/output_0.cairo +++ b/tests/nodes/sign_fP16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/sign_fP8x23.cairo b/tests/nodes/sign_fP8x23.cairo index aeadf93a1..40bbefa05 100644 --- a/tests/nodes/sign_fP8x23.cairo +++ b/tests/nodes/sign_fP8x23.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sign_fP8x23/input_0.cairo b/tests/nodes/sign_fP8x23/input_0.cairo index 150de5c75..d95454b2c 100644 --- a/tests/nodes/sign_fP8x23/input_0.cairo +++ b/tests/nodes/sign_fP8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/sign_fP8x23/output_0.cairo b/tests/nodes/sign_fP8x23/output_0.cairo index 2b1524a49..d88d33e5b 100644 --- a/tests/nodes/sign_fP8x23/output_0.cairo +++ b/tests/nodes/sign_fP8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/sign_fail.cairo b/tests/nodes/sign_fail.cairo index dc38a643d..9a0a13ac7 100644 --- a/tests/nodes/sign_fail.cairo +++ b/tests/nodes/sign_fail.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[should_panic] diff --git a/tests/nodes/sign_fail/input_0.cairo b/tests/nodes/sign_fail/input_0.cairo index aff2c4be7..115e9e545 100644 --- a/tests/nodes/sign_fail/input_0.cairo +++ b/tests/nodes/sign_fail/input_0.cairo @@ -1,23 +1,22 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(11); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(-5); + data.append(-4); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sign_fail/output_0.cairo b/tests/nodes/sign_fail/output_0.cairo index ffeb83364..41ba552ee 100644 --- a/tests/nodes/sign_fail/output_0.cairo +++ b/tests/nodes/sign_fail/output_0.cairo @@ -1,23 +1,22 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(11); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sign_i32.cairo b/tests/nodes/sign_i32.cairo index b5ed8ef98..f166f4414 100644 --- a/tests/nodes/sign_i32.cairo +++ b/tests/nodes/sign_i32.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sign_i32/input_0.cairo b/tests/nodes/sign_i32/input_0.cairo index aff2c4be7..115e9e545 100644 --- a/tests/nodes/sign_i32/input_0.cairo +++ b/tests/nodes/sign_i32/input_0.cairo @@ -1,23 +1,22 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(11); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(-5); + data.append(-4); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sign_i32/output_0.cairo b/tests/nodes/sign_i32/output_0.cairo index eb607adfe..9b38a866a 100644 --- a/tests/nodes/sign_i32/output_0.cairo +++ b/tests/nodes/sign_i32/output_0.cairo @@ -1,23 +1,22 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(11); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sign_i8.cairo b/tests/nodes/sign_i8.cairo index 23a974005..3924c75d4 100644 --- a/tests/nodes/sign_i8.cairo +++ b/tests/nodes/sign_i8.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sign_i8/input_0.cairo b/tests/nodes/sign_i8/input_0.cairo index ea810555b..b990d073e 100644 --- a/tests/nodes/sign_i8/input_0.cairo +++ b/tests/nodes/sign_i8/input_0.cairo @@ -1,23 +1,22 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(11); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); + data.append(-5); + data.append(-4); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(0); + data.append(1); + data.append(2); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sign_i8/output_0.cairo b/tests/nodes/sign_i8/output_0.cairo index 6221ee240..9d1d87ce8 100644 --- a/tests/nodes/sign_i8/output_0.cairo +++ b/tests/nodes/sign_i8/output_0.cairo @@ -1,23 +1,22 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(11); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sin_fp16x16.cairo b/tests/nodes/sin_fp16x16.cairo index c6b518460..6a074ea69 100644 --- a/tests/nodes/sin_fp16x16.cairo +++ b/tests/nodes/sin_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sin_fp16x16/input_0.cairo b/tests/nodes/sin_fp16x16/input_0.cairo index 87e0efa21..5306b8b8d 100644 --- a/tests/nodes/sin_fp16x16/input_0.cairo +++ b/tests/nodes/sin_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 167356, sign: false }); - data.append(FP16x16 { mag: 369339, sign: false }); - data.append(FP16x16 { mag: 308834, sign: false }); - data.append(FP16x16 { mag: 3145, sign: false }); + data.append(FP16x16 { mag: 87402, sign: true }); + data.append(FP16x16 { mag: 23004, sign: false }); + data.append(FP16x16 { mag: 170290, sign: true }); + data.append(FP16x16 { mag: 102481, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sin_fp16x16/output_0.cairo b/tests/nodes/sin_fp16x16/output_0.cairo index 15861e527..fcdc7400c 100644 --- a/tests/nodes/sin_fp16x16/output_0.cairo +++ b/tests/nodes/sin_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 36348, sign: false }); - data.append(FP16x16 { mag: 39531, sign: true }); - data.append(FP16x16 { mag: 65535, sign: true }); - data.append(FP16x16 { mag: 3144, sign: false }); + data.append(FP16x16 { mag: 63702, sign: true }); + data.append(FP16x16 { mag: 22535, sign: false }); + data.append(FP16x16 { mag: 33872, sign: true }); + data.append(FP16x16 { mag: 65534, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sin_fp8x23.cairo b/tests/nodes/sin_fp8x23.cairo index 8026a6b26..1399c8390 100644 --- a/tests/nodes/sin_fp8x23.cairo +++ b/tests/nodes/sin_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sin_fp8x23/input_0.cairo b/tests/nodes/sin_fp8x23/input_0.cairo index 433d4a03c..50f812b19 100644 --- a/tests/nodes/sin_fp8x23/input_0.cairo +++ b/tests/nodes/sin_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 6647816, sign: true }); - data.append(FP8x23 { mag: 58073960, sign: false }); - data.append(FP8x23 { mag: 41721546, sign: false }); - data.append(FP8x23 { mag: 410451, sign: true }); + data.append(FP8x23 { mag: 11835326, sign: true }); + data.append(FP8x23 { mag: 11653547, sign: false }); + data.append(FP8x23 { mag: 20879804, sign: false }); + data.append(FP8x23 { mag: 17962203, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sin_fp8x23/output_0.cairo b/tests/nodes/sin_fp8x23/output_0.cairo index ac13db289..9af4379a7 100644 --- a/tests/nodes/sin_fp8x23/output_0.cairo +++ b/tests/nodes/sin_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 5973508, sign: true }); - data.append(FP8x23 { mag: 5008092, sign: false }); - data.append(FP8x23 { mag: 8104057, sign: true }); - data.append(FP8x23 { mag: 410287, sign: true }); + data.append(FP8x23 { mag: 8281575, sign: true }); + data.append(FP8x23 { mag: 8250687, sign: false }); + data.append(FP8x23 { mag: 5093524, sign: false }); + data.append(FP8x23 { mag: 7060270, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sinh_fp16x16.cairo b/tests/nodes/sinh_fp16x16.cairo index 3b5079395..b59245e8f 100644 --- a/tests/nodes/sinh_fp16x16.cairo +++ b/tests/nodes/sinh_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sinh_fp16x16/input_0.cairo b/tests/nodes/sinh_fp16x16/input_0.cairo index bbf771c2d..bebe0a19f 100644 --- a/tests/nodes/sinh_fp16x16/input_0.cairo +++ b/tests/nodes/sinh_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 181084, sign: false }); - data.append(FP16x16 { mag: 85235, sign: true }); - data.append(FP16x16 { mag: 59303, sign: true }); - data.append(FP16x16 { mag: 130937, sign: true }); + data.append(FP16x16 { mag: 139868, sign: true }); + data.append(FP16x16 { mag: 29821, sign: true }); + data.append(FP16x16 { mag: 146561, sign: false }); + data.append(FP16x16 { mag: 114680, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sinh_fp16x16/output_0.cairo b/tests/nodes/sinh_fp16x16/output_0.cairo index c7ac78d98..e02f6a4a8 100644 --- a/tests/nodes/sinh_fp16x16/output_0.cairo +++ b/tests/nodes/sinh_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 517281, sign: false }); - data.append(FP16x16 { mag: 111381, sign: true }); - data.append(FP16x16 { mag: 67734, sign: true }); - data.append(FP16x16 { mag: 237186, sign: true }); + data.append(FP16x16 { mag: 273029, sign: true }); + data.append(FP16x16 { mag: 30861, sign: true }); + data.append(FP16x16 { mag: 303180, sign: false }); + data.append(FP16x16 { mag: 182849, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sinh_fp8x23.cairo b/tests/nodes/sinh_fp8x23.cairo index a0651106c..75b051995 100644 --- a/tests/nodes/sinh_fp8x23.cairo +++ b/tests/nodes/sinh_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sinh_fp8x23/input_0.cairo b/tests/nodes/sinh_fp8x23/input_0.cairo index d6751efd5..4eaa0b38b 100644 --- a/tests/nodes/sinh_fp8x23/input_0.cairo +++ b/tests/nodes/sinh_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 20711629, sign: true }); - data.append(FP8x23 { mag: 18228194, sign: false }); - data.append(FP8x23 { mag: 15655651, sign: true }); - data.append(FP8x23 { mag: 13406669, sign: false }); + data.append(FP8x23 { mag: 23167546, sign: true }); + data.append(FP8x23 { mag: 7575616, sign: true }); + data.append(FP8x23 { mag: 1377178, sign: false }); + data.append(FP8x23 { mag: 6295325, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sinh_fp8x23/output_0.cairo b/tests/nodes/sinh_fp8x23/output_0.cairo index ec7add440..b04b538ee 100644 --- a/tests/nodes/sinh_fp8x23/output_0.cairo +++ b/tests/nodes/sinh_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 49183175, sign: true }); - data.append(FP8x23 { mag: 36366700, sign: false }); - data.append(FP8x23 { mag: 26464518, sign: true }); - data.append(FP8x23 { mag: 19888811, sign: false }); + data.append(FP8x23 { mag: 66122868, sign: true }); + data.append(FP8x23 { mag: 8648159, sign: true }); + data.append(FP8x23 { mag: 1383373, sign: false }); + data.append(FP8x23 { mag: 6903103, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp16x16_2d.cairo b/tests/nodes/slice_fp16x16_2d.cairo index fd2950e0b..5e3d593be 100644 --- a/tests/nodes/slice_fp16x16_2d.cairo +++ b/tests/nodes/slice_fp16x16_2d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_fp16x16_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 2].span(), - array![2, 4].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 1].span()) - ); + let y = input_0.slice(array![0, 2].span(), array![2, 4].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 1].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_fp16x16_2d/input_0.cairo b/tests/nodes/slice_fp16x16_2d/input_0.cairo index 5c820e63f..cc68626e2 100644 --- a/tests/nodes/slice_fp16x16_2d/input_0.cairo +++ b/tests/nodes/slice_fp16x16_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp16x16_2d/output_0.cairo b/tests/nodes/slice_fp16x16_2d/output_0.cairo index 07269f6ad..fcd0f4181 100644 --- a/tests/nodes/slice_fp16x16_2d/output_0.cairo +++ b/tests/nodes/slice_fp16x16_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp16x16_3d.cairo b/tests/nodes/slice_fp16x16_3d.cairo index ecb4e3bb2..d0b5462c4 100644 --- a/tests/nodes/slice_fp16x16_3d.cairo +++ b/tests/nodes/slice_fp16x16_3d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_fp16x16_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 0].span(), - array![3, 10].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 3].span()) - ); + let y = input_0.slice(array![0, 0].span(), array![3, 10].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 3].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_fp16x16_3d/input_0.cairo b/tests/nodes/slice_fp16x16_3d/input_0.cairo index 04bf9b5bc..6dd3de97d 100644 --- a/tests/nodes/slice_fp16x16_3d/input_0.cairo +++ b/tests/nodes/slice_fp16x16_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: true }); data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: true }); data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: true }); data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: true }); data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: true }); data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: false }); data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: false }); data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: true }); data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: false }); data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: true }); data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: false }); data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: false }); data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 983040, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: true }); data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: true }); data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp16x16_3d/output_0.cairo b/tests/nodes/slice_fp16x16_3d/output_0.cairo index c319368a8..8c998664a 100644 --- a/tests/nodes/slice_fp16x16_3d/output_0.cairo +++ b/tests/nodes/slice_fp16x16_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,65 +10,65 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp8x23_2d.cairo b/tests/nodes/slice_fp8x23_2d.cairo index f03f1b95c..6a80a5422 100644 --- a/tests/nodes/slice_fp8x23_2d.cairo +++ b/tests/nodes/slice_fp8x23_2d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_fp8x23_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 2].span(), - array![2, 4].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 1].span()) - ); + let y = input_0.slice(array![0, 2].span(), array![2, 4].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 1].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_fp8x23_2d/input_0.cairo b/tests/nodes/slice_fp8x23_2d/input_0.cairo index 3e9753ab5..71fd3b9c9 100644 --- a/tests/nodes/slice_fp8x23_2d/input_0.cairo +++ b/tests/nodes/slice_fp8x23_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp8x23_2d/output_0.cairo b/tests/nodes/slice_fp8x23_2d/output_0.cairo index 33a1a760e..6acf0de9c 100644 --- a/tests/nodes/slice_fp8x23_2d/output_0.cairo +++ b/tests/nodes/slice_fp8x23_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp8x23_3d.cairo b/tests/nodes/slice_fp8x23_3d.cairo index 19a40a65e..5c2af30b7 100644 --- a/tests/nodes/slice_fp8x23_3d.cairo +++ b/tests/nodes/slice_fp8x23_3d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_fp8x23_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 0].span(), - array![3, 10].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 3].span()) - ); + let y = input_0.slice(array![0, 0].span(), array![3, 10].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 3].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_fp8x23_3d/input_0.cairo b/tests/nodes/slice_fp8x23_3d/input_0.cairo index 87d515b5e..f15448d53 100644 --- a/tests/nodes/slice_fp8x23_3d/input_0.cairo +++ b/tests/nodes/slice_fp8x23_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: false }); data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: true }); data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: true }); data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: false }); data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: false }); data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: true }); data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: false }); data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: true }); data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: true }); data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: true }); data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: true }); data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: false }); data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: true }); data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: false }); data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: false }); data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_fp8x23_3d/output_0.cairo b/tests/nodes/slice_fp8x23_3d/output_0.cairo index e3aef0694..91b77044a 100644 --- a/tests/nodes/slice_fp8x23_3d/output_0.cairo +++ b/tests/nodes/slice_fp8x23_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,65 +10,65 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i32_2d.cairo b/tests/nodes/slice_i32_2d.cairo index 4ed18508e..082b8f15f 100644 --- a/tests/nodes/slice_i32_2d.cairo +++ b/tests/nodes/slice_i32_2d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_i32_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 2].span(), - array![2, 4].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 1].span()) - ); + let y = input_0.slice(array![0, 2].span(), array![2, 4].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 1].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_i32_2d/input_0.cairo b/tests/nodes/slice_i32_2d/input_0.cairo index c199d9adf..2ed45631c 100644 --- a/tests/nodes/slice_i32_2d/input_0.cairo +++ b/tests/nodes/slice_i32_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 73, sign: false }); + data.append(82); + data.append(-24); + data.append(-112); + data.append(-21); + data.append(-51); + data.append(56); + data.append(13); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i32_2d/output_0.cairo b/tests/nodes/slice_i32_2d/output_0.cairo index c46e79e08..374716542 100644 --- a/tests/nodes/slice_i32_2d/output_0.cairo +++ b/tests/nodes/slice_i32_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 73, sign: false }); + data.append(-112); + data.append(-21); + data.append(13); + data.append(9); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i32_3d.cairo b/tests/nodes/slice_i32_3d.cairo index df2cad605..1683e6987 100644 --- a/tests/nodes/slice_i32_3d.cairo +++ b/tests/nodes/slice_i32_3d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_i32_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 0].span(), - array![3, 10].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 3].span()) - ); + let y = input_0.slice(array![0, 0].span(), array![3, 10].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 3].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_i32_3d/input_0.cairo b/tests/nodes/slice_i32_3d/input_0.cairo index 7bc84e6f2..f94ab09e8 100644 --- a/tests/nodes/slice_i32_3d/input_0.cairo +++ b/tests/nodes/slice_i32_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 99, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 79, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 52, sign: true }); + data.append(20); + data.append(87); + data.append(-80); + data.append(62); + data.append(-11); + data.append(-65); + data.append(-122); + data.append(48); + data.append(-30); + data.append(100); + data.append(-44); + data.append(-50); + data.append(126); + data.append(-17); + data.append(-120); + data.append(39); + data.append(-110); + data.append(22); + data.append(-1); + data.append(-77); + data.append(-120); + data.append(93); + data.append(92); + data.append(-106); + data.append(-46); + data.append(55); + data.append(70); + data.append(32); + data.append(-19); + data.append(-91); + data.append(-19); + data.append(32); + data.append(116); + data.append(-40); + data.append(-78); + data.append(-104); + data.append(-120); + data.append(-65); + data.append(-23); + data.append(-3); + data.append(-68); + data.append(73); + data.append(-40); + data.append(112); + data.append(49); + data.append(37); + data.append(58); + data.append(-71); + data.append(-83); + data.append(101); + data.append(116); + data.append(-91); + data.append(-8); + data.append(57); + data.append(-77); + data.append(-75); + data.append(-101); + data.append(66); + data.append(81); + data.append(-62); + data.append(38); + data.append(109); + data.append(103); + data.append(-111); + data.append(-77); + data.append(-121); + data.append(-16); + data.append(59); + data.append(113); + data.append(85); + data.append(-21); + data.append(108); + data.append(-120); + data.append(108); + data.append(-112); + data.append(-88); + data.append(123); + data.append(5); + data.append(-54); + data.append(71); + data.append(-64); + data.append(-49); + data.append(53); + data.append(-110); + data.append(17); + data.append(16); + data.append(-62); + data.append(116); + data.append(-51); + data.append(-11); + data.append(113); + data.append(-19); + data.append(-16); + data.append(-34); + data.append(-51); + data.append(78); + data.append(-127); + data.append(-92); + data.append(39); + data.append(109); + data.append(-36); + data.append(-18); + data.append(89); + data.append(11); + data.append(91); + data.append(36); + data.append(-124); + data.append(-122); + data.append(-114); + data.append(113); + data.append(57); + data.append(-127); + data.append(67); + data.append(11); + data.append(-15); + data.append(94); + data.append(-118); + data.append(48); + data.append(-108); + data.append(97); + data.append(124); + data.append(-5); + data.append(-105); + data.append(-48); + data.append(-65); + data.append(-86); + data.append(-19); + data.append(91); + data.append(108); + data.append(-82); + data.append(-57); + data.append(94); + data.append(109); + data.append(-1); + data.append(36); + data.append(104); + data.append(-84); + data.append(3); + data.append(-70); + data.append(52); + data.append(-117); + data.append(-120); + data.append(-20); + data.append(68); + data.append(-94); + data.append(62); + data.append(-22); + data.append(6); + data.append(73); + data.append(123); + data.append(-81); + data.append(-66); + data.append(-62); + data.append(77); + data.append(99); + data.append(74); + data.append(-117); + data.append(-93); + data.append(17); + data.append(-22); + data.append(74); + data.append(-41); + data.append(84); + data.append(52); + data.append(43); + data.append(-32); + data.append(-91); + data.append(58); + data.append(-13); + data.append(-46); + data.append(-113); + data.append(34); + data.append(-46); + data.append(108); + data.append(-29); + data.append(58); + data.append(7); + data.append(-35); + data.append(-13); + data.append(-60); + data.append(-75); + data.append(19); + data.append(-115); + data.append(126); + data.append(45); + data.append(-123); + data.append(79); + data.append(18); + data.append(-76); + data.append(-15); + data.append(-4); + data.append(93); + data.append(-62); + data.append(54); + data.append(120); + data.append(-121); + data.append(-107); + data.append(-95); + data.append(104); + data.append(103); + data.append(-69); + data.append(-12); + data.append(-57); + data.append(-45); + data.append(-64); + data.append(112); + data.append(41); + data.append(89); + data.append(68); + data.append(103); + data.append(-23); + data.append(-11); + data.append(11); + data.append(-58); + data.append(-62); + data.append(-19); + data.append(-26); + data.append(-104); + data.append(67); + data.append(-71); + data.append(36); + data.append(89); + data.append(-15); + data.append(73); + data.append(24); + data.append(76); + data.append(-3); + data.append(6); + data.append(-53); + data.append(101); + data.append(-3); + data.append(-45); + data.append(-46); + data.append(-127); + data.append(-122); + data.append(86); + data.append(-127); + data.append(-123); + data.append(-36); + data.append(-21); + data.append(-80); + data.append(115); + data.append(-106); + data.append(-49); + data.append(44); + data.append(-106); + data.append(-87); + data.append(103); + data.append(64); + data.append(14); + data.append(-63); + data.append(110); + data.append(-93); + data.append(79); + data.append(83); + data.append(112); + data.append(25); + data.append(67); + data.append(86); + data.append(70); + data.append(124); + data.append(-63); + data.append(-58); + data.append(90); + data.append(-28); + data.append(-93); + data.append(-26); + data.append(-116); + data.append(115); + data.append(76); + data.append(-37); + data.append(10); + data.append(-80); + data.append(-70); + data.append(100); + data.append(123); + data.append(-107); + data.append(-58); + data.append(47); + data.append(111); + data.append(93); + data.append(77); + data.append(-120); + data.append(11); + data.append(68); + data.append(52); + data.append(-45); + data.append(109); + data.append(-107); + data.append(-17); + data.append(-59); + data.append(92); + data.append(61); + data.append(-59); + data.append(126); + data.append(-39); + data.append(125); + data.append(-81); + data.append(-53); + data.append(-59); + data.append(0); + data.append(13); + data.append(-51); + data.append(-12); + data.append(-89); + data.append(-110); + data.append(12); + data.append(-56); + data.append(-78); + data.append(-83); + data.append(-72); + data.append(-122); + data.append(-29); + data.append(29); + data.append(1); + data.append(34); + data.append(-45); + data.append(-70); + data.append(4); + data.append(11); + data.append(27); + data.append(115); + data.append(-18); + data.append(-96); + data.append(-53); + data.append(71); + data.append(80); + data.append(-42); + data.append(-88); + data.append(12); + data.append(-69); + data.append(1); + data.append(-78); + data.append(108); + data.append(76); + data.append(-111); + data.append(53); + data.append(19); + data.append(80); + data.append(64); + data.append(-71); + data.append(99); + data.append(76); + data.append(-11); + data.append(-4); + data.append(-84); + data.append(35); + data.append(-38); + data.append(69); + data.append(6); + data.append(94); + data.append(94); + data.append(23); + data.append(12); + data.append(-102); + data.append(124); + data.append(-87); + data.append(9); + data.append(0); + data.append(47); + data.append(-62); + data.append(51); + data.append(24); + data.append(82); + data.append(-75); + data.append(89); + data.append(44); + data.append(-100); + data.append(5); + data.append(-113); + data.append(-121); + data.append(80); + data.append(77); + data.append(-38); + data.append(-6); + data.append(-56); + data.append(-121); + data.append(16); + data.append(-38); + data.append(22); + data.append(107); + data.append(60); + data.append(-86); + data.append(36); + data.append(75); + data.append(18); + data.append(-108); + data.append(44); + data.append(24); + data.append(-68); + data.append(32); + data.append(119); + data.append(-96); + data.append(120); + data.append(110); + data.append(-91); + data.append(97); + data.append(60); + data.append(-110); + data.append(-117); + data.append(50); + data.append(-57); + data.append(67); + data.append(14); + data.append(-14); + data.append(14); + data.append(125); + data.append(-2); + data.append(-107); + data.append(109); + data.append(-61); + data.append(-5); + data.append(-78); + data.append(107); + data.append(-11); + data.append(-107); + data.append(-94); + data.append(3); + data.append(115); + data.append(-124); + data.append(-66); + data.append(98); + data.append(49); + data.append(-95); + data.append(-97); + data.append(17); + data.append(72); + data.append(49); + data.append(73); + data.append(30); + data.append(67); + data.append(58); + data.append(95); + data.append(-60); + data.append(-102); + data.append(-13); + data.append(90); + data.append(52); + data.append(123); + data.append(-100); + data.append(-7); + data.append(18); + data.append(-50); + data.append(-48); + data.append(-49); + data.append(-69); + data.append(-64); + data.append(-26); + data.append(-33); + data.append(56); + data.append(-58); + data.append(-21); + data.append(83); + data.append(-71); + data.append(-66); + data.append(103); + data.append(20); + data.append(24); + data.append(-61); + data.append(-3); + data.append(-15); + data.append(-47); + data.append(-77); + data.append(77); + data.append(-98); + data.append(69); + data.append(29); + data.append(-52); + data.append(-77); + data.append(100); + data.append(83); + data.append(30); + data.append(-87); + data.append(-52); + data.append(-11); + data.append(89); + data.append(14); + data.append(-117); + data.append(64); + data.append(-76); + data.append(-20); + data.append(106); + data.append(40); + data.append(-33); + data.append(-111); + data.append(-29); + data.append(71); + data.append(87); + data.append(49); + data.append(57); + data.append(94); + data.append(-4); + data.append(-37); + data.append(77); + data.append(16); + data.append(-122); + data.append(35); + data.append(51); + data.append(16); + data.append(108); + data.append(-125); + data.append(70); + data.append(81); + data.append(-113); + data.append(34); + data.append(-120); + data.append(54); + data.append(33); + data.append(-8); + data.append(59); + data.append(28); + data.append(-103); + data.append(-74); + data.append(41); + data.append(95); + data.append(-73); + data.append(74); + data.append(-114); + data.append(98); + data.append(27); + data.append(125); + data.append(74); + data.append(-57); + data.append(53); + data.append(-7); + data.append(115); + data.append(-119); + data.append(-88); + data.append(5); + data.append(-123); + data.append(54); + data.append(-28); + data.append(-52); + data.append(65); + data.append(-102); + data.append(-25); + data.append(83); + data.append(-100); + data.append(-38); + data.append(-51); + data.append(122); + data.append(-112); + data.append(26); + data.append(-120); + data.append(85); + data.append(-81); + data.append(88); + data.append(-4); + data.append(58); + data.append(-33); + data.append(57); + data.append(-61); + data.append(-12); + data.append(34); + data.append(23); + data.append(-19); + data.append(43); + data.append(110); + data.append(94); + data.append(-84); + data.append(33); + data.append(-90); + data.append(-85); + data.append(-8); + data.append(-79); + data.append(-121); + data.append(106); + data.append(-74); + data.append(68); + data.append(-29); + data.append(94); + data.append(-30); + data.append(67); + data.append(-61); + data.append(-82); + data.append(57); + data.append(-34); + data.append(30); + data.append(-121); + data.append(-24); + data.append(50); + data.append(20); + data.append(-32); + data.append(12); + data.append(1); + data.append(67); + data.append(48); + data.append(32); + data.append(106); + data.append(-1); + data.append(-24); + data.append(-56); + data.append(-17); + data.append(70); + data.append(-67); + data.append(-88); + data.append(-105); + data.append(-85); + data.append(84); + data.append(92); + data.append(82); + data.append(-7); + data.append(-28); + data.append(-16); + data.append(49); + data.append(116); + data.append(21); + data.append(-105); + data.append(99); + data.append(-16); + data.append(-17); + data.append(14); + data.append(46); + data.append(-31); + data.append(60); + data.append(117); + data.append(-120); + data.append(-105); + data.append(-56); + data.append(-90); + data.append(-111); + data.append(80); + data.append(-79); + data.append(92); + data.append(-4); + data.append(80); + data.append(103); + data.append(28); + data.append(-26); + data.append(83); + data.append(99); + data.append(29); + data.append(13); + data.append(-23); + data.append(37); + data.append(126); + data.append(59); + data.append(53); + data.append(31); + data.append(-23); + data.append(-106); + data.append(92); + data.append(102); + data.append(-113); + data.append(116); + data.append(-126); + data.append(-90); + data.append(-86); + data.append(58); + data.append(126); + data.append(83); + data.append(26); + data.append(34); + data.append(-68); + data.append(-23); + data.append(-101); + data.append(-110); + data.append(57); + data.append(45); + data.append(-12); + data.append(-109); + data.append(-4); + data.append(77); + data.append(15); + data.append(-40); + data.append(-121); + data.append(39); + data.append(39); + data.append(-10); + data.append(12); + data.append(-107); + data.append(-116); + data.append(66); + data.append(-122); + data.append(111); + data.append(93); + data.append(-103); + data.append(82); + data.append(62); + data.append(18); + data.append(-65); + data.append(0); + data.append(-101); + data.append(-27); + data.append(-99); + data.append(125); + data.append(12); + data.append(-109); + data.append(-94); + data.append(86); + data.append(28); + data.append(17); + data.append(-47); + data.append(88); + data.append(80); + data.append(-120); + data.append(-22); + data.append(-92); + data.append(-111); + data.append(39); + data.append(106); + data.append(79); + data.append(8); + data.append(-111); + data.append(32); + data.append(117); + data.append(-20); + data.append(67); + data.append(89); + data.append(63); + data.append(76); + data.append(121); + data.append(63); + data.append(36); + data.append(5); + data.append(-109); + data.append(89); + data.append(-56); + data.append(122); + data.append(-66); + data.append(-93); + data.append(-58); + data.append(106); + data.append(17); + data.append(27); + data.append(-88); + data.append(100); + data.append(-58); + data.append(-62); + data.append(-110); + data.append(102); + data.append(123); + data.append(17); + data.append(-34); + data.append(126); + data.append(-76); + data.append(50); + data.append(-70); + data.append(-96); + data.append(124); + data.append(115); + data.append(30); + data.append(102); + data.append(122); + data.append(-64); + data.append(-83); + data.append(-106); + data.append(-106); + data.append(104); + data.append(-4); + data.append(29); + data.append(92); + data.append(-83); + data.append(86); + data.append(-23); + data.append(11); + data.append(103); + data.append(29); + data.append(116); + data.append(-59); + data.append(26); + data.append(-22); + data.append(41); + data.append(-9); + data.append(88); + data.append(14); + data.append(11); + data.append(93); + data.append(37); + data.append(-39); + data.append(87); + data.append(80); + data.append(-28); + data.append(5); + data.append(-127); + data.append(126); + data.append(-72); + data.append(-29); + data.append(-61); + data.append(-6); + data.append(69); + data.append(-56); + data.append(-112); + data.append(-119); + data.append(-84); + data.append(43); + data.append(42); + data.append(-35); + data.append(-61); + data.append(8); + data.append(-57); + data.append(35); + data.append(120); + data.append(95); + data.append(-4); + data.append(75); + data.append(54); + data.append(45); + data.append(46); + data.append(-126); + data.append(-51); + data.append(102); + data.append(-15); + data.append(-103); + data.append(-55); + data.append(-8); + data.append(-85); + data.append(113); + data.append(-1); + data.append(94); + data.append(107); + data.append(-1); + data.append(31); + data.append(-70); + data.append(67); + data.append(-81); + data.append(97); + data.append(-99); + data.append(37); + data.append(39); + data.append(-90); + data.append(15); + data.append(-44); + data.append(23); + data.append(-25); + data.append(60); + data.append(37); + data.append(73); + data.append(-46); + data.append(-77); + data.append(-125); + data.append(-28); + data.append(76); + data.append(40); + data.append(98); + data.append(107); + data.append(-82); + data.append(7); + data.append(-119); + data.append(23); + data.append(44); + data.append(7); + data.append(54); + data.append(-53); + data.append(-100); + data.append(21); + data.append(115); + data.append(69); + data.append(-120); + data.append(119); + data.append(38); + data.append(41); + data.append(2); + data.append(28); + data.append(28); + data.append(-37); + data.append(70); + data.append(42); + data.append(-94); + data.append(-69); + data.append(82); + data.append(5); + data.append(-74); + data.append(-42); + data.append(33); + data.append(-81); + data.append(-7); + data.append(-127); + data.append(34); + data.append(27); + data.append(73); + data.append(-12); + data.append(25); + data.append(-28); + data.append(25); + data.append(105); + data.append(-115); + data.append(-69); + data.append(-5); + data.append(17); + data.append(7); + data.append(69); + data.append(-44); + data.append(-69); + data.append(69); + data.append(-55); + data.append(4); + data.append(-70); + data.append(-79); + data.append(94); + data.append(77); + data.append(-69); + data.append(11); + data.append(112); + data.append(-80); + data.append(-11); + data.append(-9); + data.append(-18); + data.append(119); + data.append(-121); + data.append(-88); + data.append(-120); + data.append(33); + data.append(13); + data.append(111); + data.append(-71); + data.append(125); + data.append(-81); + data.append(-123); + data.append(-76); + data.append(75); + data.append(19); + data.append(72); + data.append(9); + data.append(-82); + data.append(22); + data.append(31); + data.append(-70); + data.append(-10); + data.append(-61); + data.append(-38); + data.append(68); + data.append(123); + data.append(44); + data.append(-67); + data.append(89); + data.append(64); + data.append(109); + data.append(-16); + data.append(-21); + data.append(22); + data.append(-3); + data.append(39); + data.append(-118); + data.append(6); + data.append(43); + data.append(53); + data.append(-117); + data.append(82); + data.append(-56); + data.append(-64); + data.append(-47); + data.append(-42); + data.append(-23); + data.append(-3); + data.append(-47); + data.append(101); + data.append(12); + data.append(11); + data.append(110); + data.append(112); + data.append(-27); + data.append(116); + data.append(46); + data.append(73); + data.append(-62); + data.append(-86); + data.append(60); + data.append(23); + data.append(82); + data.append(-44); + data.append(-78); + data.append(104); + data.append(30); + data.append(107); + data.append(121); + data.append(-18); + data.append(-9); + data.append(-70); + data.append(83); + data.append(-71); + data.append(-8); + data.append(-108); + data.append(42); + data.append(30); + data.append(87); + data.append(90); + data.append(-26); + data.append(-54); + data.append(85); + data.append(-8); + data.append(118); + data.append(118); + data.append(73); + data.append(20); + data.append(21); + data.append(79); + data.append(95); + data.append(1); + data.append(-105); + data.append(7); + data.append(44); + data.append(6); + data.append(-63); + data.append(97); + data.append(67); + data.append(-50); + data.append(-30); + data.append(-39); + data.append(-102); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i32_3d/output_0.cairo b/tests/nodes/slice_i32_3d/output_0.cairo index 9addfcbdf..83c609592 100644 --- a/tests/nodes/slice_i32_3d/output_0.cairo +++ b/tests/nodes/slice_i32_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,65 +9,65 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 94, sign: false }); + data.append(20); + data.append(87); + data.append(-80); + data.append(62); + data.append(-11); + data.append(39); + data.append(-110); + data.append(22); + data.append(-1); + data.append(-77); + data.append(-19); + data.append(32); + data.append(116); + data.append(-40); + data.append(-78); + data.append(37); + data.append(58); + data.append(-71); + data.append(-83); + data.append(101); + data.append(116); + data.append(-91); + data.append(-8); + data.append(57); + data.append(-77); + data.append(-121); + data.append(-16); + data.append(59); + data.append(113); + data.append(85); + data.append(-64); + data.append(-49); + data.append(53); + data.append(-110); + data.append(17); + data.append(78); + data.append(-127); + data.append(-92); + data.append(39); + data.append(109); + data.append(-36); + data.append(-18); + data.append(89); + data.append(11); + data.append(91); + data.append(94); + data.append(-118); + data.append(48); + data.append(-108); + data.append(97); + data.append(-57); + data.append(94); + data.append(109); + data.append(-1); + data.append(36); + data.append(62); + data.append(-22); + data.append(6); + data.append(73); + data.append(123); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i8_2d.cairo b/tests/nodes/slice_i8_2d.cairo index 0ab311afe..fc7f35364 100644 --- a/tests/nodes/slice_i8_2d.cairo +++ b/tests/nodes/slice_i8_2d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_i8_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 2].span(), - array![2, 4].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 1].span()) - ); + let y = input_0.slice(array![0, 2].span(), array![2, 4].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 1].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_i8_2d/input_0.cairo b/tests/nodes/slice_i8_2d/input_0.cairo index 76f652b16..8330fd6e8 100644 --- a/tests/nodes/slice_i8_2d/input_0.cairo +++ b/tests/nodes/slice_i8_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 122, sign: false }); + data.append(90); + data.append(-56); + data.append(-97); + data.append(83); + data.append(-82); + data.append(120); + data.append(-97); + data.append(55); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i8_2d/output_0.cairo b/tests/nodes/slice_i8_2d/output_0.cairo index 0cfbcfca5..bdec3476c 100644 --- a/tests/nodes/slice_i8_2d/output_0.cairo +++ b/tests/nodes/slice_i8_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 122, sign: false }); + data.append(-97); + data.append(83); + data.append(-97); + data.append(55); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i8_3d.cairo b/tests/nodes/slice_i8_3d.cairo index b6d7df8fd..ec8ea9ffd 100644 --- a/tests/nodes/slice_i8_3d.cairo +++ b/tests/nodes/slice_i8_3d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_i8_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 0].span(), - array![3, 10].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 3].span()) - ); + let y = input_0.slice(array![0, 0].span(), array![3, 10].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 3].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_i8_3d/input_0.cairo b/tests/nodes/slice_i8_3d/input_0.cairo index 32d5a0466..235b8c8df 100644 --- a/tests/nodes/slice_i8_3d/input_0.cairo +++ b/tests/nodes/slice_i8_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 87, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 9, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 2, sign: false }); + data.append(116); + data.append(66); + data.append(-117); + data.append(-9); + data.append(23); + data.append(77); + data.append(61); + data.append(-79); + data.append(-122); + data.append(-89); + data.append(-3); + data.append(33); + data.append(-84); + data.append(-49); + data.append(111); + data.append(-34); + data.append(56); + data.append(-49); + data.append(83); + data.append(43); + data.append(95); + data.append(-121); + data.append(-59); + data.append(-8); + data.append(-106); + data.append(-4); + data.append(-51); + data.append(37); + data.append(-95); + data.append(-72); + data.append(31); + data.append(15); + data.append(69); + data.append(67); + data.append(-50); + data.append(-106); + data.append(18); + data.append(105); + data.append(63); + data.append(-12); + data.append(-47); + data.append(-82); + data.append(-89); + data.append(-95); + data.append(-34); + data.append(47); + data.append(50); + data.append(83); + data.append(32); + data.append(-106); + data.append(-60); + data.append(0); + data.append(-126); + data.append(114); + data.append(113); + data.append(7); + data.append(86); + data.append(-7); + data.append(-31); + data.append(40); + data.append(-110); + data.append(17); + data.append(92); + data.append(-12); + data.append(-40); + data.append(98); + data.append(86); + data.append(26); + data.append(48); + data.append(-91); + data.append(-114); + data.append(-99); + data.append(64); + data.append(-45); + data.append(75); + data.append(66); + data.append(115); + data.append(-39); + data.append(-118); + data.append(-32); + data.append(17); + data.append(-13); + data.append(-29); + data.append(-99); + data.append(-42); + data.append(-22); + data.append(-116); + data.append(-62); + data.append(80); + data.append(78); + data.append(-60); + data.append(118); + data.append(56); + data.append(33); + data.append(-114); + data.append(55); + data.append(-106); + data.append(78); + data.append(-53); + data.append(-3); + data.append(6); + data.append(112); + data.append(0); + data.append(19); + data.append(45); + data.append(-63); + data.append(78); + data.append(62); + data.append(39); + data.append(15); + data.append(-114); + data.append(-41); + data.append(108); + data.append(-86); + data.append(22); + data.append(60); + data.append(-42); + data.append(-19); + data.append(98); + data.append(77); + data.append(75); + data.append(-82); + data.append(18); + data.append(-98); + data.append(-123); + data.append(105); + data.append(73); + data.append(-82); + data.append(-99); + data.append(-24); + data.append(-22); + data.append(-47); + data.append(-87); + data.append(42); + data.append(105); + data.append(-113); + data.append(-36); + data.append(-112); + data.append(-43); + data.append(-69); + data.append(72); + data.append(-47); + data.append(33); + data.append(49); + data.append(85); + data.append(110); + data.append(29); + data.append(-57); + data.append(-93); + data.append(-100); + data.append(3); + data.append(11); + data.append(-71); + data.append(43); + data.append(-92); + data.append(-110); + data.append(-9); + data.append(-34); + data.append(7); + data.append(114); + data.append(62); + data.append(115); + data.append(72); + data.append(14); + data.append(-32); + data.append(-125); + data.append(18); + data.append(96); + data.append(-109); + data.append(-122); + data.append(-31); + data.append(-3); + data.append(-102); + data.append(104); + data.append(94); + data.append(74); + data.append(-85); + data.append(-21); + data.append(86); + data.append(115); + data.append(-77); + data.append(60); + data.append(-36); + data.append(48); + data.append(3); + data.append(27); + data.append(104); + data.append(-76); + data.append(116); + data.append(79); + data.append(45); + data.append(-61); + data.append(3); + data.append(-77); + data.append(-116); + data.append(-93); + data.append(-25); + data.append(-41); + data.append(-67); + data.append(-30); + data.append(-112); + data.append(-71); + data.append(-81); + data.append(97); + data.append(-11); + data.append(94); + data.append(-116); + data.append(-102); + data.append(-119); + data.append(-107); + data.append(-21); + data.append(-107); + data.append(-87); + data.append(-96); + data.append(111); + data.append(18); + data.append(22); + data.append(-20); + data.append(-34); + data.append(-36); + data.append(-113); + data.append(74); + data.append(-36); + data.append(90); + data.append(94); + data.append(107); + data.append(-48); + data.append(7); + data.append(33); + data.append(94); + data.append(-25); + data.append(-44); + data.append(-109); + data.append(-114); + data.append(-3); + data.append(57); + data.append(-49); + data.append(-69); + data.append(26); + data.append(-42); + data.append(94); + data.append(27); + data.append(-67); + data.append(107); + data.append(-55); + data.append(13); + data.append(-14); + data.append(-23); + data.append(34); + data.append(54); + data.append(84); + data.append(-101); + data.append(94); + data.append(-36); + data.append(13); + data.append(-34); + data.append(60); + data.append(-105); + data.append(51); + data.append(-69); + data.append(47); + data.append(-66); + data.append(45); + data.append(126); + data.append(-46); + data.append(-115); + data.append(-83); + data.append(-47); + data.append(113); + data.append(-127); + data.append(-38); + data.append(9); + data.append(-89); + data.append(-91); + data.append(2); + data.append(-110); + data.append(-106); + data.append(1); + data.append(117); + data.append(-114); + data.append(88); + data.append(116); + data.append(-43); + data.append(-67); + data.append(-113); + data.append(49); + data.append(-40); + data.append(-122); + data.append(92); + data.append(68); + data.append(-72); + data.append(-60); + data.append(61); + data.append(91); + data.append(-77); + data.append(-61); + data.append(106); + data.append(37); + data.append(70); + data.append(74); + data.append(-58); + data.append(-69); + data.append(53); + data.append(72); + data.append(-80); + data.append(116); + data.append(-31); + data.append(12); + data.append(-27); + data.append(31); + data.append(26); + data.append(-3); + data.append(59); + data.append(-35); + data.append(-15); + data.append(-85); + data.append(126); + data.append(56); + data.append(110); + data.append(81); + data.append(-50); + data.append(-9); + data.append(2); + data.append(-69); + data.append(-23); + data.append(-74); + data.append(-17); + data.append(-96); + data.append(24); + data.append(93); + data.append(77); + data.append(70); + data.append(-33); + data.append(-21); + data.append(-127); + data.append(-59); + data.append(91); + data.append(-75); + data.append(-84); + data.append(62); + data.append(125); + data.append(125); + data.append(49); + data.append(87); + data.append(15); + data.append(-120); + data.append(114); + data.append(94); + data.append(109); + data.append(-104); + data.append(-95); + data.append(-84); + data.append(48); + data.append(-26); + data.append(72); + data.append(24); + data.append(40); + data.append(107); + data.append(54); + data.append(-25); + data.append(10); + data.append(11); + data.append(-55); + data.append(15); + data.append(34); + data.append(-34); + data.append(-12); + data.append(-48); + data.append(-104); + data.append(-52); + data.append(-33); + data.append(-71); + data.append(-125); + data.append(99); + data.append(-19); + data.append(-122); + data.append(16); + data.append(36); + data.append(92); + data.append(22); + data.append(-82); + data.append(-5); + data.append(11); + data.append(-114); + data.append(-123); + data.append(-119); + data.append(-50); + data.append(5); + data.append(-12); + data.append(65); + data.append(-121); + data.append(99); + data.append(79); + data.append(-109); + data.append(11); + data.append(-113); + data.append(-108); + data.append(-127); + data.append(89); + data.append(-54); + data.append(92); + data.append(70); + data.append(99); + data.append(-101); + data.append(75); + data.append(118); + data.append(-63); + data.append(110); + data.append(105); + data.append(-27); + data.append(38); + data.append(102); + data.append(102); + data.append(59); + data.append(23); + data.append(-14); + data.append(-108); + data.append(-75); + data.append(-92); + data.append(39); + data.append(-51); + data.append(11); + data.append(103); + data.append(-89); + data.append(97); + data.append(98); + data.append(48); + data.append(16); + data.append(113); + data.append(-34); + data.append(96); + data.append(1); + data.append(-36); + data.append(-19); + data.append(-53); + data.append(112); + data.append(39); + data.append(-18); + data.append(44); + data.append(-35); + data.append(104); + data.append(74); + data.append(-55); + data.append(-84); + data.append(60); + data.append(49); + data.append(53); + data.append(46); + data.append(29); + data.append(-112); + data.append(-115); + data.append(114); + data.append(71); + data.append(35); + data.append(-75); + data.append(23); + data.append(-11); + data.append(-29); + data.append(42); + data.append(4); + data.append(13); + data.append(-17); + data.append(81); + data.append(-21); + data.append(89); + data.append(-71); + data.append(-25); + data.append(100); + data.append(-2); + data.append(86); + data.append(-44); + data.append(-102); + data.append(-103); + data.append(-98); + data.append(63); + data.append(-10); + data.append(-9); + data.append(-77); + data.append(122); + data.append(-84); + data.append(-76); + data.append(14); + data.append(2); + data.append(85); + data.append(52); + data.append(31); + data.append(15); + data.append(-16); + data.append(36); + data.append(125); + data.append(77); + data.append(11); + data.append(-48); + data.append(54); + data.append(-33); + data.append(-111); + data.append(121); + data.append(-90); + data.append(83); + data.append(-108); + data.append(12); + data.append(-97); + data.append(106); + data.append(93); + data.append(54); + data.append(119); + data.append(47); + data.append(-41); + data.append(-35); + data.append(87); + data.append(-83); + data.append(-46); + data.append(-66); + data.append(58); + data.append(80); + data.append(89); + data.append(-99); + data.append(-45); + data.append(-92); + data.append(85); + data.append(-43); + data.append(72); + data.append(-45); + data.append(10); + data.append(-69); + data.append(16); + data.append(59); + data.append(-70); + data.append(-11); + data.append(118); + data.append(121); + data.append(-118); + data.append(-52); + data.append(-123); + data.append(-32); + data.append(11); + data.append(100); + data.append(99); + data.append(-80); + data.append(62); + data.append(115); + data.append(111); + data.append(-4); + data.append(-127); + data.append(-63); + data.append(45); + data.append(105); + data.append(-49); + data.append(81); + data.append(114); + data.append(-124); + data.append(-126); + data.append(-32); + data.append(-22); + data.append(-66); + data.append(-3); + data.append(62); + data.append(-86); + data.append(-86); + data.append(-111); + data.append(40); + data.append(-24); + data.append(79); + data.append(-80); + data.append(-7); + data.append(112); + data.append(31); + data.append(71); + data.append(-85); + data.append(12); + data.append(29); + data.append(-45); + data.append(-105); + data.append(-45); + data.append(90); + data.append(12); + data.append(92); + data.append(-33); + data.append(93); + data.append(8); + data.append(-37); + data.append(66); + data.append(-102); + data.append(13); + data.append(-60); + data.append(64); + data.append(72); + data.append(-105); + data.append(-8); + data.append(-87); + data.append(88); + data.append(-2); + data.append(66); + data.append(119); + data.append(11); + data.append(-51); + data.append(110); + data.append(90); + data.append(-35); + data.append(-11); + data.append(42); + data.append(47); + data.append(108); + data.append(-115); + data.append(21); + data.append(67); + data.append(-22); + data.append(64); + data.append(79); + data.append(60); + data.append(17); + data.append(52); + data.append(30); + data.append(-45); + data.append(-39); + data.append(39); + data.append(-26); + data.append(121); + data.append(3); + data.append(-104); + data.append(-73); + data.append(-112); + data.append(-125); + data.append(2); + data.append(11); + data.append(102); + data.append(38); + data.append(-45); + data.append(-47); + data.append(-7); + data.append(-8); + data.append(-116); + data.append(38); + data.append(14); + data.append(-39); + data.append(-48); + data.append(92); + data.append(-105); + data.append(-45); + data.append(-7); + data.append(77); + data.append(46); + data.append(101); + data.append(71); + data.append(88); + data.append(71); + data.append(-71); + data.append(24); + data.append(45); + data.append(-53); + data.append(-104); + data.append(-16); + data.append(95); + data.append(-125); + data.append(-10); + data.append(100); + data.append(95); + data.append(-18); + data.append(-63); + data.append(21); + data.append(-68); + data.append(106); + data.append(65); + data.append(108); + data.append(-124); + data.append(-44); + data.append(-60); + data.append(10); + data.append(-12); + data.append(-24); + data.append(108); + data.append(20); + data.append(-24); + data.append(86); + data.append(45); + data.append(-51); + data.append(-67); + data.append(-123); + data.append(-39); + data.append(-87); + data.append(77); + data.append(63); + data.append(-46); + data.append(119); + data.append(12); + data.append(-110); + data.append(56); + data.append(98); + data.append(-123); + data.append(88); + data.append(16); + data.append(114); + data.append(1); + data.append(-55); + data.append(-95); + data.append(119); + data.append(105); + data.append(20); + data.append(-103); + data.append(5); + data.append(-12); + data.append(-36); + data.append(92); + data.append(66); + data.append(-127); + data.append(-96); + data.append(-89); + data.append(114); + data.append(18); + data.append(47); + data.append(-16); + data.append(99); + data.append(-13); + data.append(-66); + data.append(66); + data.append(1); + data.append(-122); + data.append(-49); + data.append(100); + data.append(11); + data.append(-91); + data.append(49); + data.append(-95); + data.append(1); + data.append(30); + data.append(-99); + data.append(-11); + data.append(62); + data.append(21); + data.append(50); + data.append(-121); + data.append(74); + data.append(-31); + data.append(-63); + data.append(-113); + data.append(118); + data.append(70); + data.append(-94); + data.append(50); + data.append(43); + data.append(-3); + data.append(-64); + data.append(42); + data.append(6); + data.append(-82); + data.append(38); + data.append(0); + data.append(-23); + data.append(-116); + data.append(-13); + data.append(-13); + data.append(-106); + data.append(48); + data.append(30); + data.append(59); + data.append(94); + data.append(-1); + data.append(-35); + data.append(-7); + data.append(16); + data.append(-34); + data.append(-37); + data.append(122); + data.append(86); + data.append(-51); + data.append(-51); + data.append(38); + data.append(109); + data.append(-59); + data.append(34); + data.append(20); + data.append(101); + data.append(11); + data.append(-84); + data.append(76); + data.append(35); + data.append(-67); + data.append(33); + data.append(-117); + data.append(-105); + data.append(-45); + data.append(75); + data.append(98); + data.append(46); + data.append(-57); + data.append(92); + data.append(21); + data.append(79); + data.append(87); + data.append(6); + data.append(121); + data.append(-65); + data.append(57); + data.append(-1); + data.append(-26); + data.append(125); + data.append(29); + data.append(-26); + data.append(46); + data.append(69); + data.append(-81); + data.append(-99); + data.append(-56); + data.append(49); + data.append(17); + data.append(44); + data.append(36); + data.append(28); + data.append(58); + data.append(-18); + data.append(89); + data.append(-101); + data.append(72); + data.append(0); + data.append(-88); + data.append(17); + data.append(-84); + data.append(-55); + data.append(-46); + data.append(-100); + data.append(10); + data.append(-108); + data.append(84); + data.append(63); + data.append(-114); + data.append(125); + data.append(116); + data.append(88); + data.append(-75); + data.append(115); + data.append(-15); + data.append(40); + data.append(53); + data.append(-42); + data.append(107); + data.append(-81); + data.append(114); + data.append(49); + data.append(-16); + data.append(29); + data.append(-67); + data.append(40); + data.append(29); + data.append(102); + data.append(120); + data.append(78); + data.append(68); + data.append(100); + data.append(64); + data.append(42); + data.append(-7); + data.append(82); + data.append(-33); + data.append(76); + data.append(-66); + data.append(73); + data.append(-106); + data.append(20); + data.append(-89); + data.append(-44); + data.append(-80); + data.append(-13); + data.append(48); + data.append(-29); + data.append(-11); + data.append(-121); + data.append(83); + data.append(57); + data.append(110); + data.append(31); + data.append(114); + data.append(19); + data.append(-18); + data.append(-71); + data.append(-88); + data.append(111); + data.append(95); + data.append(-55); + data.append(70); + data.append(-11); + data.append(-118); + data.append(82); + data.append(9); + data.append(-14); + data.append(-124); + data.append(-87); + data.append(-105); + data.append(19); + data.append(-101); + data.append(24); + data.append(53); + data.append(-108); + data.append(-50); + data.append(-24); + data.append(124); + data.append(-67); + data.append(-29); + data.append(-64); + data.append(30); + data.append(-50); + data.append(-88); + data.append(83); + data.append(-48); + data.append(-3); + data.append(75); + data.append(-108); + data.append(110); + data.append(109); + data.append(-51); + data.append(66); + data.append(107); + data.append(-87); + data.append(-83); + data.append(75); + data.append(72); + data.append(61); + data.append(-85); + data.append(66); + data.append(-29); + data.append(-80); + data.append(84); + data.append(82); + data.append(-116); + data.append(-14); + data.append(75); + data.append(79); + data.append(-13); + data.append(-14); + data.append(125); + data.append(112); + data.append(63); + data.append(-46); + data.append(-74); + data.append(-80); + data.append(35); + data.append(5); + data.append(87); + data.append(-123); + data.append(112); + data.append(-78); + data.append(109); + data.append(-98); + data.append(73); + data.append(63); + data.append(44); + data.append(46); + data.append(80); + data.append(-80); + data.append(58); + data.append(105); + data.append(17); + data.append(114); + data.append(-66); + data.append(8); + data.append(-11); + data.append(-107); + data.append(-27); + data.append(-108); + data.append(-33); + data.append(87); + data.append(-82); + data.append(59); + data.append(-56); + data.append(-68); + data.append(-53); + data.append(-93); + data.append(-20); + data.append(-100); + data.append(-127); + data.append(-44); + data.append(-114); + data.append(22); + data.append(53); + data.append(-17); + data.append(73); + data.append(53); + data.append(86); + data.append(118); + data.append(-84); + data.append(-105); + data.append(-77); + data.append(80); + data.append(-127); + data.append(100); + data.append(111); + data.append(77); + data.append(37); + data.append(111); + data.append(-62); + data.append(109); + data.append(115); + data.append(114); + data.append(-6); + data.append(78); + data.append(49); + data.append(61); + data.append(38); + data.append(67); + data.append(-41); + data.append(71); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_i8_3d/output_0.cairo b/tests/nodes/slice_i8_3d/output_0.cairo index 6fe48c204..bd50d98c8 100644 --- a/tests/nodes/slice_i8_3d/output_0.cairo +++ b/tests/nodes/slice_i8_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,65 +9,65 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 120, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 30, sign: true }); + data.append(116); + data.append(66); + data.append(-117); + data.append(-9); + data.append(23); + data.append(-34); + data.append(56); + data.append(-49); + data.append(83); + data.append(43); + data.append(31); + data.append(15); + data.append(69); + data.append(67); + data.append(-50); + data.append(47); + data.append(50); + data.append(83); + data.append(32); + data.append(-106); + data.append(-60); + data.append(0); + data.append(-126); + data.append(114); + data.append(113); + data.append(98); + data.append(86); + data.append(26); + data.append(48); + data.append(-91); + data.append(17); + data.append(-13); + data.append(-29); + data.append(-99); + data.append(-42); + data.append(55); + data.append(-106); + data.append(78); + data.append(-53); + data.append(-3); + data.append(6); + data.append(112); + data.append(0); + data.append(19); + data.append(45); + data.append(60); + data.append(-42); + data.append(-19); + data.append(98); + data.append(77); + data.append(-22); + data.append(-47); + data.append(-87); + data.append(42); + data.append(105); + data.append(110); + data.append(29); + data.append(-57); + data.append(-93); + data.append(-100); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_u32_2d.cairo b/tests/nodes/slice_u32_2d.cairo index 8e13c4054..27678fc0c 100644 --- a/tests/nodes/slice_u32_2d.cairo +++ b/tests/nodes/slice_u32_2d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_u32_2d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 2].span(), - array![2, 4].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 1].span()) - ); + let y = input_0.slice(array![0, 2].span(), array![2, 4].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 1].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_u32_2d/input_0.cairo b/tests/nodes/slice_u32_2d/input_0.cairo index 4cb0582a4..263ad2ad5 100644 --- a/tests/nodes/slice_u32_2d/input_0.cairo +++ b/tests/nodes/slice_u32_2d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(239); - data.append(177); - data.append(83); - data.append(88); + data.append(169); + data.append(194); data.append(34); - data.append(131); - data.append(2); - data.append(11); + data.append(124); + data.append(25); + data.append(12); + data.append(156); + data.append(35); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_u32_2d/output_0.cairo b/tests/nodes/slice_u32_2d/output_0.cairo index f1ba8a6a0..18cc1661c 100644 --- a/tests/nodes/slice_u32_2d/output_0.cairo +++ b/tests/nodes/slice_u32_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(83); - data.append(88); - data.append(2); - data.append(11); + data.append(34); + data.append(124); + data.append(156); + data.append(35); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_u32_3d.cairo b/tests/nodes/slice_u32_3d.cairo index dbeb3b50a..a3ca0e1bc 100644 --- a/tests/nodes/slice_u32_3d.cairo +++ b/tests/nodes/slice_u32_3d.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -14,13 +14,7 @@ fn test_slice_u32_3d() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .slice( - array![0, 0].span(), - array![3, 10].span(), - Option::Some(array![0, 1].span()), - Option::Some(array![1, 3].span()) - ); + let y = input_0.slice(array![0, 0].span(), array![3, 10].span(), Option::Some(array![0, 1].span()), Option::Some(array![1, 3].span())); assert_eq(y, z); } diff --git a/tests/nodes/slice_u32_3d/input_0.cairo b/tests/nodes/slice_u32_3d/input_0.cairo index 2a0c37ff4..12306b291 100644 --- a/tests/nodes/slice_u32_3d/input_0.cairo +++ b/tests/nodes/slice_u32_3d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(230); - data.append(198); - data.append(114); - data.append(149); - data.append(28); - data.append(36); - data.append(139); - data.append(54); - data.append(64); - data.append(140); - data.append(248); - data.append(32); - data.append(185); - data.append(148); - data.append(7); - data.append(210); - data.append(174); - data.append(63); - data.append(232); - data.append(20); - data.append(225); - data.append(113); - data.append(79); - data.append(138); - data.append(214); - data.append(203); - data.append(40); + data.append(250); + data.append(117); + data.append(180); data.append(167); - data.append(225); - data.append(226); - data.append(217); - data.append(109); - data.append(15); + data.append(64); + data.append(22); + data.append(64); data.append(227); - data.append(223); - data.append(196); - data.append(177); - data.append(70); - data.append(197); - data.append(80); - data.append(54); - data.append(209); - data.append(125); - data.append(83); data.append(140); - data.append(91); - data.append(8); - data.append(122); - data.append(254); - data.append(184); + data.append(0); + data.append(227); + data.append(74); + data.append(192); + data.append(147); + data.append(164); + data.append(228); + data.append(51); data.append(250); + data.append(173); + data.append(99); + data.append(26); + data.append(165); + data.append(237); + data.append(203); + data.append(140); + data.append(101); + data.append(64); + data.append(208); + data.append(136); + data.append(70); + data.append(224); + data.append(188); + data.append(38); + data.append(92); + data.append(239); + data.append(192); data.append(89); - data.append(175); + data.append(39); + data.append(246); + data.append(5); + data.append(65); + data.append(23); + data.append(58); + data.append(188); + data.append(30); + data.append(179); + data.append(181); + data.append(183); + data.append(26); + data.append(194); + data.append(153); + data.append(193); + data.append(163); + data.append(15); + data.append(155); data.append(27); - data.append(67); + data.append(4); + data.append(45); + data.append(120); + data.append(246); + data.append(14); data.append(132); - data.append(6); - data.append(157); - data.append(171); - data.append(129); data.append(82); - data.append(12); - data.append(12); - data.append(195); - data.append(24); + data.append(9); + data.append(162); + data.append(94); + data.append(70); + data.append(88); + data.append(216); + data.append(203); + data.append(99); + data.append(19); + data.append(67); + data.append(188); + data.append(108); + data.append(58); + data.append(129); + data.append(111); + data.append(235); + data.append(181); + data.append(81); + data.append(16); + data.append(68); + data.append(216); + data.append(69); + data.append(167); + data.append(126); + data.append(167); + data.append(124); + data.append(194); + data.append(103); + data.append(165); data.append(172); - data.append(220); - data.append(168); - data.append(229); - data.append(34); - data.append(78); - data.append(176); - data.append(55); + data.append(1); + data.append(166); + data.append(71); + data.append(153); + data.append(99); + data.append(188); + data.append(227); + data.append(40); + data.append(185); + data.append(92); + data.append(159); + data.append(107); + data.append(194); + data.append(117); + data.append(139); + data.append(202); + data.append(103); + data.append(232); + data.append(65); data.append(197); - data.append(32); - data.append(46); data.append(223); - data.append(18); - data.append(178); - data.append(156); - data.append(169); - data.append(107); - data.append(123); - data.append(19); + data.append(47); + data.append(253); + data.append(41); data.append(103); - data.append(192); - data.append(121); - data.append(106); + data.append(53); + data.append(188); + data.append(223); + data.append(34); + data.append(233); + data.append(5); + data.append(139); + data.append(81); + data.append(245); + data.append(198); + data.append(72); + data.append(39); + data.append(235); + data.append(179); data.append(161); - data.append(157); - data.append(114); - data.append(190); - data.append(55); - data.append(149); - data.append(84); - data.append(123); - data.append(206); - data.append(146); - data.append(12); - data.append(208); - data.append(36); + data.append(169); + data.append(248); + data.append(213); + data.append(241); + data.append(115); + data.append(135); + data.append(124); + data.append(4); + data.append(34); + data.append(141); + data.append(96); + data.append(26); + data.append(9); + data.append(186); + data.append(198); + data.append(125); + data.append(213); + data.append(148); + data.append(99); + data.append(17); + data.append(132); + data.append(39); + data.append(185); + data.append(218); + data.append(196); + data.append(169); + data.append(64); data.append(237); - data.append(192); - data.append(108); + data.append(241); + data.append(17); + data.append(164); + data.append(155); + data.append(181); + data.append(17); + data.append(160); + data.append(138); + data.append(64); + data.append(178); + data.append(139); + data.append(171); + data.append(125); + data.append(36); + data.append(56); data.append(243); - data.append(117); - data.append(144); - data.append(186); + data.append(131); + data.append(220); data.append(224); - data.append(161); - data.append(218); - data.append(199); - data.append(180); - data.append(19); - data.append(211); - data.append(15); - data.append(27); - data.append(120); - data.append(67); - data.append(108); - data.append(179); - data.append(92); - data.append(66); - data.append(53); - data.append(118); - data.append(36); - data.append(217); - data.append(141); - data.append(88); - data.append(77); - data.append(31); - data.append(73); - data.append(87); - data.append(75); - data.append(227); - data.append(34); - data.append(166); - data.append(121); - data.append(111); - data.append(42); - data.append(220); - data.append(89); - data.append(79); - data.append(249); - data.append(234); - data.append(232); - data.append(164); - data.append(144); - data.append(152); - data.append(22); - data.append(20); - data.append(9); - data.append(115); - data.append(44); - data.append(129); - data.append(14); - data.append(54); - data.append(161); - data.append(167); - data.append(116); - data.append(138); + data.append(250); + data.append(214); data.append(186); - data.append(156); data.append(197); - data.append(1); - data.append(1); + data.append(253); + data.append(170); + data.append(71); data.append(193); - data.append(134); - data.append(254); - data.append(33); - data.append(132); - data.append(44); - data.append(76); - data.append(15); - data.append(221); - data.append(186); - data.append(59); + data.append(253); + data.append(140); + data.append(145); + data.append(121); + data.append(141); + data.append(109); + data.append(90); + data.append(185); + data.append(110); + data.append(141); data.append(204); - data.append(93); - data.append(25); - data.append(129); - data.append(22); - data.append(101); - data.append(85); - data.append(34); - data.append(106); - data.append(70); - data.append(33); - data.append(238); + data.append(248); + data.append(142); + data.append(52); + data.append(47); data.append(253); - data.append(62); - data.append(226); - data.append(35); - data.append(53); - data.append(123); - data.append(175); - data.append(35); - data.append(172); - data.append(68); - data.append(139); + data.append(154); data.append(211); - data.append(205); - data.append(216); - data.append(125); - data.append(224); - data.append(236); - data.append(62); - data.append(238); - data.append(186); - data.append(158); - data.append(222); - data.append(185); - data.append(147); + data.append(82); + data.append(190); + data.append(20); + data.append(134); data.append(192); + data.append(154); data.append(28); - data.append(192); - data.append(0); - data.append(223); - data.append(239); - data.append(238); - data.append(115); - data.append(172); - data.append(188); - data.append(171); - data.append(190); - data.append(193); - data.append(98); - data.append(191); - data.append(143); - data.append(190); - data.append(117); - data.append(193); - data.append(158); - data.append(125); - data.append(131); - data.append(244); - data.append(219); - data.append(250); + data.append(76); + data.append(104); + data.append(225); + data.append(130); + data.append(148); + data.append(27); + data.append(163); + data.append(252); + data.append(100); + data.append(119); + data.append(135); data.append(219); - data.append(117); - data.append(232); + data.append(37); + data.append(126); + data.append(69); + data.append(212); + data.append(49); + data.append(75); + data.append(236); + data.append(81); + data.append(24); + data.append(252); + data.append(139); + data.append(198); + data.append(26); + data.append(4); + data.append(244); + data.append(145); + data.append(210); + data.append(252); + data.append(228); + data.append(216); + data.append(214); + data.append(67); + data.append(116); + data.append(146); + data.append(137); + data.append(13); + data.append(194); + data.append(137); + data.append(42); + data.append(56); + data.append(223); + data.append(207); data.append(10); - data.append(16); + data.append(78); data.append(178); - data.append(106); - data.append(95); - data.append(215); - data.append(117); - data.append(109); - data.append(226); - data.append(105); + data.append(64); + data.append(34); + data.append(23); + data.append(224); + data.append(48); data.append(194); - data.append(208); - data.append(28); - data.append(36); - data.append(178); - data.append(35); - data.append(14); - data.append(69); - data.append(55); - data.append(183); - data.append(217); - data.append(191); - data.append(56); - data.append(1); - data.append(31); - data.append(211); - data.append(253); - data.append(208); - data.append(250); - data.append(76); - data.append(180); - data.append(140); - data.append(211); - data.append(249); - data.append(77); - data.append(220); - data.append(98); + data.append(252); + data.append(160); data.append(21); + data.append(100); + data.append(88); data.append(144); - data.append(21); + data.append(186); + data.append(50); + data.append(138); + data.append(46); + data.append(74); + data.append(67); + data.append(181); + data.append(72); + data.append(206); + data.append(18); + data.append(236); + data.append(155); + data.append(66); + data.append(24); + data.append(219); + data.append(16); + data.append(29); + data.append(113); + data.append(147); data.append(6); - data.append(160); - data.append(25); - data.append(55); - data.append(7); - data.append(13); - data.append(184); - data.append(249); - data.append(114); - data.append(248); - data.append(127); - data.append(215); - data.append(33); - data.append(86); - data.append(93); - data.append(94); - data.append(42); - data.append(175); - data.append(93); - data.append(183); - data.append(104); - data.append(33); - data.append(194); - data.append(254); - data.append(115); - data.append(26); - data.append(171); - data.append(123); - data.append(135); - data.append(44); - data.append(195); + data.append(23); + data.append(11); + data.append(140); + data.append(180); data.append(226); - data.append(65); - data.append(175); - data.append(160); - data.append(186); - data.append(116); - data.append(95); - data.append(44); - data.append(18); - data.append(197); - data.append(192); - data.append(42); - data.append(174); - data.append(18); - data.append(65); - data.append(105); - data.append(195); - data.append(70); - data.append(141); - data.append(138); - data.append(153); - data.append(227); - data.append(27); - data.append(195); - data.append(107); - data.append(83); - data.append(153); - data.append(229); - data.append(159); - data.append(72); - data.append(25); - data.append(97); - data.append(127); - data.append(243); - data.append(52); - data.append(197); data.append(233); - data.append(213); - data.append(153); - data.append(20); + data.append(107); + data.append(189); + data.append(109); + data.append(17); + data.append(214); + data.append(210); + data.append(202); data.append(56); - data.append(193); - data.append(250); - data.append(57); data.append(110); - data.append(164); - data.append(92); - data.append(205); - data.append(251); - data.append(137); - data.append(0); + data.append(109); + data.append(24); + data.append(158); + data.append(225); + data.append(4); data.append(187); - data.append(65); - data.append(27); - data.append(188); - data.append(148); - data.append(67); - data.append(149); - data.append(47); - data.append(129); - data.append(165); - data.append(188); - data.append(84); - data.append(169); - data.append(123); + data.append(227); data.append(214); - data.append(36); - data.append(6); - data.append(196); - data.append(90); - data.append(100); + data.append(179); + data.append(73); + data.append(228); + data.append(105); + data.append(120); + data.append(2); + data.append(39); + data.append(228); + data.append(147); + data.append(185); + data.append(148); + data.append(158); data.append(221); - data.append(127); - data.append(9); - data.append(186); - data.append(161); - data.append(219); - data.append(59); - data.append(247); + data.append(189); + data.append(42); + data.append(8); + data.append(213); + data.append(234); + data.append(70); + data.append(126); + data.append(131); + data.append(222); + data.append(122); data.append(97); - data.append(99); - data.append(218); + data.append(147); + data.append(248); + data.append(76); + data.append(138); + data.append(0); + data.append(2); + data.append(122); + data.append(206); + data.append(143); + data.append(141); + data.append(45); + data.append(251); + data.append(238); + data.append(169); + data.append(147); + data.append(21); + data.append(199); + data.append(146); + data.append(21); + data.append(57); data.append(215); - data.append(227); + data.append(168); + data.append(55); + data.append(241); + data.append(90); data.append(33); - data.append(5); - data.append(223); - data.append(233); - data.append(38); - data.append(99); + data.append(49); + data.append(86); + data.append(139); + data.append(65); + data.append(69); + data.append(32); data.append(124); - data.append(220); - data.append(197); - data.append(61); - data.append(135); - data.append(4); - data.append(203); - data.append(9); - data.append(30); - data.append(28); - data.append(27); data.append(22); - data.append(240); - data.append(231); - data.append(134); - data.append(95); - data.append(107); - data.append(160); - data.append(30); - data.append(70); - data.append(50); - data.append(57); - data.append(13); - data.append(50); - data.append(35); - data.append(58); - data.append(208); data.append(7); - data.append(1); - data.append(219); - data.append(240); - data.append(64); - data.append(135); - data.append(225); - data.append(207); - data.append(137); - data.append(6); - data.append(171); - data.append(134); + data.append(94); + data.append(209); + data.append(144); + data.append(174); + data.append(178); + data.append(68); + data.append(254); + data.append(226); + data.append(215); + data.append(70); + data.append(190); + data.append(204); + data.append(2); + data.append(100); + data.append(124); + data.append(198); + data.append(56); + data.append(94); + data.append(202); data.append(176); - data.append(98); - data.append(152); - data.append(121); - data.append(186); + data.append(187); + data.append(172); + data.append(2); + data.append(89); + data.append(14); data.append(122); - data.append(234); - data.append(32); - data.append(173); - data.append(104); - data.append(254); - data.append(75); - data.append(130); - data.append(66); - data.append(61); - data.append(13); - data.append(208); - data.append(152); - data.append(131); - data.append(15); + data.append(42); + data.append(163); + data.append(76); + data.append(139); + data.append(64); + data.append(82); + data.append(5); + data.append(159); + data.append(1); + data.append(84); + data.append(55); data.append(15); - data.append(77); - data.append(189); - data.append(115); - data.append(247); - data.append(200); - data.append(3); - data.append(249); - data.append(195); - data.append(165); - data.append(170); - data.append(227); - data.append(247); - data.append(199); - data.append(158); - data.append(58); - data.append(235); - data.append(111); - data.append(94); - data.append(116); - data.append(145); - data.append(179); + data.append(253); + data.append(232); + data.append(233); + data.append(225); + data.append(243); data.append(191); - data.append(222); - data.append(151); - data.append(177); - data.append(40); - data.append(223); - data.append(194); + data.append(72); + data.append(105); + data.append(173); + data.append(85); + data.append(72); + data.append(143); + data.append(37); + data.append(145); + data.append(127); + data.append(239); + data.append(126); + data.append(24); + data.append(126); + data.append(44); + data.append(34); + data.append(181); + data.append(68); + data.append(132); + data.append(120); + data.append(141); + data.append(215); + data.append(76); + data.append(32); + data.append(184); + data.append(156); + data.append(118); + data.append(152); + data.append(239); data.append(161); - data.append(206); - data.append(250); - data.append(114); - data.append(70); data.append(11); - data.append(129); - data.append(22); - data.append(213); - data.append(115); + data.append(106); + data.append(30); + data.append(181); + data.append(83); + data.append(62); data.append(21); - data.append(75); - data.append(169); - data.append(110); - data.append(52); - data.append(108); - data.append(173); - data.append(188); - data.append(119); - data.append(252); - data.append(22); - data.append(149); - data.append(144); - data.append(145); + data.append(137); + data.append(179); + data.append(189); + data.append(243); + data.append(138); + data.append(96); + data.append(121); + data.append(33); + data.append(39); + data.append(241); + data.append(251); data.append(106); - data.append(55); - data.append(84); - data.append(92); - data.append(198); + data.append(53); + data.append(226); + data.append(167); + data.append(197); + data.append(53); + data.append(197); + data.append(78); + data.append(251); + data.append(95); + data.append(60); + data.append(94); + data.append(70); + data.append(166); + data.append(141); data.append(246); - data.append(206); - data.append(235); - data.append(118); - data.append(237); - data.append(143); - data.append(103); - data.append(155); - data.append(46); - data.append(200); - data.append(50); - data.append(126); - data.append(149); - data.append(104); - data.append(87); - data.append(238); - data.append(199); - data.append(187); - data.append(238); - data.append(112); + data.append(228); + data.append(30); + data.append(129); + data.append(100); + data.append(128); + data.append(225); data.append(192); - data.append(205); - data.append(166); - data.append(108); - data.append(94); - data.append(218); - data.append(87); - data.append(178); data.append(12); - data.append(229); - data.append(201); - data.append(247); - data.append(18); - data.append(143); - data.append(34); - data.append(53); - data.append(252); - data.append(85); - data.append(206); - data.append(115); - data.append(66); - data.append(180); - data.append(46); - data.append(65); - data.append(115); - data.append(229); - data.append(192); - data.append(245); - data.append(24); - data.append(42); - data.append(16); + data.append(12); + data.append(254); + data.append(97); data.append(164); - data.append(224); - data.append(147); - data.append(148); - data.append(193); - data.append(94); - data.append(166); - data.append(196); - data.append(13); - data.append(77); - data.append(244); - data.append(170); + data.append(248); + data.append(162); + data.append(219); + data.append(206); + data.append(10); + data.append(84); + data.append(71); + data.append(41); + data.append(4); + data.append(171); + data.append(72); + data.append(20); data.append(113); - data.append(80); - data.append(32); - data.append(107); - data.append(180); - data.append(229); - data.append(185); - data.append(62); - data.append(27); - data.append(18); - data.append(213); - data.append(45); - data.append(76); + data.append(171); + data.append(13); + data.append(167); + data.append(174); + data.append(96); data.append(15); - data.append(217); + data.append(70); + data.append(143); + data.append(18); + data.append(135); + data.append(58); + data.append(40); + data.append(220); + data.append(200); + data.append(97); + data.append(48); + data.append(90); + data.append(129); + data.append(92); + data.append(21); + data.append(111); + data.append(12); + data.append(62); + data.append(157); + data.append(33); + data.append(32); + data.append(149); + data.append(49); data.append(13); data.append(217); - data.append(213); - data.append(182); - data.append(32); - data.append(28); - data.append(118); - data.append(5); + data.append(200); + data.append(90); + data.append(88); + data.append(24); + data.append(144); + data.append(51); + data.append(220); + data.append(35); + data.append(48); + data.append(93); + data.append(198); + data.append(75); + data.append(52); data.append(111); - data.append(230); - data.append(230); - data.append(4); - data.append(184); - data.append(123); - data.append(248); - data.append(85); - data.append(236); - data.append(66); + data.append(95); data.append(37); - data.append(3); - data.append(28); - data.append(181); - data.append(69); - data.append(86); - data.append(202); - data.append(104); - data.append(17); - data.append(128); - data.append(212); - data.append(224); - data.append(217); - data.append(59); - data.append(126); - data.append(94); - data.append(154); - data.append(65); - data.append(247); - data.append(152); - data.append(175); - data.append(0); - data.append(17); - data.append(101); - data.append(211); + data.append(229); + data.append(158); + data.append(102); + data.append(54); data.append(22); - data.append(209); - data.append(149); - data.append(236); - data.append(81); - data.append(192); - data.append(155); - data.append(67); - data.append(242); - data.append(40); - data.append(123); - data.append(243); - data.append(230); - data.append(32); - data.append(122); - data.append(90); - data.append(147); - data.append(190); - data.append(52); - data.append(105); - data.append(246); - data.append(222); - data.append(119); - data.append(230); - data.append(73); - data.append(247); - data.append(93); - data.append(113); - data.append(114); - data.append(111); - data.append(220); - data.append(109); data.append(76); - data.append(10); - data.append(129); - data.append(196); - data.append(138); - data.append(103); - data.append(105); - data.append(45); - data.append(216); - data.append(18); + data.append(185); data.append(19); - data.append(240); - data.append(101); - data.append(171); - data.append(110); - data.append(199); - data.append(61); - data.append(33); - data.append(14); - data.append(253); - data.append(106); - data.append(3); - data.append(147); - data.append(132); - data.append(86); - data.append(186); - data.append(236); - data.append(196); - data.append(178); - data.append(125); - data.append(168); - data.append(81); - data.append(116); - data.append(115); - data.append(140); - data.append(32); - data.append(249); - data.append(147); - data.append(72); data.append(94); - data.append(88); - data.append(173); - data.append(177); + data.append(97); + data.append(78); data.append(137); + data.append(103); + data.append(231); + data.append(92); + data.append(66); + data.append(201); + data.append(100); + data.append(29); + data.append(87); + data.append(132); + data.append(42); data.append(99); - data.append(40); + data.append(213); data.append(35); - data.append(40); - data.append(160); - data.append(33); + data.append(22); + data.append(98); + data.append(236); + data.append(226); + data.append(254); data.append(214); - data.append(95); + data.append(34); + data.append(10); + data.append(223); + data.append(26); + data.append(231); data.append(229); - data.append(100); - data.append(101); - data.append(87); - data.append(122); - data.append(130); - data.append(170); - data.append(7); - data.append(63); data.append(226); - data.append(187); - data.append(77); - data.append(166); - data.append(74); - data.append(111); - data.append(20); - data.append(150); - data.append(211); - data.append(8); - data.append(68); - data.append(79); - data.append(8); - data.append(49); - data.append(205); - data.append(31); - data.append(23); - data.append(148); - data.append(36); - data.append(44); - data.append(38); - data.append(178); - data.append(84); - data.append(190); - data.append(120); - data.append(204); - data.append(114); + data.append(70); data.append(205); - data.append(138); - data.append(201); - data.append(61); - data.append(137); - data.append(35); - data.append(139); - data.append(77); data.append(40); - data.append(179); - data.append(56); - data.append(139); - data.append(14); - data.append(2); - data.append(254); - data.append(62); - data.append(46); - data.append(216); - data.append(163); - data.append(76); - data.append(176); - data.append(209); - data.append(11); - data.append(245); - data.append(3); - data.append(213); - data.append(146); - data.append(99); - data.append(200); - data.append(57); + data.append(170); + data.append(152); data.append(174); - data.append(16); - data.append(117); - data.append(155); - data.append(216); - data.append(40); - data.append(23); - data.append(204); - data.append(158); - data.append(185); - data.append(117); - data.append(135); - data.append(13); + data.append(41); + data.append(86); data.append(79); - data.append(78); - data.append(52); - data.append(42); - data.append(210); - data.append(160); - data.append(210); - data.append(83); - data.append(20); - data.append(153); + data.append(178); data.append(37); - data.append(148); - data.append(30); - data.append(104); - data.append(230); - data.append(66); - data.append(11); - data.append(105); - data.append(253); - data.append(221); - data.append(141); - data.append(24); - data.append(56); - data.append(104); - data.append(77); - data.append(51); - data.append(129); - data.append(147); - data.append(170); - data.append(93); - data.append(13); - data.append(92); - data.append(145); - data.append(229); - data.append(213); - data.append(22); - data.append(241); - data.append(141); + data.append(116); data.append(115); + data.append(18); + data.append(227); + data.append(113); + data.append(248); + data.append(152); + data.append(171); + data.append(250); data.append(25); - data.append(108); - data.append(89); - data.append(17); + data.append(21); + data.append(248); + data.append(193); + data.append(99); + data.append(177); + data.append(7); data.append(11); - data.append(241); - data.append(72); - data.append(211); - data.append(199); - data.append(47); - data.append(223); - data.append(125); - data.append(163); - data.append(57); - data.append(70); - data.append(166); - data.append(243); - data.append(146); - data.append(128); - data.append(173); - data.append(115); - data.append(209); - data.append(65); - data.append(220); - data.append(111); - data.append(86); - data.append(253); - data.append(199); - data.append(115); - data.append(32); - data.append(69); - data.append(54); + data.append(184); data.append(231); - data.append(116); - data.append(76); - data.append(126); - data.append(97); - data.append(121); - data.append(213); - data.append(229); - data.append(152); - data.append(166); - data.append(66); - data.append(158); + data.append(187); + data.append(42); + data.append(1); + data.append(234); + data.append(196); + data.append(208); + data.append(147); data.append(138); - data.append(12); - data.append(145); - data.append(41); - data.append(95); - data.append(254); - data.append(97); - data.append(19); - data.append(229); - data.append(95); - data.append(158); - data.append(47); + data.append(127); + data.append(155); + data.append(15); + data.append(239); + data.append(125); + data.append(62); + data.append(72); + data.append(195); data.append(194); - data.append(207); - data.append(37); - data.append(226); - data.append(177); - data.append(144); - data.append(180); - data.append(37); - data.append(218); - data.append(203); - data.append(250); - data.append(11); - data.append(149); + data.append(198); + data.append(102); + data.append(29); + data.append(192); + data.append(104); data.append(153); - data.append(228); - data.append(144); + data.append(179); + data.append(136); + data.append(160); + data.append(130); + data.append(127); + data.append(152); + data.append(122); data.append(31); - data.append(239); - data.append(235); - data.append(77); - data.append(144); - data.append(100); - data.append(60); - data.append(200); + data.append(66); + data.append(31); + data.append(220); + data.append(190); + data.append(121); data.append(136); - data.append(145); data.append(162); - data.append(93); + data.append(52); + data.append(197); + data.append(147); + data.append(239); + data.append(247); + data.append(18); + data.append(209); + data.append(142); + data.append(206); + data.append(123); + data.append(235); + data.append(253); + data.append(85); + data.append(254); + data.append(66); data.append(42); - data.append(223); - data.append(50); - data.append(46); - data.append(121); - data.append(133); - data.append(120); - data.append(179); + data.append(195); + data.append(160); + data.append(44); + data.append(244); + data.append(230); + data.append(62); + data.append(28); + data.append(13); + data.append(0); + data.append(143); + data.append(181); + data.append(220); + data.append(207); + data.append(83); + data.append(170); + data.append(68); + data.append(17); + data.append(209); + data.append(69); + data.append(31); + data.append(81); + data.append(122); + data.append(249); + data.append(204); data.append(87); - data.append(127); - data.append(78); - data.append(123); - data.append(10); - data.append(48); - data.append(202); + data.append(169); + data.append(230); + data.append(29); + data.append(7); + data.append(226); + data.append(5); + data.append(135); + data.append(234); + data.append(110); + data.append(131); + data.append(253); + data.append(138); + data.append(143); + data.append(230); + data.append(206); data.append(178); + data.append(192); + data.append(124); + data.append(246); + data.append(142); + data.append(95); + data.append(216); data.append(167); - data.append(85); + data.append(125); + data.append(160); + data.append(143); + data.append(116); + data.append(60); + data.append(3); + data.append(209); + data.append(152); + data.append(190); + data.append(125); + data.append(167); + data.append(64); data.append(146); + data.append(158); + data.append(89); + data.append(91); + data.append(78); + data.append(36); + data.append(223); + data.append(190); + data.append(85); data.append(207); - data.append(128); - data.append(70); - data.append(87); - data.append(46); - data.append(56); - data.append(47); + data.append(17); + data.append(141); + data.append(61); + data.append(225); data.append(38); + data.append(116); + data.append(191); + data.append(139); + data.append(217); + data.append(167); + data.append(54); data.append(148); + data.append(36); + data.append(220); + data.append(182); + data.append(68); + data.append(95); + data.append(58); + data.append(189); + data.append(62); + data.append(174); + data.append(53); + data.append(79); + data.append(249); + data.append(240); + data.append(102); + data.append(140); + data.append(251); + data.append(49); + data.append(187); + data.append(38); data.append(147); - data.append(109); + data.append(145); + data.append(93); + data.append(247); + data.append(39); + data.append(213); + data.append(8); + data.append(209); + data.append(184); + data.append(234); + data.append(244); + data.append(208); + data.append(97); + data.append(206); + data.append(1); + data.append(137); + data.append(104); + data.append(252); + data.append(188); + data.append(191); + data.append(83); + data.append(101); + data.append(230); + data.append(166); + data.append(50); + data.append(9); + data.append(173); + data.append(65); + data.append(247); + data.append(31); + data.append(184); + data.append(244); + data.append(69); + data.append(152); + data.append(233); + data.append(129); + data.append(88); + data.append(46); + data.append(4); + data.append(156); + data.append(105); data.append(231); - data.append(179); + data.append(65); + data.append(47); + data.append(178); + data.append(231); + data.append(29); + data.append(236); data.append(40); - data.append(251); - data.append(39); - data.append(122); - data.append(15); + data.append(35); + data.append(206); + data.append(109); + data.append(44); + data.append(231); + data.append(127); + data.append(117); + data.append(232); + data.append(198); + data.append(216); + data.append(182); + data.append(227); + data.append(4); + data.append(67); data.append(22); - data.append(208); - data.append(30); - data.append(225); - data.append(151); - data.append(250); data.append(141); - data.append(27); - data.append(217); - data.append(164); - data.append(129); - data.append(160); - data.append(164); + data.append(178); + data.append(118); + data.append(247); + data.append(137); + data.append(206); + data.append(203); + data.append(162); + data.append(123); + data.append(218); + data.append(150); + data.append(94); + data.append(94); + data.append(124); + data.append(138); + data.append(203); data.append(240); - data.append(44); - data.append(121); + data.append(184); + data.append(85); + data.append(49); + data.append(115); + data.append(2); + data.append(7); + data.append(192); + data.append(223); + data.append(14); data.append(97); - data.append(167); - data.append(46); - data.append(134); - data.append(217); - data.append(236); - data.append(3); - data.append(73); - data.append(155); - data.append(16); - data.append(254); - data.append(62); - data.append(196); - data.append(238); - data.append(107); + data.append(218); + data.append(58); data.append(104); - data.append(221); - data.append(163); - data.append(114); - data.append(235); - data.append(215); + data.append(4); + data.append(127); + data.append(214); + data.append(28); + data.append(192); + data.append(141); + data.append(186); + data.append(31); + data.append(186); + data.append(161); + data.append(147); + data.append(175); + data.append(71); + data.append(50); + data.append(113); + data.append(203); + data.append(14); + data.append(218); + data.append(249); + data.append(234); + data.append(88); + data.append(101); + data.append(81); + data.append(97); + data.append(85); + data.append(64); + data.append(78); + data.append(170); + data.append(70); + data.append(78); + data.append(67); + data.append(214); + data.append(186); + data.append(82); + data.append(57); + data.append(203); + data.append(225); + data.append(223); + data.append(205); + data.append(61); + data.append(149); + data.append(9); + data.append(239); + data.append(213); + data.append(180); + data.append(190); + data.append(95); + data.append(232); + data.append(213); + data.append(234); + data.append(33); + data.append(47); + data.append(127); + data.append(70); + data.append(205); + data.append(41); + data.append(201); + data.append(32); + data.append(144); + data.append(24); + data.append(17); + data.append(45); + data.append(56); + data.append(8); + data.append(48); + data.append(26); + data.append(45); + data.append(12); + data.append(156); + data.append(180); + data.append(144); + data.append(73); + data.append(111); + data.append(178); + data.append(55); + data.append(115); + data.append(190); + data.append(146); + data.append(120); + data.append(45); + data.append(23); + data.append(149); + data.append(245); + data.append(77); + data.append(23); + data.append(134); + data.append(24); + data.append(202); + data.append(90); + data.append(96); + data.append(91); + data.append(83); + data.append(27); + data.append(89); + data.append(214); + data.append(44); + data.append(232); + data.append(203); + data.append(60); + data.append(11); + data.append(40); + data.append(1); + data.append(194); + data.append(110); + data.append(91); + data.append(219); + data.append(9); + data.append(166); + data.append(184); + data.append(185); + data.append(91); + data.append(78); + data.append(228); + data.append(218); + data.append(35); + data.append(105); + data.append(68); + data.append(1); + data.append(226); + data.append(177); + data.append(88); + data.append(189); + data.append(57); + data.append(227); + data.append(201); + data.append(74); + data.append(78); + data.append(252); + data.append(205); + data.append(158); + data.append(111); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/slice_u32_3d/output_0.cairo b/tests/nodes/slice_u32_3d/output_0.cairo index fea255f6a..5635dc4fc 100644 --- a/tests/nodes/slice_u32_3d/output_0.cairo +++ b/tests/nodes/slice_u32_3d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,65 +9,65 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(230); - data.append(198); - data.append(114); - data.append(149); - data.append(28); - data.append(210); - data.append(174); - data.append(63); - data.append(232); - data.append(20); - data.append(217); - data.append(109); + data.append(250); + data.append(117); + data.append(180); + data.append(167); + data.append(64); + data.append(228); + data.append(51); + data.append(250); + data.append(173); + data.append(99); + data.append(224); + data.append(188); + data.append(38); + data.append(92); + data.append(239); + data.append(179); + data.append(181); + data.append(183); + data.append(26); + data.append(194); + data.append(153); + data.append(193); + data.append(163); data.append(15); + data.append(155); + data.append(94); + data.append(70); + data.append(88); + data.append(216); + data.append(203); + data.append(81); + data.append(16); + data.append(68); + data.append(216); + data.append(69); + data.append(71); + data.append(153); + data.append(99); + data.append(188); data.append(227); - data.append(223); - data.append(91); - data.append(8); - data.append(122); - data.append(254); - data.append(184); - data.append(250); - data.append(89); - data.append(175); - data.append(27); - data.append(67); - data.append(172); - data.append(220); - data.append(168); - data.append(229); - data.append(34); - data.append(169); + data.append(40); + data.append(185); + data.append(92); + data.append(159); data.append(107); - data.append(123); - data.append(19); + data.append(253); + data.append(41); data.append(103); - data.append(123); - data.append(206); - data.append(146); - data.append(12); - data.append(208); - data.append(36); - data.append(237); - data.append(192); - data.append(108); - data.append(243); - data.append(15); - data.append(27); - data.append(120); - data.append(67); - data.append(108); - data.append(31); - data.append(73); - data.append(87); - data.append(75); - data.append(227); - data.append(232); - data.append(164); - data.append(144); - data.append(152); - data.append(22); + data.append(53); + data.append(188); + data.append(235); + data.append(179); + data.append(161); + data.append(169); + data.append(248); + data.append(9); + data.append(186); + data.append(198); + data.append(125); + data.append(213); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softmax_fp16x16.cairo b/tests/nodes/softmax_fp16x16.cairo index 3dd826994..84fe1cf3d 100644 --- a/tests/nodes/softmax_fp16x16.cairo +++ b/tests/nodes/softmax_fp16x16.cairo @@ -3,10 +3,10 @@ mod output_0; use orion::operators::nn::NNTrait; -use orion::numbers::FixedTrait; -use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::FP16x16NN; +use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/softmax_fp16x16/input_0.cairo b/tests/nodes/softmax_fp16x16/input_0.cairo index 9c2bd5bb8..eb5a6bc69 100644 --- a/tests/nodes/softmax_fp16x16/input_0.cairo +++ b/tests/nodes/softmax_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3889, sign: false }); - data.append(FP16x16 { mag: 89405, sign: false }); - data.append(FP16x16 { mag: 78312, sign: false }); - data.append(FP16x16 { mag: 139730, sign: false }); + data.append(FP16x16 { mag: 93078, sign: true }); + data.append(FP16x16 { mag: 53025, sign: false }); + data.append(FP16x16 { mag: 183455, sign: true }); + data.append(FP16x16 { mag: 61044, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softmax_fp16x16/output_0.cairo b/tests/nodes/softmax_fp16x16/output_0.cairo index ffb0d93c0..22ee5fe31 100644 --- a/tests/nodes/softmax_fp16x16/output_0.cairo +++ b/tests/nodes/softmax_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 13981, sign: false }); - data.append(FP16x16 { mag: 51554, sign: false }); - data.append(FP16x16 { mag: 18446, sign: false }); - data.append(FP16x16 { mag: 47089, sign: false }); + data.append(FP16x16 { mag: 6366, sign: false }); + data.append(FP16x16 { mag: 59169, sign: false }); + data.append(FP16x16 { mag: 8768, sign: false }); + data.append(FP16x16 { mag: 56767, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softmax_fp8x23.cairo b/tests/nodes/softmax_fp8x23.cairo index 3606e8215..616810b5a 100644 --- a/tests/nodes/softmax_fp8x23.cairo +++ b/tests/nodes/softmax_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP8x23NN; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/softmax_fp8x23/input_0.cairo b/tests/nodes/softmax_fp8x23/input_0.cairo index e28b5fc54..673dc8546 100644 --- a/tests/nodes/softmax_fp8x23/input_0.cairo +++ b/tests/nodes/softmax_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 9804113, sign: true }); - data.append(FP8x23 { mag: 8638782, sign: true }); - data.append(FP8x23 { mag: 20159749, sign: true }); - data.append(FP8x23 { mag: 2673667, sign: true }); + data.append(FP8x23 { mag: 12134368, sign: false }); + data.append(FP8x23 { mag: 22252681, sign: true }); + data.append(FP8x23 { mag: 1818273, sign: false }); + data.append(FP8x23 { mag: 18287369, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softmax_fp8x23/output_0.cairo b/tests/nodes/softmax_fp8x23/output_0.cairo index ae6c93cc7..a8f691a14 100644 --- a/tests/nodes/softmax_fp8x23/output_0.cairo +++ b/tests/nodes/softmax_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 6497841, sign: false }); - data.append(FP8x23 { mag: 2762842, sign: false }); - data.append(FP8x23 { mag: 1890766, sign: false }); - data.append(FP8x23 { mag: 5625765, sign: false }); + data.append(FP8x23 { mag: 6490929, sign: false }); + data.append(FP8x23 { mag: 3221031, sign: false }); + data.append(FP8x23 { mag: 1897678, sign: false }); + data.append(FP8x23 { mag: 5167576, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softplus_fp16x16.cairo b/tests/nodes/softplus_fp16x16.cairo index ce5d46cf3..9d38388b5 100644 --- a/tests/nodes/softplus_fp16x16.cairo +++ b/tests/nodes/softplus_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; -use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::FP16x16NN; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/softplus_fp16x16/input_0.cairo b/tests/nodes/softplus_fp16x16/input_0.cairo index 288f7e288..ce95117ad 100644 --- a/tests/nodes/softplus_fp16x16/input_0.cairo +++ b/tests/nodes/softplus_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 109682, sign: true }); - data.append(FP16x16 { mag: 76425, sign: false }); - data.append(FP16x16 { mag: 182796, sign: false }); - data.append(FP16x16 { mag: 7375, sign: false }); + data.append(FP16x16 { mag: 161441, sign: false }); + data.append(FP16x16 { mag: 150396, sign: true }); + data.append(FP16x16 { mag: 85051, sign: false }); + data.append(FP16x16 { mag: 84216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softplus_fp16x16/output_0.cairo b/tests/nodes/softplus_fp16x16/output_0.cairo index 73ed513e9..ddb849f67 100644 --- a/tests/nodes/softplus_fp16x16/output_0.cairo +++ b/tests/nodes/softplus_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 11266, sign: false }); - data.append(FP16x16 { mag: 94200, sign: false }); - data.append(FP16x16 { mag: 186705, sign: false }); - data.append(FP16x16 { mag: 49217, sign: false }); + data.append(FP16x16 { mag: 166796, sign: false }); + data.append(FP16x16 { mag: 6292, sign: false }); + data.append(FP16x16 { mag: 100877, sign: false }); + data.append(FP16x16 { mag: 100222, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softplus_fp8x23.cairo b/tests/nodes/softplus_fp8x23.cairo index c19758457..3e4aa66d1 100644 --- a/tests/nodes/softplus_fp8x23.cairo +++ b/tests/nodes/softplus_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; -use orion::operators::nn::FP8x23NN; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::FP8x23NN; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/softplus_fp8x23/input_0.cairo b/tests/nodes/softplus_fp8x23/input_0.cairo index 421daca81..1366e0fe6 100644 --- a/tests/nodes/softplus_fp8x23/input_0.cairo +++ b/tests/nodes/softplus_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 3471357, sign: true }); - data.append(FP8x23 { mag: 13111113, sign: true }); - data.append(FP8x23 { mag: 21113375, sign: true }); - data.append(FP8x23 { mag: 7707092, sign: false }); + data.append(FP8x23 { mag: 1671451, sign: false }); + data.append(FP8x23 { mag: 16881148, sign: false }); + data.append(FP8x23 { mag: 12284682, sign: true }); + data.append(FP8x23 { mag: 3896102, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softplus_fp8x23/output_0.cairo b/tests/nodes/softplus_fp8x23/output_0.cairo index 0b3351bfc..2f04a0dd3 100644 --- a/tests/nodes/softplus_fp8x23/output_0.cairo +++ b/tests/nodes/softplus_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 4257158, sign: false }); - data.append(FP8x23 { mag: 1595666, sign: false }); - data.append(FP8x23 { mag: 651097, sign: false }); - data.append(FP8x23 { mag: 10523719, sign: false }); + data.append(FP8x23 { mag: 6691827, sign: false }); + data.append(FP8x23 { mag: 17933576, sign: false }); + data.append(FP8x23 { mag: 1744778, sign: false }); + data.append(FP8x23 { mag: 7986780, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softsign_fp16x16.cairo b/tests/nodes/softsign_fp16x16.cairo index 54c8a8e52..d296738d9 100644 --- a/tests/nodes/softsign_fp16x16.cairo +++ b/tests/nodes/softsign_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP16x16TensorPartialEq; +use orion::operators::nn::FP16x16NN; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; -use orion::operators::nn::FP16x16NN; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/softsign_fp16x16/input_0.cairo b/tests/nodes/softsign_fp16x16/input_0.cairo index 6814159d6..8ea6dd409 100644 --- a/tests/nodes/softsign_fp16x16/input_0.cairo +++ b/tests/nodes/softsign_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 139604, sign: true }); - data.append(FP16x16 { mag: 91968, sign: true }); - data.append(FP16x16 { mag: 455699, sign: false }); - data.append(FP16x16 { mag: 243346, sign: false }); + data.append(FP16x16 { mag: 94429, sign: false }); + data.append(FP16x16 { mag: 120534, sign: false }); + data.append(FP16x16 { mag: 76944, sign: false }); + data.append(FP16x16 { mag: 101513, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softsign_fp16x16/output_0.cairo b/tests/nodes/softsign_fp16x16/output_0.cairo index f810d6d2f..b5acef156 100644 --- a/tests/nodes/softsign_fp16x16/output_0.cairo +++ b/tests/nodes/softsign_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 44599, sign: true }); - data.append(FP16x16 { mag: 38267, sign: true }); - data.append(FP16x16 { mag: 57296, sign: false }); - data.append(FP16x16 { mag: 51631, sign: false }); + data.append(FP16x16 { mag: 38686, sign: false }); + data.append(FP16x16 { mag: 42453, sign: false }); + data.append(FP16x16 { mag: 35391, sign: false }); + data.append(FP16x16 { mag: 39825, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softsign_fp8x23.cairo b/tests/nodes/softsign_fp8x23.cairo index d637d3b20..7c798c51e 100644 --- a/tests/nodes/softsign_fp8x23.cairo +++ b/tests/nodes/softsign_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::FP8x23TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; use orion::operators::nn::FP8x23NN; -use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/softsign_fp8x23/input_0.cairo b/tests/nodes/softsign_fp8x23/input_0.cairo index 0b2be82e9..7aac86708 100644 --- a/tests/nodes/softsign_fp8x23/input_0.cairo +++ b/tests/nodes/softsign_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 47253221, sign: false }); - data.append(FP8x23 { mag: 50936689, sign: false }); - data.append(FP8x23 { mag: 5714756, sign: true }); - data.append(FP8x23 { mag: 15620718, sign: false }); + data.append(FP8x23 { mag: 8239123, sign: true }); + data.append(FP8x23 { mag: 12120350, sign: true }); + data.append(FP8x23 { mag: 36802817, sign: true }); + data.append(FP8x23 { mag: 40957510, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/softsign_fp8x23/output_0.cairo b/tests/nodes/softsign_fp8x23/output_0.cairo index 1d7f2eecf..5eeb86ef4 100644 --- a/tests/nodes/softsign_fp8x23/output_0.cairo +++ b/tests/nodes/softsign_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 7123934, sign: false }); - data.append(FP8x23 { mag: 7202457, sign: false }); - data.append(FP8x23 { mag: 3399107, sign: true }); - data.append(FP8x23 { mag: 5457715, sign: false }); + data.append(FP8x23 { mag: 4156596, sign: true }); + data.append(FP8x23 { mag: 4957485, sign: true }); + data.append(FP8x23 { mag: 6831481, sign: true }); + data.append(FP8x23 { mag: 6962584, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sqrt_fp16x16.cairo b/tests/nodes/sqrt_fp16x16.cairo index cc793e9b6..4d2c9293f 100644 --- a/tests/nodes/sqrt_fp16x16.cairo +++ b/tests/nodes/sqrt_fp16x16.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sqrt_fp16x16/input_0.cairo b/tests/nodes/sqrt_fp16x16/input_0.cairo index d81ded5b9..e1db93236 100644 --- a/tests/nodes/sqrt_fp16x16/input_0.cairo +++ b/tests/nodes/sqrt_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 317628, sign: false }); - data.append(FP16x16 { mag: 241773, sign: false }); - data.append(FP16x16 { mag: 229884, sign: false }); - data.append(FP16x16 { mag: 311367, sign: false }); + data.append(FP16x16 { mag: 35304, sign: false }); + data.append(FP16x16 { mag: 174531, sign: false }); + data.append(FP16x16 { mag: 314143, sign: false }); + data.append(FP16x16 { mag: 267296, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sqrt_fp16x16/output_0.cairo b/tests/nodes/sqrt_fp16x16/output_0.cairo index 24dbc38eb..bb72e8a17 100644 --- a/tests/nodes/sqrt_fp16x16/output_0.cairo +++ b/tests/nodes/sqrt_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 144277, sign: false }); - data.append(FP16x16 { mag: 125876, sign: false }); - data.append(FP16x16 { mag: 122742, sign: false }); - data.append(FP16x16 { mag: 142848, sign: false }); + data.append(FP16x16 { mag: 48101, sign: false }); + data.append(FP16x16 { mag: 106948, sign: false }); + data.append(FP16x16 { mag: 143484, sign: false }); + data.append(FP16x16 { mag: 132353, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sqrt_fp8x23.cairo b/tests/nodes/sqrt_fp8x23.cairo index 36e04fcbb..aa1287151 100644 --- a/tests/nodes/sqrt_fp8x23.cairo +++ b/tests/nodes/sqrt_fp8x23.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sqrt_fp8x23/input_0.cairo b/tests/nodes/sqrt_fp8x23/input_0.cairo index c5dfdd6ab..21da94c0b 100644 --- a/tests/nodes/sqrt_fp8x23/input_0.cairo +++ b/tests/nodes/sqrt_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 15040676, sign: false }); - data.append(FP8x23 { mag: 25362172, sign: false }); - data.append(FP8x23 { mag: 25487151, sign: false }); - data.append(FP8x23 { mag: 747202, sign: false }); + data.append(FP8x23 { mag: 45233098, sign: false }); + data.append(FP8x23 { mag: 37995256, sign: false }); + data.append(FP8x23 { mag: 4396876, sign: false }); + data.append(FP8x23 { mag: 35323989, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sqrt_fp8x23/output_0.cairo b/tests/nodes/sqrt_fp8x23/output_0.cairo index 44eab9b45..273cea9a1 100644 --- a/tests/nodes/sqrt_fp8x23/output_0.cairo +++ b/tests/nodes/sqrt_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 11232557, sign: false }); - data.append(FP8x23 { mag: 14586066, sign: false }); - data.append(FP8x23 { mag: 14621960, sign: false }); - data.append(FP8x23 { mag: 2503594, sign: false }); + data.append(FP8x23 { mag: 19479289, sign: false }); + data.append(FP8x23 { mag: 17852935, sign: false }); + data.append(FP8x23 { mag: 6073193, sign: false }); + data.append(FP8x23 { mag: 17213921, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_fP16x16.cairo b/tests/nodes/squeeze_fP16x16.cairo index f2fbbf319..b595e5100 100644 --- a/tests/nodes/squeeze_fP16x16.cairo +++ b/tests/nodes/squeeze_fP16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; #[test] #[available_gas(2000000000)] @@ -14,10 +14,7 @@ fn test_squeeze_fP16x16() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .squeeze( - Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()) - ); + let y = input_0.squeeze(Option::Some(array![0_i32, 2_i32].span())); assert(y.shape == z.shape, 'shapes do not match'); } diff --git a/tests/nodes/squeeze_fP16x16/input_0.cairo b/tests/nodes/squeeze_fP16x16/input_0.cairo index 4cb35e6a3..c512d6e2b 100644 --- a/tests/nodes/squeeze_fP16x16/input_0.cairo +++ b/tests/nodes/squeeze_fP16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,9 +12,9 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 10485760, sign: false }); - data.append(FP16x16 { mag: 14942208, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 10944512, sign: false }); + data.append(FP16x16 { mag: 10092544, sign: false }); + data.append(FP16x16 { mag: 14024704, sign: false }); + data.append(FP16x16 { mag: 14090240, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_fP16x16/output_0.cairo b/tests/nodes/squeeze_fP16x16/output_0.cairo index eb8e6a290..e2e47a8ec 100644 --- a/tests/nodes/squeeze_fP16x16/output_0.cairo +++ b/tests/nodes/squeeze_fP16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,9 +10,9 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 9830400, sign: false }); + data.append(FP16x16 { mag: 9699328, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 10354688, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_fP8x23.cairo b/tests/nodes/squeeze_fP8x23.cairo index 703b42047..0ee6f8a15 100644 --- a/tests/nodes/squeeze_fP8x23.cairo +++ b/tests/nodes/squeeze_fP8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -14,10 +14,7 @@ fn test_squeeze_fP8x23() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .squeeze( - Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()) - ); + let y = input_0.squeeze(Option::Some(array![0_i32, 2_i32].span())); assert(y.shape == z.shape, 'shapes do not match'); } diff --git a/tests/nodes/squeeze_fP8x23/input_0.cairo b/tests/nodes/squeeze_fP8x23/input_0.cairo index 8a66d40bb..b1c0805e0 100644 --- a/tests/nodes/squeeze_fP8x23/input_0.cairo +++ b/tests/nodes/squeeze_fP8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,9 +12,9 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 1367343104, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 2021654528, sign: false }); + data.append(FP8x23 { mag: 1283457024, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_fP8x23/output_0.cairo b/tests/nodes/squeeze_fP8x23/output_0.cairo index fd030641c..57cf69f5a 100644 --- a/tests/nodes/squeeze_fP8x23/output_0.cairo +++ b/tests/nodes/squeeze_fP8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,9 +10,9 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1585446912, sign: false }); - data.append(FP8x23 { mag: 1476395008, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 1862270976, sign: false }); + data.append(FP8x23 { mag: 1149239296, sign: false }); + data.append(FP8x23 { mag: 1912602624, sign: false }); + data.append(FP8x23 { mag: 1887436800, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_i32.cairo b/tests/nodes/squeeze_i32.cairo index 7eeac961b..ce880a31c 100644 --- a/tests/nodes/squeeze_i32.cairo +++ b/tests/nodes/squeeze_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] @@ -14,10 +14,7 @@ fn test_squeeze_i32() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .squeeze( - Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()) - ); + let y = input_0.squeeze(Option::Some(array![0_i32, 2_i32].span())); assert(y.shape == z.shape, 'shapes do not match'); } diff --git a/tests/nodes/squeeze_i32/input_0.cairo b/tests/nodes/squeeze_i32/input_0.cairo index cacbff24d..ba2da1f2c 100644 --- a/tests/nodes/squeeze_i32/input_0.cairo +++ b/tests/nodes/squeeze_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,9 +11,9 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_i32/output_0.cairo b/tests/nodes/squeeze_i32/output_0.cairo index 7cdc1af1e..c5ac2b800 100644 --- a/tests/nodes/squeeze_i32/output_0.cairo +++ b/tests/nodes/squeeze_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_i8.cairo b/tests/nodes/squeeze_i8.cairo index 9b816a9ab..1a5f9147f 100644 --- a/tests/nodes/squeeze_i8.cairo +++ b/tests/nodes/squeeze_i8.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -14,10 +14,7 @@ fn test_squeeze_i8() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .squeeze( - Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()) - ); + let y = input_0.squeeze(Option::Some(array![0_i32, 2_i32].span())); assert(y.shape == z.shape, 'shapes do not match'); } diff --git a/tests/nodes/squeeze_i8/input_0.cairo b/tests/nodes/squeeze_i8/input_0.cairo index 33939c960..895a846ae 100644 --- a/tests/nodes/squeeze_i8/input_0.cairo +++ b/tests/nodes/squeeze_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,9 +11,9 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_i8/output_0.cairo b/tests/nodes/squeeze_i8/output_0.cairo index fe057a7c8..4386bf12c 100644 --- a/tests/nodes/squeeze_i8/output_0.cairo +++ b/tests/nodes/squeeze_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/squeeze_u32.cairo b/tests/nodes/squeeze_u32.cairo index 31b951cab..15939db4a 100644 --- a/tests/nodes/squeeze_u32.cairo +++ b/tests/nodes/squeeze_u32.cairo @@ -1,32 +1,12 @@ mod input_0; mod output_0; -mod output_non_axes; -mod output_negatives; + +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::numbers::signed_integer::i32::{i32, IntegerTrait}; - -// Non Axes parameters -fn non_axes() { - let input_0 = input_0::input_0(); - let none_axes = input_0.squeeze(Option::None(())); - let z = output_non_axes::non_axes(); - assert(none_axes.shape == z.shape, 'shapes do not match (non axes)'); -} - -// Negatives Axes -fn negatives() { - let input_0 = input_0::input_0(); - let negatives = input_0 - .squeeze( - Option::Some(array![i32 { mag: 5, sign: true }, i32 { mag: 3, sign: true }].span()) - ); - let z = output_negatives::negatives(); - assert(negatives.shape == z.shape, 'shapes do not match (negatives)'); -} +use orion::utils::{assert_eq, assert_seq_eq}; #[test] #[available_gas(2000000000)] @@ -34,14 +14,7 @@ fn test_squeeze_u32() { let input_0 = input_0::input_0(); let z = output_0::output_0(); - let y = input_0 - .squeeze( - Option::Some(array![i32 { mag: 0, sign: false }, i32 { mag: 2, sign: false }].span()) - ); + let y = input_0.squeeze(Option::Some(array![0_i32, 2_i32].span())); assert(y.shape == z.shape, 'shapes do not match'); - - non_axes(); - - negatives(); } diff --git a/tests/nodes/squeeze_u32/input_0.cairo b/tests/nodes/squeeze_u32/input_0.cairo index 583295a7f..439079f67 100644 --- a/tests/nodes/squeeze_u32/input_0.cairo +++ b/tests/nodes/squeeze_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/squeeze_u32/output_0.cairo b/tests/nodes/squeeze_u32/output_0.cairo index bb197c71e..f5f6fa988 100644 --- a/tests/nodes/squeeze_u32/output_0.cairo +++ b/tests/nodes/squeeze_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/sub_fp16x16.cairo b/tests/nodes/sub_fp16x16.cairo index 086be5940..ebdbc7b66 100644 --- a/tests/nodes/sub_fp16x16.cairo +++ b/tests/nodes/sub_fp16x16.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_fp16x16/input_0.cairo b/tests/nodes/sub_fp16x16/input_0.cairo index 4ad0ec969..6777291db 100644 --- a/tests/nodes/sub_fp16x16/input_0.cairo +++ b/tests/nodes/sub_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp16x16/input_1.cairo b/tests/nodes/sub_fp16x16/input_1.cairo index 655693ceb..2ab93f322 100644 --- a/tests/nodes/sub_fp16x16/input_1.cairo +++ b/tests/nodes/sub_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp16x16/output_0.cairo b/tests/nodes/sub_fp16x16/output_0.cairo index ce2b2b972..9430d8dd6 100644 --- a/tests/nodes/sub_fp16x16/output_0.cairo +++ b/tests/nodes/sub_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp16x16_broadcast.cairo b/tests/nodes/sub_fp16x16_broadcast.cairo index e96d0f5c3..2f9251c4a 100644 --- a/tests/nodes/sub_fp16x16_broadcast.cairo +++ b/tests/nodes/sub_fp16x16_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::FP16x16TensorPartialEq; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; -use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_fp16x16_broadcast/input_0.cairo b/tests/nodes/sub_fp16x16_broadcast/input_0.cairo index 38dd0ee84..791f1a254 100644 --- a/tests/nodes/sub_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/sub_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp16x16_broadcast/input_1.cairo b/tests/nodes/sub_fp16x16_broadcast/input_1.cairo index 1f419f7f1..3f4fc6cb8 100644 --- a/tests/nodes/sub_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/sub_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp16x16_broadcast/output_0.cairo b/tests/nodes/sub_fp16x16_broadcast/output_0.cairo index 8149d6eb0..358d09d98 100644 --- a/tests/nodes/sub_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/sub_fp16x16_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp8x23.cairo b/tests/nodes/sub_fp8x23.cairo index 8ff6ba6cc..0c6a920a0 100644 --- a/tests/nodes/sub_fp8x23.cairo +++ b/tests/nodes/sub_fp8x23.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_fp8x23/input_0.cairo b/tests/nodes/sub_fp8x23/input_0.cairo index 16cb46268..4ef47e540 100644 --- a/tests/nodes/sub_fp8x23/input_0.cairo +++ b/tests/nodes/sub_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp8x23/input_1.cairo b/tests/nodes/sub_fp8x23/input_1.cairo index 69a7bb90b..e251b012f 100644 --- a/tests/nodes/sub_fp8x23/input_1.cairo +++ b/tests/nodes/sub_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp8x23/output_0.cairo b/tests/nodes/sub_fp8x23/output_0.cairo index 46cc1240b..cd956a02f 100644 --- a/tests/nodes/sub_fp8x23/output_0.cairo +++ b/tests/nodes/sub_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp8x23_broadcast.cairo b/tests/nodes/sub_fp8x23_broadcast.cairo index ba1a2369b..865fbe5fc 100644 --- a/tests/nodes/sub_fp8x23_broadcast.cairo +++ b/tests/nodes/sub_fp8x23_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_fp8x23_broadcast/input_0.cairo b/tests/nodes/sub_fp8x23_broadcast/input_0.cairo index 0913d3674..a2eed17a2 100644 --- a/tests/nodes/sub_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/sub_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp8x23_broadcast/input_1.cairo b/tests/nodes/sub_fp8x23_broadcast/input_1.cairo index 0cb455683..7ed03d879 100644 --- a/tests/nodes/sub_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/sub_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_fp8x23_broadcast/output_0.cairo b/tests/nodes/sub_fp8x23_broadcast/output_0.cairo index f716282f7..91dce4792 100644 --- a/tests/nodes/sub_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/sub_fp8x23_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i32.cairo b/tests/nodes/sub_i32.cairo index 547fe7582..001dc5c24 100644 --- a/tests/nodes/sub_i32.cairo +++ b/tests/nodes/sub_i32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_i32/input_0.cairo b/tests/nodes/sub_i32/input_0.cairo index 2767e0edf..0c43ee5dd 100644 --- a/tests/nodes/sub_i32/input_0.cairo +++ b/tests/nodes/sub_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(2); + data.append(1); + data.append(-3); + data.append(0); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(2); + data.append(2); + data.append(-1); + data.append(-2); + data.append(-2); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(0); + data.append(0); + data.append(1); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i32/input_1.cairo b/tests/nodes/sub_i32/input_1.cairo index 3ef0e6f86..f617f38e8 100644 --- a/tests/nodes/sub_i32/input_1.cairo +++ b/tests/nodes/sub_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(1); + data.append(-2); + data.append(-1); + data.append(1); + data.append(-2); + data.append(-1); + data.append(2); + data.append(2); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(1); + data.append(2); + data.append(-1); + data.append(2); + data.append(-3); + data.append(1); + data.append(1); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i32/output_0.cairo b/tests/nodes/sub_i32/output_0.cairo index b4171e4ce..87d52cb8c 100644 --- a/tests/nodes/sub_i32/output_0.cairo +++ b/tests/nodes/sub_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(1); + data.append(3); + data.append(-2); + data.append(-1); + data.append(0); + data.append(-1); + data.append(-3); + data.append(0); + data.append(3); + data.append(-1); + data.append(-1); + data.append(-1); + data.append(2); + data.append(2); + data.append(0); + data.append(1); + data.append(2); + data.append(4); + data.append(2); + data.append(-1); + data.append(-3); + data.append(0); + data.append(-3); + data.append(1); + data.append(-4); + data.append(-2); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i32_broadcast.cairo b/tests/nodes/sub_i32_broadcast.cairo index 2ff141da4..f5c68123b 100644 --- a/tests/nodes/sub_i32_broadcast.cairo +++ b/tests/nodes/sub_i32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_i32_broadcast/input_0.cairo b/tests/nodes/sub_i32_broadcast/input_0.cairo index 90311786f..7f160a7e9 100644 --- a/tests/nodes/sub_i32_broadcast/input_0.cairo +++ b/tests/nodes/sub_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); + data.append(2); + data.append(-3); + data.append(-2); + data.append(-3); + data.append(2); + data.append(2); + data.append(0); + data.append(2); + data.append(-3); + data.append(1); + data.append(0); + data.append(2); + data.append(-1); + data.append(-2); + data.append(2); + data.append(0); + data.append(-3); + data.append(-2); + data.append(-2); + data.append(-2); + data.append(-3); + data.append(2); + data.append(1); + data.append(-2); + data.append(0); + data.append(-2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i32_broadcast/input_1.cairo b/tests/nodes/sub_i32_broadcast/input_1.cairo index 80783189a..a753818aa 100644 --- a/tests/nodes/sub_i32_broadcast/input_1.cairo +++ b/tests/nodes/sub_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i32_broadcast/output_0.cairo b/tests/nodes/sub_i32_broadcast/output_0.cairo index d45f1f1b2..a0aca6d74 100644 --- a/tests/nodes/sub_i32_broadcast/output_0.cairo +++ b/tests/nodes/sub_i32_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 3, sign: true }); + data.append(1); + data.append(-4); + data.append(-3); + data.append(-4); + data.append(1); + data.append(1); + data.append(0); + data.append(2); + data.append(-3); + data.append(0); + data.append(-1); + data.append(1); + data.append(-2); + data.append(-3); + data.append(1); + data.append(0); + data.append(-3); + data.append(-2); + data.append(-3); + data.append(-3); + data.append(-4); + data.append(1); + data.append(0); + data.append(-3); + data.append(0); + data.append(-2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i8.cairo b/tests/nodes/sub_i8.cairo index 4917592e4..862e1da36 100644 --- a/tests/nodes/sub_i8.cairo +++ b/tests/nodes/sub_i8.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_i8/input_0.cairo b/tests/nodes/sub_i8/input_0.cairo index 460f7737f..e3d3e4db3 100644 --- a/tests/nodes/sub_i8/input_0.cairo +++ b/tests/nodes/sub_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(-3); + data.append(1); + data.append(-3); + data.append(-3); + data.append(2); + data.append(2); + data.append(-2); + data.append(2); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(0); + data.append(2); + data.append(0); + data.append(1); + data.append(2); + data.append(-2); + data.append(1); + data.append(-2); + data.append(0); + data.append(-2); + data.append(0); + data.append(0); + data.append(-3); + data.append(0); + data.append(-1); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i8/input_1.cairo b/tests/nodes/sub_i8/input_1.cairo index 508d555aa..c21e2d754 100644 --- a/tests/nodes/sub_i8/input_1.cairo +++ b/tests/nodes/sub_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-2); + data.append(-2); + data.append(2); + data.append(2); + data.append(2); + data.append(-3); + data.append(0); + data.append(0); + data.append(2); + data.append(-1); + data.append(-1); + data.append(1); + data.append(-1); + data.append(-2); + data.append(0); + data.append(-1); + data.append(1); + data.append(1); + data.append(-3); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(-3); + data.append(-3); + data.append(2); + data.append(-1); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i8/output_0.cairo b/tests/nodes/sub_i8/output_0.cairo index aa584a384..12bd49d4c 100644 --- a/tests/nodes/sub_i8/output_0.cairo +++ b/tests/nodes/sub_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(-1); + data.append(3); + data.append(-5); + data.append(-5); + data.append(0); + data.append(5); + data.append(-2); + data.append(2); + data.append(-5); + data.append(-2); + data.append(-1); + data.append(-1); + data.append(3); + data.append(2); + data.append(1); + data.append(3); + data.append(-3); + data.append(0); + data.append(1); + data.append(3); + data.append(1); + data.append(1); + data.append(3); + data.append(0); + data.append(-2); + data.append(0); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i8_broadcast.cairo b/tests/nodes/sub_i8_broadcast.cairo index 1843d1239..dc29c9b9c 100644 --- a/tests/nodes/sub_i8_broadcast.cairo +++ b/tests/nodes/sub_i8_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_i8_broadcast/input_0.cairo b/tests/nodes/sub_i8_broadcast/input_0.cairo index 22a424235..9dc61246d 100644 --- a/tests/nodes/sub_i8_broadcast/input_0.cairo +++ b/tests/nodes/sub_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); + data.append(1); + data.append(-2); + data.append(2); + data.append(2); + data.append(-2); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(-3); + data.append(1); + data.append(0); + data.append(1); + data.append(-1); + data.append(-2); + data.append(1); + data.append(-1); + data.append(0); + data.append(-3); + data.append(-3); + data.append(-2); + data.append(-3); + data.append(-1); + data.append(2); + data.append(-1); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i8_broadcast/input_1.cairo b/tests/nodes/sub_i8_broadcast/input_1.cairo index dfedb97c9..cc6686203 100644 --- a/tests/nodes/sub_i8_broadcast/input_1.cairo +++ b/tests/nodes/sub_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,8 +9,8 @@ fn input_1() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: false }); + data.append(-1); + data.append(-2); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_i8_broadcast/output_0.cairo b/tests/nodes/sub_i8_broadcast/output_0.cairo index 5cd828d1c..763a3d934 100644 --- a/tests/nodes/sub_i8_broadcast/output_0.cairo +++ b/tests/nodes/sub_i8_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 1, sign: true }); + data.append(2); + data.append(-1); + data.append(3); + data.append(4); + data.append(0); + data.append(3); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(-2); + data.append(2); + data.append(2); + data.append(3); + data.append(1); + data.append(-1); + data.append(2); + data.append(0); + data.append(1); + data.append(-2); + data.append(-2); + data.append(0); + data.append(-1); + data.append(1); + data.append(3); + data.append(0); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_u32.cairo b/tests/nodes/sub_u32.cairo index 334defef2..f52aa3958 100644 --- a/tests/nodes/sub_u32.cairo +++ b/tests/nodes/sub_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_u32/input_0.cairo b/tests/nodes/sub_u32/input_0.cairo index 6dc12f8b7..ba47142ae 100644 --- a/tests/nodes/sub_u32/input_0.cairo +++ b/tests/nodes/sub_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(5); - data.append(3); + data.append(4); + data.append(5); data.append(3); data.append(3); data.append(5); - data.append(3); data.append(4); - data.append(3); data.append(4); - data.append(3); - data.append(3); data.append(4); data.append(3); - data.append(3); + data.append(5); + data.append(4); + data.append(4); data.append(4); data.append(3); data.append(5); data.append(3); data.append(5); data.append(5); - data.append(4); data.append(3); + data.append(4); data.append(3); data.append(4); data.append(4); - data.append(5); - data.append(5); + data.append(4); + data.append(4); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_u32/input_1.cairo b/tests/nodes/sub_u32/input_1.cairo index 73d70ad88..337d3fae3 100644 --- a/tests/nodes/sub_u32/input_1.cairo +++ b/tests/nodes/sub_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); data.append(1); - data.append(2); - data.append(2); data.append(1); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(2); - data.append(2); data.append(1); data.append(0); data.append(1); data.append(2); - data.append(0); - data.append(0); + data.append(1); + data.append(1); + data.append(2); data.append(2); data.append(1); + data.append(2); + data.append(2); + data.append(2); + data.append(2); data.append(1); - data.append(0); data.append(2); - data.append(0); - data.append(0); + data.append(2); + data.append(2); + data.append(2); data.append(2); data.append(0); - data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_u32/output_0.cairo b/tests/nodes/sub_u32/output_0.cairo index c102ddbe7..6ef0f02ec 100644 --- a/tests/nodes/sub_u32/output_0.cairo +++ b/tests/nodes/sub_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); - data.append(2); - data.append(1); - data.append(1); data.append(4); data.append(3); + data.append(5); + data.append(3); + data.append(3); data.append(3); data.append(3); data.append(4); - data.append(1); - data.append(1); data.append(3); + data.append(1); + data.append(4); data.append(3); data.append(2); data.append(2); + data.append(2); data.append(3); - data.append(5); - data.append(1); - data.append(4); - data.append(4); - data.append(4); data.append(1); data.append(3); + data.append(3); + data.append(2); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(2); data.append(4); data.append(2); - data.append(5); - data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_u32_broadcast.cairo b/tests/nodes/sub_u32_broadcast.cairo index 8d9044649..7ee4a943d 100644 --- a/tests/nodes/sub_u32_broadcast.cairo +++ b/tests/nodes/sub_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::{U32Tensor, U32TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/sub_u32_broadcast/input_0.cairo b/tests/nodes/sub_u32_broadcast/input_0.cairo index d43d2aed5..361e55a15 100644 --- a/tests/nodes/sub_u32_broadcast/input_0.cairo +++ b/tests/nodes/sub_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(5); + data.append(3); + data.append(3); + data.append(3); data.append(4); data.append(4); - data.append(3); data.append(5); data.append(3); data.append(5); data.append(3); - data.append(5); - data.append(4); data.append(3); data.append(3); - data.append(5); - data.append(4); - data.append(5); - data.append(4); data.append(3); data.append(3); data.append(5); - data.append(3); - data.append(3); + data.append(5); + data.append(5); + data.append(5); + data.append(5); + data.append(5); + data.append(5); data.append(5); data.append(4); - data.append(3); data.append(5); + data.append(5); + data.append(5); + data.append(4); data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_u32_broadcast/input_1.cairo b/tests/nodes/sub_u32_broadcast/input_1.cairo index db6884e21..3e0cde967 100644 --- a/tests/nodes/sub_u32_broadcast/input_1.cairo +++ b/tests/nodes/sub_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/sub_u32_broadcast/output_0.cairo b/tests/nodes/sub_u32_broadcast/output_0.cairo index 0a62db6f4..b0bf6c357 100644 --- a/tests/nodes/sub_u32_broadcast/output_0.cairo +++ b/tests/nodes/sub_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(5); - data.append(4); data.append(3); - data.append(2); - data.append(4); data.append(3); - data.append(5); data.append(3); - data.append(5); data.append(4); - data.append(3); - data.append(2); data.append(4); - data.append(3); data.append(5); + data.append(2); data.append(4); + data.append(2); data.append(3); data.append(3); - data.append(5); - data.append(3); - data.append(2); - data.append(4); data.append(3); data.append(3); data.append(5); + data.append(5); + data.append(4); + data.append(4); + data.append(4); + data.append(5); + data.append(5); + data.append(5); + data.append(4); + data.append(5); + data.append(5); + data.append(4); data.append(3); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tanh_fp16x16.cairo b/tests/nodes/tanh_fp16x16.cairo index f6dde2316..c07ea5c94 100644 --- a/tests/nodes/tanh_fp16x16.cairo +++ b/tests/nodes/tanh_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tanh_fp16x16/input_0.cairo b/tests/nodes/tanh_fp16x16/input_0.cairo index a11837980..393761f64 100644 --- a/tests/nodes/tanh_fp16x16/input_0.cairo +++ b/tests/nodes/tanh_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 60947, sign: true }); - data.append(FP16x16 { mag: 18316, sign: true }); - data.append(FP16x16 { mag: 60057, sign: false }); - data.append(FP16x16 { mag: 56869, sign: true }); + data.append(FP16x16 { mag: 178363, sign: false }); + data.append(FP16x16 { mag: 92058, sign: true }); + data.append(FP16x16 { mag: 105941, sign: false }); + data.append(FP16x16 { mag: 33142, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tanh_fp16x16/output_0.cairo b/tests/nodes/tanh_fp16x16/output_0.cairo index ec18da3a8..7eec07f5e 100644 --- a/tests/nodes/tanh_fp16x16/output_0.cairo +++ b/tests/nodes/tanh_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 47879, sign: true }); - data.append(FP16x16 { mag: 17853, sign: true }); - data.append(FP16x16 { mag: 47460, sign: false }); - data.append(FP16x16 { mag: 45890, sign: true }); + data.append(FP16x16 { mag: 64971, sign: false }); + data.append(FP16x16 { mag: 58088, sign: true }); + data.append(FP16x16 { mag: 60563, sign: false }); + data.append(FP16x16 { mag: 30579, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tanh_fp8x23.cairo b/tests/nodes/tanh_fp8x23.cairo index e44bd043a..462e7e339 100644 --- a/tests/nodes/tanh_fp8x23.cairo +++ b/tests/nodes/tanh_fp8x23.cairo @@ -3,10 +3,10 @@ mod output_0; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tanh_fp8x23/input_0.cairo b/tests/nodes/tanh_fp8x23/input_0.cairo index 2a189ed75..bb89398a2 100644 --- a/tests/nodes/tanh_fp8x23/input_0.cairo +++ b/tests/nodes/tanh_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 7865643, sign: false }); - data.append(FP8x23 { mag: 14710904, sign: true }); - data.append(FP8x23 { mag: 8475156, sign: true }); - data.append(FP8x23 { mag: 8392465, sign: false }); + data.append(FP8x23 { mag: 16218201, sign: false }); + data.append(FP8x23 { mag: 13872856, sign: false }); + data.append(FP8x23 { mag: 5093636, sign: false }); + data.append(FP8x23 { mag: 10502723, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tanh_fp8x23/output_0.cairo b/tests/nodes/tanh_fp8x23/output_0.cairo index e9666f3e8..4e14b525b 100644 --- a/tests/nodes/tanh_fp8x23/output_0.cairo +++ b/tests/nodes/tanh_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 6158448, sign: false }); - data.append(FP8x23 { mag: 7900328, sign: true }); - data.append(FP8x23 { mag: 6424778, sign: true }); - data.append(FP8x23 { mag: 6390334, sign: false }); + data.append(FP8x23 { mag: 8044709, sign: false }); + data.append(FP8x23 { mag: 7796150, sign: false }); + data.append(FP8x23 { mag: 4547961, sign: false }); + data.append(FP8x23 { mag: 7120667, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/thresholded_relu_fp16x16.cairo b/tests/nodes/thresholded_relu_fp16x16.cairo index 37c56dc7d..24ac62674 100644 --- a/tests/nodes/thresholded_relu_fp16x16.cairo +++ b/tests/nodes/thresholded_relu_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; use orion::operators::nn::FP16x16NN; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::nn::NNTrait; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/thresholded_relu_fp16x16/input_0.cairo b/tests/nodes/thresholded_relu_fp16x16/input_0.cairo index 8e455f083..0eb6facf4 100644 --- a/tests/nodes/thresholded_relu_fp16x16/input_0.cairo +++ b/tests/nodes/thresholded_relu_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 240273, sign: true }); - data.append(FP16x16 { mag: 61472, sign: true }); - data.append(FP16x16 { mag: 255480, sign: false }); - data.append(FP16x16 { mag: 300914, sign: false }); + data.append(FP16x16 { mag: 167869, sign: false }); + data.append(FP16x16 { mag: 270220, sign: true }); + data.append(FP16x16 { mag: 339394, sign: false }); + data.append(FP16x16 { mag: 326323, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/thresholded_relu_fp16x16/output_0.cairo b/tests/nodes/thresholded_relu_fp16x16/output_0.cairo index 62f8f62cd..08944a03d 100644 --- a/tests/nodes/thresholded_relu_fp16x16/output_0.cairo +++ b/tests/nodes/thresholded_relu_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 167869, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 339394, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 255480, sign: false }); - data.append(FP16x16 { mag: 300914, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/thresholded_relu_fp8x23.cairo b/tests/nodes/thresholded_relu_fp8x23.cairo index 0b9c93534..b2924bb9e 100644 --- a/tests/nodes/thresholded_relu_fp8x23.cairo +++ b/tests/nodes/thresholded_relu_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use orion::operators::nn::NNTrait; use orion::numbers::FixedTrait; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::nn::FP8x23NN; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::nn::NNTrait; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/thresholded_relu_fp8x23/input_0.cairo b/tests/nodes/thresholded_relu_fp8x23/input_0.cairo index e0087725f..774ddd160 100644 --- a/tests/nodes/thresholded_relu_fp8x23/input_0.cairo +++ b/tests/nodes/thresholded_relu_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 47000614, sign: false }); - data.append(FP8x23 { mag: 18049683, sign: false }); - data.append(FP8x23 { mag: 45758723, sign: false }); - data.append(FP8x23 { mag: 45541560, sign: false }); + data.append(FP8x23 { mag: 11927593, sign: false }); + data.append(FP8x23 { mag: 2802160, sign: true }); + data.append(FP8x23 { mag: 23263089, sign: true }); + data.append(FP8x23 { mag: 38955682, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/thresholded_relu_fp8x23/output_0.cairo b/tests/nodes/thresholded_relu_fp8x23/output_0.cairo index 2a42bc535..f77528ef0 100644 --- a/tests/nodes/thresholded_relu_fp8x23/output_0.cairo +++ b/tests/nodes/thresholded_relu_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 47000614, sign: false }); - data.append(FP8x23 { mag: 18049683, sign: false }); - data.append(FP8x23 { mag: 45758723, sign: false }); - data.append(FP8x23 { mag: 45541560, sign: false }); + data.append(FP8x23 { mag: 11927593, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp16x16_2d.cairo b/tests/nodes/transpose_fp16x16_2d.cairo index 3d3b4e6bf..788b0c1b4 100644 --- a/tests/nodes/transpose_fp16x16_2d.cairo +++ b/tests/nodes/transpose_fp16x16_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_fp16x16_2d/input_0.cairo b/tests/nodes/transpose_fp16x16_2d/input_0.cairo index f79afec2f..28dff1929 100644 --- a/tests/nodes/transpose_fp16x16_2d/input_0.cairo +++ b/tests/nodes/transpose_fp16x16_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp16x16_2d/output_0.cairo b/tests/nodes/transpose_fp16x16_2d/output_0.cairo index 1bf86f1fe..a741a247f 100644 --- a/tests/nodes/transpose_fp16x16_2d/output_0.cairo +++ b/tests/nodes/transpose_fp16x16_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp16x16_3d.cairo b/tests/nodes/transpose_fp16x16_3d.cairo index d155fd8f4..2a3b52a2e 100644 --- a/tests/nodes/transpose_fp16x16_3d.cairo +++ b/tests/nodes/transpose_fp16x16_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_fp16x16_3d/input_0.cairo b/tests/nodes/transpose_fp16x16_3d/input_0.cairo index 954e455a1..427cfaf90 100644 --- a/tests/nodes/transpose_fp16x16_3d/input_0.cairo +++ b/tests/nodes/transpose_fp16x16_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp16x16_3d/output_0.cairo b/tests/nodes/transpose_fp16x16_3d/output_0.cairo index 7e4b80f11..d7f0aeb6b 100644 --- a/tests/nodes/transpose_fp16x16_3d/output_0.cairo +++ b/tests/nodes/transpose_fp16x16_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp8x23_2d.cairo b/tests/nodes/transpose_fp8x23_2d.cairo index 1e2ae2ae0..c6b8c37bb 100644 --- a/tests/nodes/transpose_fp8x23_2d.cairo +++ b/tests/nodes/transpose_fp8x23_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_fp8x23_2d/input_0.cairo b/tests/nodes/transpose_fp8x23_2d/input_0.cairo index cfd3dc1ea..e9739b764 100644 --- a/tests/nodes/transpose_fp8x23_2d/input_0.cairo +++ b/tests/nodes/transpose_fp8x23_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp8x23_2d/output_0.cairo b/tests/nodes/transpose_fp8x23_2d/output_0.cairo index 1540cf98c..59e201200 100644 --- a/tests/nodes/transpose_fp8x23_2d/output_0.cairo +++ b/tests/nodes/transpose_fp8x23_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp8x23_3d.cairo b/tests/nodes/transpose_fp8x23_3d.cairo index 34cec3af5..da720efd9 100644 --- a/tests/nodes/transpose_fp8x23_3d.cairo +++ b/tests/nodes/transpose_fp8x23_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_fp8x23_3d/input_0.cairo b/tests/nodes/transpose_fp8x23_3d/input_0.cairo index 9b5b8d83a..092699d37 100644 --- a/tests/nodes/transpose_fp8x23_3d/input_0.cairo +++ b/tests/nodes/transpose_fp8x23_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_fp8x23_3d/output_0.cairo b/tests/nodes/transpose_fp8x23_3d/output_0.cairo index b3c2a1e5d..547ba5907 100644 --- a/tests/nodes/transpose_fp8x23_3d/output_0.cairo +++ b/tests/nodes/transpose_fp8x23_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +10,13 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i32_2d.cairo b/tests/nodes/transpose_i32_2d.cairo index 78fc31213..66b3d2d7e 100644 --- a/tests/nodes/transpose_i32_2d.cairo +++ b/tests/nodes/transpose_i32_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_i32_2d/input_0.cairo b/tests/nodes/transpose_i32_2d/input_0.cairo index b0f7208bd..bac5cb4f0 100644 --- a/tests/nodes/transpose_i32_2d/input_0.cairo +++ b/tests/nodes/transpose_i32_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 76, sign: true }); + data.append(74); + data.append(-23); + data.append(74); + data.append(-54); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i32_2d/output_0.cairo b/tests/nodes/transpose_i32_2d/output_0.cairo index 987f78ee1..a9435c03d 100644 --- a/tests/nodes/transpose_i32_2d/output_0.cairo +++ b/tests/nodes/transpose_i32_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 76, sign: true }); + data.append(74); + data.append(74); + data.append(-23); + data.append(-54); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i32_3d.cairo b/tests/nodes/transpose_i32_3d.cairo index b0b956a38..514315aab 100644 --- a/tests/nodes/transpose_i32_3d.cairo +++ b/tests/nodes/transpose_i32_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_i32_3d/input_0.cairo b/tests/nodes/transpose_i32_3d/input_0.cairo index 9a5420b62..e72e47d99 100644 --- a/tests/nodes/transpose_i32_3d/input_0.cairo +++ b/tests/nodes/transpose_i32_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 54, sign: false }); + data.append(110); + data.append(-71); + data.append(26); + data.append(31); + data.append(-107); + data.append(113); + data.append(-96); + data.append(-118); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i32_3d/output_0.cairo b/tests/nodes/transpose_i32_3d/output_0.cairo index e011cb516..3a2783b88 100644 --- a/tests/nodes/transpose_i32_3d/output_0.cairo +++ b/tests/nodes/transpose_i32_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 54, sign: false }); + data.append(110); + data.append(-107); + data.append(-71); + data.append(113); + data.append(26); + data.append(-96); + data.append(31); + data.append(-118); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i8_2d.cairo b/tests/nodes/transpose_i8_2d.cairo index 7eb4e1a10..b9568eb87 100644 --- a/tests/nodes/transpose_i8_2d.cairo +++ b/tests/nodes/transpose_i8_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_i8_2d/input_0.cairo b/tests/nodes/transpose_i8_2d/input_0.cairo index b67b46955..d1c83af54 100644 --- a/tests/nodes/transpose_i8_2d/input_0.cairo +++ b/tests/nodes/transpose_i8_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 17, sign: true }); + data.append(16); + data.append(-112); + data.append(-40); + data.append(-42); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i8_2d/output_0.cairo b/tests/nodes/transpose_i8_2d/output_0.cairo index 87084a40e..2607d0bb9 100644 --- a/tests/nodes/transpose_i8_2d/output_0.cairo +++ b/tests/nodes/transpose_i8_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 17, sign: true }); + data.append(16); + data.append(-40); + data.append(-112); + data.append(-42); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i8_3d.cairo b/tests/nodes/transpose_i8_3d.cairo index 2c6784b2f..ca5a60c86 100644 --- a/tests/nodes/transpose_i8_3d.cairo +++ b/tests/nodes/transpose_i8_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_i8_3d/input_0.cairo b/tests/nodes/transpose_i8_3d/input_0.cairo index 431d86936..5a073d8c9 100644 --- a/tests/nodes/transpose_i8_3d/input_0.cairo +++ b/tests/nodes/transpose_i8_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 84, sign: true }); + data.append(68); + data.append(-71); + data.append(50); + data.append(117); + data.append(95); + data.append(-9); + data.append(-101); + data.append(-14); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_i8_3d/output_0.cairo b/tests/nodes/transpose_i8_3d/output_0.cairo index 38e5e39a7..363a9bcc9 100644 --- a/tests/nodes/transpose_i8_3d/output_0.cairo +++ b/tests/nodes/transpose_i8_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 84, sign: true }); + data.append(68); + data.append(95); + data.append(-71); + data.append(-9); + data.append(50); + data.append(-101); + data.append(117); + data.append(-14); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_u32_2d.cairo b/tests/nodes/transpose_u32_2d.cairo index 697f484d1..73aa948a3 100644 --- a/tests/nodes/transpose_u32_2d.cairo +++ b/tests/nodes/transpose_u32_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_u32_2d/input_0.cairo b/tests/nodes/transpose_u32_2d/input_0.cairo index 5784e9bd6..9b25966b3 100644 --- a/tests/nodes/transpose_u32_2d/input_0.cairo +++ b/tests/nodes/transpose_u32_2d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(128); - data.append(228); - data.append(50); - data.append(212); + data.append(45); + data.append(165); + data.append(197); + data.append(139); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_u32_2d/output_0.cairo b/tests/nodes/transpose_u32_2d/output_0.cairo index 846a94598..244f90eff 100644 --- a/tests/nodes/transpose_u32_2d/output_0.cairo +++ b/tests/nodes/transpose_u32_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(128); - data.append(50); - data.append(228); - data.append(212); + data.append(45); + data.append(197); + data.append(165); + data.append(139); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_u32_3d.cairo b/tests/nodes/transpose_u32_3d.cairo index f757b6d53..76548bf26 100644 --- a/tests/nodes/transpose_u32_3d.cairo +++ b/tests/nodes/transpose_u32_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/transpose_u32_3d/input_0.cairo b/tests/nodes/transpose_u32_3d/input_0.cairo index 3ea575188..8e39e9da4 100644 --- a/tests/nodes/transpose_u32_3d/input_0.cairo +++ b/tests/nodes/transpose_u32_3d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(6); - data.append(44); - data.append(94); - data.append(97); - data.append(104); - data.append(24); + data.append(93); + data.append(120); + data.append(177); data.append(21); - data.append(83); + data.append(212); + data.append(82); + data.append(91); + data.append(240); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/transpose_u32_3d/output_0.cairo b/tests/nodes/transpose_u32_3d/output_0.cairo index 88eccc8a5..c2bfe98b2 100644 --- a/tests/nodes/transpose_u32_3d/output_0.cairo +++ b/tests/nodes/transpose_u32_3d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +9,13 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(6); - data.append(104); - data.append(44); - data.append(24); - data.append(94); + data.append(93); + data.append(212); + data.append(120); + data.append(82); + data.append(177); + data.append(91); data.append(21); - data.append(97); - data.append(83); + data.append(240); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16.cairo b/tests/nodes/tril_fp16x16.cairo index 2e2da9b02..f6ad66b92 100644 --- a/tests/nodes/tril_fp16x16.cairo +++ b/tests/nodes/tril_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16/input_0.cairo b/tests/nodes/tril_fp16x16/input_0.cairo index 931cc8701..17c0ee681 100644 --- a/tests/nodes/tril_fp16x16/input_0.cairo +++ b/tests/nodes/tril_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16/output_0.cairo b/tests/nodes/tril_fp16x16/output_0.cairo index bdc3a062d..6a0cd2f12 100644 --- a/tests/nodes/tril_fp16x16/output_0.cairo +++ b/tests/nodes/tril_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_neg.cairo b/tests/nodes/tril_fp16x16_neg.cairo index 29a334ffb..00240e62a 100644 --- a/tests/nodes/tril_fp16x16_neg.cairo +++ b/tests/nodes/tril_fp16x16_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_neg/input_0.cairo b/tests/nodes/tril_fp16x16_neg/input_0.cairo index 4f65d9044..bdb7aa2d2 100644 --- a/tests/nodes/tril_fp16x16_neg/input_0.cairo +++ b/tests/nodes/tril_fp16x16_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_neg/output_0.cairo b/tests/nodes/tril_fp16x16_neg/output_0.cairo index 0a3499474..5119675ba 100644 --- a/tests/nodes/tril_fp16x16_neg/output_0.cairo +++ b/tests/nodes/tril_fp16x16_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -15,19 +14,19 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/tril_fp16x16_one_row.cairo b/tests/nodes/tril_fp16x16_one_row.cairo index 21b9185af..99acd2dcc 100644 --- a/tests/nodes/tril_fp16x16_one_row.cairo +++ b/tests/nodes/tril_fp16x16_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_one_row/input_0.cairo b/tests/nodes/tril_fp16x16_one_row/input_0.cairo index 2a14d7f74..3775354f7 100644 --- a/tests/nodes/tril_fp16x16_one_row/input_0.cairo +++ b/tests/nodes/tril_fp16x16_one_row/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,20 +10,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_one_row/output_0.cairo b/tests/nodes/tril_fp16x16_one_row/output_0.cairo index de948f646..7b6370331 100644 --- a/tests/nodes/tril_fp16x16_one_row/output_0.cairo +++ b/tests/nodes/tril_fp16x16_one_row/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,17 +10,17 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); diff --git a/tests/nodes/tril_fp16x16_out_neg.cairo b/tests/nodes/tril_fp16x16_out_neg.cairo index 97920e946..1d3952433 100644 --- a/tests/nodes/tril_fp16x16_out_neg.cairo +++ b/tests/nodes/tril_fp16x16_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_out_neg/input_0.cairo b/tests/nodes/tril_fp16x16_out_neg/input_0.cairo index 61008c5f6..862a5ca29 100644 --- a/tests/nodes/tril_fp16x16_out_neg/input_0.cairo +++ b/tests/nodes/tril_fp16x16_out_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_out_neg/output_0.cairo b/tests/nodes/tril_fp16x16_out_neg/output_0.cairo index d6e116b53..885025664 100644 --- a/tests/nodes/tril_fp16x16_out_neg/output_0.cairo +++ b/tests/nodes/tril_fp16x16_out_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_fp16x16_out_pos.cairo b/tests/nodes/tril_fp16x16_out_pos.cairo index 85a5841e7..3a93273fc 100644 --- a/tests/nodes/tril_fp16x16_out_pos.cairo +++ b/tests/nodes/tril_fp16x16_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_out_pos/input_0.cairo b/tests/nodes/tril_fp16x16_out_pos/input_0.cairo index a4f3db5a7..98c4d3c68 100644 --- a/tests/nodes/tril_fp16x16_out_pos/input_0.cairo +++ b/tests/nodes/tril_fp16x16_out_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_out_pos/output_0.cairo b/tests/nodes/tril_fp16x16_out_pos/output_0.cairo index 61b48bb9c..3d35f152d 100644 --- a/tests/nodes/tril_fp16x16_out_pos/output_0.cairo +++ b/tests/nodes/tril_fp16x16_out_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_pos.cairo b/tests/nodes/tril_fp16x16_pos.cairo index 136c1c2a9..8c4152b97 100644 --- a/tests/nodes/tril_fp16x16_pos.cairo +++ b/tests/nodes/tril_fp16x16_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_pos/input_0.cairo b/tests/nodes/tril_fp16x16_pos/input_0.cairo index a5a22bff0..dc58061f0 100644 --- a/tests/nodes/tril_fp16x16_pos/input_0.cairo +++ b/tests/nodes/tril_fp16x16_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 983040, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_pos/output_0.cairo b/tests/nodes/tril_fp16x16_pos/output_0.cairo index b970b014e..89c8497c1 100644 --- a/tests/nodes/tril_fp16x16_pos/output_0.cairo +++ b/tests/nodes/tril_fp16x16_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 983040, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_square.cairo b/tests/nodes/tril_fp16x16_square.cairo index dfc388e4e..2780ee504 100644 --- a/tests/nodes/tril_fp16x16_square.cairo +++ b/tests/nodes/tril_fp16x16_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_square/input_0.cairo b/tests/nodes/tril_fp16x16_square/input_0.cairo index 08bd998ab..90efb5dc2 100644 --- a/tests/nodes/tril_fp16x16_square/input_0.cairo +++ b/tests/nodes/tril_fp16x16_square/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 983040, sign: true }); data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_square/output_0.cairo b/tests/nodes/tril_fp16x16_square/output_0.cairo index 1022ef272..fee354ba8 100644 --- a/tests/nodes/tril_fp16x16_square/output_0.cairo +++ b/tests/nodes/tril_fp16x16_square/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7864320, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_square_neg.cairo b/tests/nodes/tril_fp16x16_square_neg.cairo index c9ceaba02..f96c3e013 100644 --- a/tests/nodes/tril_fp16x16_square_neg.cairo +++ b/tests/nodes/tril_fp16x16_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_square_neg/input_0.cairo b/tests/nodes/tril_fp16x16_square_neg/input_0.cairo index 3e3db106a..b432d00ee 100644 --- a/tests/nodes/tril_fp16x16_square_neg/input_0.cairo +++ b/tests/nodes/tril_fp16x16_square_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_square_neg/output_0.cairo b/tests/nodes/tril_fp16x16_square_neg/output_0.cairo index 3d13e2296..64e43fb3d 100644 --- a/tests/nodes/tril_fp16x16_square_neg/output_0.cairo +++ b/tests/nodes/tril_fp16x16_square_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -14,20 +13,20 @@ fn output_0() -> Tensor { data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp16x16_zero.cairo b/tests/nodes/tril_fp16x16_zero.cairo index abaac50dc..fedfe09fc 100644 --- a/tests/nodes/tril_fp16x16_zero.cairo +++ b/tests/nodes/tril_fp16x16_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp16x16_zero/input_0.cairo b/tests/nodes/tril_fp16x16_zero/input_0.cairo index 666b5bd2c..23efab533 100644 --- a/tests/nodes/tril_fp16x16_zero/input_0.cairo +++ b/tests/nodes/tril_fp16x16_zero/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_fp16x16_zero/output_0.cairo b/tests/nodes/tril_fp16x16_zero/output_0.cairo index 0e6541b94..750c66d7c 100644 --- a/tests/nodes/tril_fp16x16_zero/output_0.cairo +++ b/tests/nodes/tril_fp16x16_zero/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_fp8x23.cairo b/tests/nodes/tril_fp8x23.cairo index 307008947..bd4521609 100644 --- a/tests/nodes/tril_fp8x23.cairo +++ b/tests/nodes/tril_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23/input_0.cairo b/tests/nodes/tril_fp8x23/input_0.cairo index c1832f50d..462b08751 100644 --- a/tests/nodes/tril_fp8x23/input_0.cairo +++ b/tests/nodes/tril_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23/output_0.cairo b/tests/nodes/tril_fp8x23/output_0.cairo index b8a1dd6c2..684004dcc 100644 --- a/tests/nodes/tril_fp8x23/output_0.cairo +++ b/tests/nodes/tril_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_neg.cairo b/tests/nodes/tril_fp8x23_neg.cairo index 8cd4b9abc..f4ae740db 100644 --- a/tests/nodes/tril_fp8x23_neg.cairo +++ b/tests/nodes/tril_fp8x23_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_neg/input_0.cairo b/tests/nodes/tril_fp8x23_neg/input_0.cairo index b89eb55ba..555c7803c 100644 --- a/tests/nodes/tril_fp8x23_neg/input_0.cairo +++ b/tests/nodes/tril_fp8x23_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_neg/output_0.cairo b/tests/nodes/tril_fp8x23_neg/output_0.cairo index bda46b941..91a4a91aa 100644 --- a/tests/nodes/tril_fp8x23_neg/output_0.cairo +++ b/tests/nodes/tril_fp8x23_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -15,19 +14,19 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/tril_fp8x23_one_row.cairo b/tests/nodes/tril_fp8x23_one_row.cairo index 5c32732ad..73f091857 100644 --- a/tests/nodes/tril_fp8x23_one_row.cairo +++ b/tests/nodes/tril_fp8x23_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_one_row/input_0.cairo b/tests/nodes/tril_fp8x23_one_row/input_0.cairo index f2a284571..333cd5436 100644 --- a/tests/nodes/tril_fp8x23_one_row/input_0.cairo +++ b/tests/nodes/tril_fp8x23_one_row/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,20 +10,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_one_row/output_0.cairo b/tests/nodes/tril_fp8x23_one_row/output_0.cairo index ae8cfd29e..9f57422cc 100644 --- a/tests/nodes/tril_fp8x23_one_row/output_0.cairo +++ b/tests/nodes/tril_fp8x23_one_row/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,17 +10,17 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); diff --git a/tests/nodes/tril_fp8x23_out_neg.cairo b/tests/nodes/tril_fp8x23_out_neg.cairo index e8e1368d5..214520db0 100644 --- a/tests/nodes/tril_fp8x23_out_neg.cairo +++ b/tests/nodes/tril_fp8x23_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_out_neg/input_0.cairo b/tests/nodes/tril_fp8x23_out_neg/input_0.cairo index 089f6cb42..21efb4a5a 100644 --- a/tests/nodes/tril_fp8x23_out_neg/input_0.cairo +++ b/tests/nodes/tril_fp8x23_out_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_out_neg/output_0.cairo b/tests/nodes/tril_fp8x23_out_neg/output_0.cairo index 674beb169..d106982a9 100644 --- a/tests/nodes/tril_fp8x23_out_neg/output_0.cairo +++ b/tests/nodes/tril_fp8x23_out_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_fp8x23_out_pos.cairo b/tests/nodes/tril_fp8x23_out_pos.cairo index f830ccbe7..66f9677f7 100644 --- a/tests/nodes/tril_fp8x23_out_pos.cairo +++ b/tests/nodes/tril_fp8x23_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_out_pos/input_0.cairo b/tests/nodes/tril_fp8x23_out_pos/input_0.cairo index 5adf09d6f..0b17c7648 100644 --- a/tests/nodes/tril_fp8x23_out_pos/input_0.cairo +++ b/tests/nodes/tril_fp8x23_out_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_out_pos/output_0.cairo b/tests/nodes/tril_fp8x23_out_pos/output_0.cairo index 35ce739ae..22fe1aa54 100644 --- a/tests/nodes/tril_fp8x23_out_pos/output_0.cairo +++ b/tests/nodes/tril_fp8x23_out_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_pos.cairo b/tests/nodes/tril_fp8x23_pos.cairo index 929c91a30..b0384c81a 100644 --- a/tests/nodes/tril_fp8x23_pos.cairo +++ b/tests/nodes/tril_fp8x23_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_pos/input_0.cairo b/tests/nodes/tril_fp8x23_pos/input_0.cairo index 47e991e43..da66ff017 100644 --- a/tests/nodes/tril_fp8x23_pos/input_0.cairo +++ b/tests/nodes/tril_fp8x23_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_pos/output_0.cairo b/tests/nodes/tril_fp8x23_pos/output_0.cairo index cf3352f97..f1cd6c2ab 100644 --- a/tests/nodes/tril_fp8x23_pos/output_0.cairo +++ b/tests/nodes/tril_fp8x23_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_square.cairo b/tests/nodes/tril_fp8x23_square.cairo index 385e116e5..45923d310 100644 --- a/tests/nodes/tril_fp8x23_square.cairo +++ b/tests/nodes/tril_fp8x23_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_square/input_0.cairo b/tests/nodes/tril_fp8x23_square/input_0.cairo index 6657cf439..ace5c3bb4 100644 --- a/tests/nodes/tril_fp8x23_square/input_0.cairo +++ b/tests/nodes/tril_fp8x23_square/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_square/output_0.cairo b/tests/nodes/tril_fp8x23_square/output_0.cairo index bbbb3366a..ec5d9122d 100644 --- a/tests/nodes/tril_fp8x23_square/output_0.cairo +++ b/tests/nodes/tril_fp8x23_square/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 822083584, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_square_neg.cairo b/tests/nodes/tril_fp8x23_square_neg.cairo index 44617f9fc..f606421d8 100644 --- a/tests/nodes/tril_fp8x23_square_neg.cairo +++ b/tests/nodes/tril_fp8x23_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_square_neg/input_0.cairo b/tests/nodes/tril_fp8x23_square_neg/input_0.cairo index f922b5c84..574a3b104 100644 --- a/tests/nodes/tril_fp8x23_square_neg/input_0.cairo +++ b/tests/nodes/tril_fp8x23_square_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_square_neg/output_0.cairo b/tests/nodes/tril_fp8x23_square_neg/output_0.cairo index 6e1d1740b..62f4d63b3 100644 --- a/tests/nodes/tril_fp8x23_square_neg/output_0.cairo +++ b/tests/nodes/tril_fp8x23_square_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -14,20 +13,20 @@ fn output_0() -> Tensor { data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_fp8x23_zero.cairo b/tests/nodes/tril_fp8x23_zero.cairo index ef1fc6981..f94e4f10b 100644 --- a/tests/nodes/tril_fp8x23_zero.cairo +++ b/tests/nodes/tril_fp8x23_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_fp8x23_zero/input_0.cairo b/tests/nodes/tril_fp8x23_zero/input_0.cairo index 61329528f..4ec2f078c 100644 --- a/tests/nodes/tril_fp8x23_zero/input_0.cairo +++ b/tests/nodes/tril_fp8x23_zero/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_fp8x23_zero/output_0.cairo b/tests/nodes/tril_fp8x23_zero/output_0.cairo index c282c2a13..4ef5c95df 100644 --- a/tests/nodes/tril_fp8x23_zero/output_0.cairo +++ b/tests/nodes/tril_fp8x23_zero/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_i32.cairo b/tests/nodes/tril_i32.cairo index f762fe7a8..921289017 100644 --- a/tests/nodes/tril_i32.cairo +++ b/tests/nodes/tril_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32/input_0.cairo b/tests/nodes/tril_i32/input_0.cairo index a7ed93857..bba6edc82 100644 --- a/tests/nodes/tril_i32/input_0.cairo +++ b/tests/nodes/tril_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 51, sign: false }); + data.append(9); + data.append(-26); + data.append(49); + data.append(55); + data.append(28); + data.append(31); + data.append(103); + data.append(-57); + data.append(65); + data.append(-10); + data.append(99); + data.append(-6); + data.append(21); + data.append(-14); + data.append(78); + data.append(31); + data.append(119); + data.append(-121); + data.append(44); + data.append(125); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32/output_0.cairo b/tests/nodes/tril_i32/output_0.cairo index 265d08c8c..9899b95ca 100644 --- a/tests/nodes/tril_i32/output_0.cairo +++ b/tests/nodes/tril_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(9); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(31); + data.append(103); + data.append(0); + data.append(0); + data.append(0); + data.append(99); + data.append(-6); + data.append(21); + data.append(0); + data.append(0); + data.append(31); + data.append(119); + data.append(-121); + data.append(44); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_one_row.cairo b/tests/nodes/tril_i32_one_row.cairo index ec7a6ff0b..38b8ea053 100644 --- a/tests/nodes/tril_i32_one_row.cairo +++ b/tests/nodes/tril_i32_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32_one_row/input_0.cairo b/tests/nodes/tril_i32_one_row/input_0.cairo index 78767b158..6e1dc79f6 100644 --- a/tests/nodes/tril_i32_one_row/input_0.cairo +++ b/tests/nodes/tril_i32_one_row/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 69, sign: false }); + data.append(48); + data.append(-95); + data.append(-5); + data.append(-79); + data.append(-24); + data.append(69); + data.append(-50); + data.append(34); + data.append(-91); + data.append(24); + data.append(-13); + data.append(-117); + data.append(107); + data.append(102); + data.append(77); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_one_row/output_0.cairo b/tests/nodes/tril_i32_one_row/output_0.cairo index 117246623..6b9363ea7 100644 --- a/tests/nodes/tril_i32_one_row/output_0.cairo +++ b/tests/nodes/tril_i32_one_row/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(48); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(69); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(-13); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_out_neg.cairo b/tests/nodes/tril_i32_out_neg.cairo index ae6c98f3e..27307c5ef 100644 --- a/tests/nodes/tril_i32_out_neg.cairo +++ b/tests/nodes/tril_i32_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32_out_neg/input_0.cairo b/tests/nodes/tril_i32_out_neg/input_0.cairo index 4577558d2..6d0b014e5 100644 --- a/tests/nodes/tril_i32_out_neg/input_0.cairo +++ b/tests/nodes/tril_i32_out_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 100, sign: true }); + data.append(110); + data.append(-94); + data.append(103); + data.append(-52); + data.append(42); + data.append(-26); + data.append(-31); + data.append(-31); + data.append(-81); + data.append(117); + data.append(-17); + data.append(70); + data.append(-96); + data.append(123); + data.append(97); + data.append(-3); + data.append(76); + data.append(-75); + data.append(-26); + data.append(26); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_out_neg/output_0.cairo b/tests/nodes/tril_i32_out_neg/output_0.cairo index 335b98f5b..d842707bc 100644 --- a/tests/nodes/tril_i32_out_neg/output_0.cairo +++ b/tests/nodes/tril_i32_out_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_out_pos.cairo b/tests/nodes/tril_i32_out_pos.cairo index 38df5aca1..27c967f1f 100644 --- a/tests/nodes/tril_i32_out_pos.cairo +++ b/tests/nodes/tril_i32_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32_out_pos/input_0.cairo b/tests/nodes/tril_i32_out_pos/input_0.cairo index 03063076f..1756608ff 100644 --- a/tests/nodes/tril_i32_out_pos/input_0.cairo +++ b/tests/nodes/tril_i32_out_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 58, sign: true }); + data.append(5); + data.append(11); + data.append(21); + data.append(-27); + data.append(98); + data.append(108); + data.append(65); + data.append(-4); + data.append(7); + data.append(-33); + data.append(109); + data.append(-55); + data.append(0); + data.append(-71); + data.append(-108); + data.append(-5); + data.append(-40); + data.append(75); + data.append(69); + data.append(66); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_out_pos/output_0.cairo b/tests/nodes/tril_i32_out_pos/output_0.cairo index 178eb91c6..0244f523f 100644 --- a/tests/nodes/tril_i32_out_pos/output_0.cairo +++ b/tests/nodes/tril_i32_out_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 58, sign: true }); + data.append(5); + data.append(11); + data.append(21); + data.append(-27); + data.append(98); + data.append(108); + data.append(65); + data.append(-4); + data.append(7); + data.append(-33); + data.append(109); + data.append(-55); + data.append(0); + data.append(-71); + data.append(-108); + data.append(-5); + data.append(-40); + data.append(75); + data.append(69); + data.append(66); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_pos.cairo b/tests/nodes/tril_i32_pos.cairo index 2f4cdd21e..c2acfce95 100644 --- a/tests/nodes/tril_i32_pos.cairo +++ b/tests/nodes/tril_i32_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32_pos/input_0.cairo b/tests/nodes/tril_i32_pos/input_0.cairo index e7722fc8c..e17104ab7 100644 --- a/tests/nodes/tril_i32_pos/input_0.cairo +++ b/tests/nodes/tril_i32_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 99, sign: true }); + data.append(-56); + data.append(-29); + data.append(-39); + data.append(100); + data.append(-80); + data.append(-40); + data.append(66); + data.append(-38); + data.append(70); + data.append(59); + data.append(83); + data.append(-81); + data.append(57); + data.append(-48); + data.append(-71); + data.append(109); + data.append(-14); + data.append(25); + data.append(-113); + data.append(88); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_pos/output_0.cairo b/tests/nodes/tril_i32_pos/output_0.cairo index 8d21686c6..0dbc0bbdc 100644 --- a/tests/nodes/tril_i32_pos/output_0.cairo +++ b/tests/nodes/tril_i32_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 99, sign: true }); + data.append(-56); + data.append(-29); + data.append(-39); + data.append(0); + data.append(0); + data.append(-40); + data.append(66); + data.append(-38); + data.append(70); + data.append(0); + data.append(83); + data.append(-81); + data.append(57); + data.append(-48); + data.append(-71); + data.append(109); + data.append(-14); + data.append(25); + data.append(-113); + data.append(88); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_square.cairo b/tests/nodes/tril_i32_square.cairo index e86fdbc28..98eb6e9d1 100644 --- a/tests/nodes/tril_i32_square.cairo +++ b/tests/nodes/tril_i32_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32_square/input_0.cairo b/tests/nodes/tril_i32_square/input_0.cairo index fb2071eb8..4b4a3e4f1 100644 --- a/tests/nodes/tril_i32_square/input_0.cairo +++ b/tests/nodes/tril_i32_square/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 52, sign: false }); + data.append(-58); + data.append(48); + data.append(-67); + data.append(-75); + data.append(28); + data.append(-1); + data.append(86); + data.append(-38); + data.append(-47); + data.append(-30); + data.append(-27); + data.append(82); + data.append(-61); + data.append(-69); + data.append(-113); + data.append(45); + data.append(108); + data.append(-68); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_square/output_0.cairo b/tests/nodes/tril_i32_square/output_0.cairo index 4b48aa2c6..a271094f8 100644 --- a/tests/nodes/tril_i32_square/output_0.cairo +++ b/tests/nodes/tril_i32_square/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 52, sign: false }); + data.append(-58); + data.append(0); + data.append(0); + data.append(-75); + data.append(28); + data.append(0); + data.append(86); + data.append(-38); + data.append(-47); + data.append(-30); + data.append(0); + data.append(0); + data.append(-61); + data.append(-69); + data.append(0); + data.append(45); + data.append(108); + data.append(-68); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_square_neg.cairo b/tests/nodes/tril_i32_square_neg.cairo index efee1ac36..8b6db47f4 100644 --- a/tests/nodes/tril_i32_square_neg.cairo +++ b/tests/nodes/tril_i32_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32_square_neg/input_0.cairo b/tests/nodes/tril_i32_square_neg/input_0.cairo index 76702e8e3..e03f790a4 100644 --- a/tests/nodes/tril_i32_square_neg/input_0.cairo +++ b/tests/nodes/tril_i32_square_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 2, sign: true }); + data.append(-126); + data.append(120); + data.append(-98); + data.append(-22); + data.append(-68); + data.append(-104); + data.append(-51); + data.append(13); + data.append(-3); + data.append(-60); + data.append(-23); + data.append(38); + data.append(-12); + data.append(114); + data.append(-63); + data.append(64); + data.append(105); + data.append(-41); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_square_neg/output_0.cairo b/tests/nodes/tril_i32_square_neg/output_0.cairo index 370559295..0aaaf9788 100644 --- a/tests/nodes/tril_i32_square_neg/output_0.cairo +++ b/tests/nodes/tril_i32_square_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(-22); + data.append(0); + data.append(0); + data.append(-51); + data.append(13); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(-12); + data.append(0); + data.append(0); + data.append(64); + data.append(105); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i32_zero.cairo b/tests/nodes/tril_i32_zero.cairo index ade5db393..f50c847c2 100644 --- a/tests/nodes/tril_i32_zero.cairo +++ b/tests/nodes/tril_i32_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i32_zero/input_0.cairo b/tests/nodes/tril_i32_zero/input_0.cairo index b991d1f33..128c83fde 100644 --- a/tests/nodes/tril_i32_zero/input_0.cairo +++ b/tests/nodes/tril_i32_zero/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_i32_zero/output_0.cairo b/tests/nodes/tril_i32_zero/output_0.cairo index 3b9e64eff..a6e7f7ac4 100644 --- a/tests/nodes/tril_i32_zero/output_0.cairo +++ b/tests/nodes/tril_i32_zero/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_i8.cairo b/tests/nodes/tril_i8.cairo index 96cd0114d..89d4ffbd2 100644 --- a/tests/nodes/tril_i8.cairo +++ b/tests/nodes/tril_i8.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8/input_0.cairo b/tests/nodes/tril_i8/input_0.cairo index 4b29b4634..c7f09f5a4 100644 --- a/tests/nodes/tril_i8/input_0.cairo +++ b/tests/nodes/tril_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 6, sign: true }); + data.append(-83); + data.append(-59); + data.append(-52); + data.append(-49); + data.append(-45); + data.append(-100); + data.append(67); + data.append(-18); + data.append(22); + data.append(-77); + data.append(-38); + data.append(-71); + data.append(-49); + data.append(-19); + data.append(36); + data.append(99); + data.append(-92); + data.append(105); + data.append(92); + data.append(101); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8/output_0.cairo b/tests/nodes/tril_i8/output_0.cairo index e62a60646..728c9269f 100644 --- a/tests/nodes/tril_i8/output_0.cairo +++ b/tests/nodes/tril_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-83); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(-100); + data.append(67); + data.append(0); + data.append(0); + data.append(0); + data.append(-38); + data.append(-71); + data.append(-49); + data.append(0); + data.append(0); + data.append(99); + data.append(-92); + data.append(105); + data.append(92); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_neg.cairo b/tests/nodes/tril_i8_neg.cairo index 5c24f3f87..edb02b872 100644 --- a/tests/nodes/tril_i8_neg.cairo +++ b/tests/nodes/tril_i8_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_neg/input_0.cairo b/tests/nodes/tril_i8_neg/input_0.cairo index a28492ea9..05afcae0d 100644 --- a/tests/nodes/tril_i8_neg/input_0.cairo +++ b/tests/nodes/tril_i8_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 65, sign: true }); + data.append(-74); + data.append(7); + data.append(11); + data.append(123); + data.append(-67); + data.append(30); + data.append(3); + data.append(90); + data.append(-85); + data.append(111); + data.append(45); + data.append(76); + data.append(60); + data.append(121); + data.append(89); + data.append(114); + data.append(11); + data.append(-92); + data.append(-79); + data.append(104); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_neg/output_0.cairo b/tests/nodes/tril_i8_neg/output_0.cairo index 8f00a108b..bea513e1a 100644 --- a/tests/nodes/tril_i8_neg/output_0.cairo +++ b/tests/nodes/tril_i8_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(30); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(45); + data.append(76); + data.append(0); + data.append(0); + data.append(0); + data.append(114); + data.append(11); + data.append(-92); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_one_row.cairo b/tests/nodes/tril_i8_one_row.cairo index 44f6f8fa0..804fc5b98 100644 --- a/tests/nodes/tril_i8_one_row.cairo +++ b/tests/nodes/tril_i8_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_one_row/input_0.cairo b/tests/nodes/tril_i8_one_row/input_0.cairo index 372c896fe..431d79b27 100644 --- a/tests/nodes/tril_i8_one_row/input_0.cairo +++ b/tests/nodes/tril_i8_one_row/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 7, sign: true }); + data.append(-53); + data.append(66); + data.append(50); + data.append(-28); + data.append(-20); + data.append(69); + data.append(117); + data.append(5); + data.append(-51); + data.append(24); + data.append(-23); + data.append(21); + data.append(60); + data.append(6); + data.append(13); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_one_row/output_0.cairo b/tests/nodes/tril_i8_one_row/output_0.cairo index 379e24bb2..fd201fffe 100644 --- a/tests/nodes/tril_i8_one_row/output_0.cairo +++ b/tests/nodes/tril_i8_one_row/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(-53); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(69); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(-23); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_out_neg.cairo b/tests/nodes/tril_i8_out_neg.cairo index e250cc985..ff9ec74fd 100644 --- a/tests/nodes/tril_i8_out_neg.cairo +++ b/tests/nodes/tril_i8_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_out_neg/input_0.cairo b/tests/nodes/tril_i8_out_neg/input_0.cairo index ee5d23d4f..da3605c49 100644 --- a/tests/nodes/tril_i8_out_neg/input_0.cairo +++ b/tests/nodes/tril_i8_out_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 21, sign: true }); + data.append(67); + data.append(-102); + data.append(45); + data.append(77); + data.append(55); + data.append(-19); + data.append(-56); + data.append(-22); + data.append(-32); + data.append(102); + data.append(23); + data.append(72); + data.append(-34); + data.append(62); + data.append(67); + data.append(45); + data.append(-49); + data.append(108); + data.append(-83); + data.append(22); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_out_neg/output_0.cairo b/tests/nodes/tril_i8_out_neg/output_0.cairo index 7a47f094f..a8f191cff 100644 --- a/tests/nodes/tril_i8_out_neg/output_0.cairo +++ b/tests/nodes/tril_i8_out_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_out_pos.cairo b/tests/nodes/tril_i8_out_pos.cairo index e4eff04f6..9d23a0ab9 100644 --- a/tests/nodes/tril_i8_out_pos.cairo +++ b/tests/nodes/tril_i8_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_out_pos/input_0.cairo b/tests/nodes/tril_i8_out_pos/input_0.cairo index 40f0897d2..efc309963 100644 --- a/tests/nodes/tril_i8_out_pos/input_0.cairo +++ b/tests/nodes/tril_i8_out_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 25, sign: false }); + data.append(-64); + data.append(-112); + data.append(-109); + data.append(67); + data.append(-66); + data.append(-126); + data.append(-97); + data.append(-60); + data.append(-34); + data.append(103); + data.append(112); + data.append(-41); + data.append(-93); + data.append(-72); + data.append(-6); + data.append(42); + data.append(58); + data.append(4); + data.append(16); + data.append(-111); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_out_pos/output_0.cairo b/tests/nodes/tril_i8_out_pos/output_0.cairo index a7372f21d..d47764308 100644 --- a/tests/nodes/tril_i8_out_pos/output_0.cairo +++ b/tests/nodes/tril_i8_out_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 25, sign: false }); + data.append(-64); + data.append(-112); + data.append(-109); + data.append(67); + data.append(-66); + data.append(-126); + data.append(-97); + data.append(-60); + data.append(-34); + data.append(103); + data.append(112); + data.append(-41); + data.append(-93); + data.append(-72); + data.append(-6); + data.append(42); + data.append(58); + data.append(4); + data.append(16); + data.append(-111); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_pos.cairo b/tests/nodes/tril_i8_pos.cairo index b95a5fab9..e68380651 100644 --- a/tests/nodes/tril_i8_pos.cairo +++ b/tests/nodes/tril_i8_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_pos/input_0.cairo b/tests/nodes/tril_i8_pos/input_0.cairo index e9bd452e2..008d7d740 100644 --- a/tests/nodes/tril_i8_pos/input_0.cairo +++ b/tests/nodes/tril_i8_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 15, sign: false }); + data.append(117); + data.append(-107); + data.append(-33); + data.append(-116); + data.append(-69); + data.append(124); + data.append(71); + data.append(106); + data.append(-37); + data.append(10); + data.append(-46); + data.append(44); + data.append(-120); + data.append(-92); + data.append(-121); + data.append(60); + data.append(53); + data.append(-15); + data.append(-101); + data.append(121); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_pos/output_0.cairo b/tests/nodes/tril_i8_pos/output_0.cairo index 3fa7a9f81..9134b4ff0 100644 --- a/tests/nodes/tril_i8_pos/output_0.cairo +++ b/tests/nodes/tril_i8_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 15, sign: false }); + data.append(117); + data.append(-107); + data.append(-33); + data.append(0); + data.append(0); + data.append(124); + data.append(71); + data.append(106); + data.append(-37); + data.append(0); + data.append(-46); + data.append(44); + data.append(-120); + data.append(-92); + data.append(-121); + data.append(60); + data.append(53); + data.append(-15); + data.append(-101); + data.append(121); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_square.cairo b/tests/nodes/tril_i8_square.cairo index a7ebceac0..d34a82373 100644 --- a/tests/nodes/tril_i8_square.cairo +++ b/tests/nodes/tril_i8_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_square/input_0.cairo b/tests/nodes/tril_i8_square/input_0.cairo index 8105dc261..5b16d19de 100644 --- a/tests/nodes/tril_i8_square/input_0.cairo +++ b/tests/nodes/tril_i8_square/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 20, sign: false }); + data.append(120); + data.append(54); + data.append(12); + data.append(62); + data.append(46); + data.append(53); + data.append(-119); + data.append(-9); + data.append(58); + data.append(-69); + data.append(97); + data.append(99); + data.append(-23); + data.append(-19); + data.append(5); + data.append(-58); + data.append(72); + data.append(-11); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_square/output_0.cairo b/tests/nodes/tril_i8_square/output_0.cairo index bbdf96b20..9cc030056 100644 --- a/tests/nodes/tril_i8_square/output_0.cairo +++ b/tests/nodes/tril_i8_square/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 20, sign: false }); + data.append(120); + data.append(0); + data.append(0); + data.append(62); + data.append(46); + data.append(0); + data.append(-119); + data.append(-9); + data.append(58); + data.append(-69); + data.append(0); + data.append(0); + data.append(-23); + data.append(-19); + data.append(0); + data.append(-58); + data.append(72); + data.append(-11); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_square_neg.cairo b/tests/nodes/tril_i8_square_neg.cairo index 9feaff1b5..c8afba89b 100644 --- a/tests/nodes/tril_i8_square_neg.cairo +++ b/tests/nodes/tril_i8_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_square_neg/input_0.cairo b/tests/nodes/tril_i8_square_neg/input_0.cairo index 784e94dd2..bc6235904 100644 --- a/tests/nodes/tril_i8_square_neg/input_0.cairo +++ b/tests/nodes/tril_i8_square_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 73, sign: false }); + data.append(111); + data.append(83); + data.append(82); + data.append(42); + data.append(0); + data.append(3); + data.append(-67); + data.append(-5); + data.append(-78); + data.append(-17); + data.append(-46); + data.append(-65); + data.append(-111); + data.append(71); + data.append(13); + data.append(-3); + data.append(32); + data.append(-34); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_square_neg/output_0.cairo b/tests/nodes/tril_i8_square_neg/output_0.cairo index ba79d1391..06d0852e0 100644 --- a/tests/nodes/tril_i8_square_neg/output_0.cairo +++ b/tests/nodes/tril_i8_square_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(42); + data.append(0); + data.append(0); + data.append(-67); + data.append(-5); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(-111); + data.append(0); + data.append(0); + data.append(-3); + data.append(32); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_i8_zero.cairo b/tests/nodes/tril_i8_zero.cairo index 273733e03..25419eb22 100644 --- a/tests/nodes/tril_i8_zero.cairo +++ b/tests/nodes/tril_i8_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_i8_zero/input_0.cairo b/tests/nodes/tril_i8_zero/input_0.cairo index 03dc49e3f..821c21489 100644 --- a/tests/nodes/tril_i8_zero/input_0.cairo +++ b/tests/nodes/tril_i8_zero/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_i8_zero/output_0.cairo b/tests/nodes/tril_i8_zero/output_0.cairo index 25b4104aa..bd6795997 100644 --- a/tests/nodes/tril_i8_zero/output_0.cairo +++ b/tests/nodes/tril_i8_zero/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_neg_i32.cairo b/tests/nodes/tril_neg_i32.cairo index afb9ff072..1f2eb7822 100644 --- a/tests/nodes/tril_neg_i32.cairo +++ b/tests/nodes/tril_neg_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_neg_i32/input_0.cairo b/tests/nodes/tril_neg_i32/input_0.cairo index f65f5e81c..10b18e062 100644 --- a/tests/nodes/tril_neg_i32/input_0.cairo +++ b/tests/nodes/tril_neg_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 44, sign: true }); + data.append(101); + data.append(-95); + data.append(9); + data.append(75); + data.append(-113); + data.append(108); + data.append(25); + data.append(96); + data.append(115); + data.append(103); + data.append(92); + data.append(-1); + data.append(-20); + data.append(60); + data.append(54); + data.append(89); + data.append(18); + data.append(1); + data.append(-95); + data.append(-86); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_neg_i32/output_0.cairo b/tests/nodes/tril_neg_i32/output_0.cairo index 1499e4822..0a14b0667 100644 --- a/tests/nodes/tril_neg_i32/output_0.cairo +++ b/tests/nodes/tril_neg_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(108); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(92); + data.append(-1); + data.append(0); + data.append(0); + data.append(0); + data.append(89); + data.append(18); + data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32.cairo b/tests/nodes/tril_u32.cairo index 84fcd65d9..a544bf74d 100644 --- a/tests/nodes/tril_u32.cairo +++ b/tests/nodes/tril_u32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32/input_0.cairo b/tests/nodes/tril_u32/input_0.cairo index 66f569ebf..6f8ac9912 100644 --- a/tests/nodes/tril_u32/input_0.cairo +++ b/tests/nodes/tril_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(182); - data.append(80); - data.append(147); - data.append(74); - data.append(49); + data.append(178); + data.append(133); data.append(129); - data.append(84); - data.append(164); - data.append(205); - data.append(48); - data.append(150); - data.append(158); - data.append(16); - data.append(127); - data.append(250); - data.append(55); - data.append(177); - data.append(114); - data.append(231); - data.append(47); + data.append(130); + data.append(51); + data.append(214); + data.append(206); + data.append(103); + data.append(71); + data.append(19); + data.append(246); + data.append(248); + data.append(125); + data.append(193); + data.append(81); + data.append(77); + data.append(126); + data.append(22); + data.append(57); + data.append(247); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32/output_0.cairo b/tests/nodes/tril_u32/output_0.cairo index bf432d083..c121c1a50 100644 --- a/tests/nodes/tril_u32/output_0.cairo +++ b/tests/nodes/tril_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(182); + data.append(178); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(129); - data.append(84); + data.append(214); + data.append(206); data.append(0); data.append(0); data.append(0); - data.append(150); - data.append(158); - data.append(16); + data.append(246); + data.append(248); + data.append(125); data.append(0); data.append(0); - data.append(55); - data.append(177); - data.append(114); - data.append(231); + data.append(77); + data.append(126); + data.append(22); + data.append(57); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_neg.cairo b/tests/nodes/tril_u32_neg.cairo index da6871967..e8aff9db8 100644 --- a/tests/nodes/tril_u32_neg.cairo +++ b/tests/nodes/tril_u32_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_neg/input_0.cairo b/tests/nodes/tril_u32_neg/input_0.cairo index 517e6edb3..f396ee701 100644 --- a/tests/nodes/tril_u32_neg/input_0.cairo +++ b/tests/nodes/tril_u32_neg/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(112); - data.append(12); - data.append(149); - data.append(247); - data.append(144); - data.append(52); - data.append(161); - data.append(15); - data.append(89); - data.append(32); - data.append(118); - data.append(122); - data.append(56); - data.append(100); + data.append(91); + data.append(44); + data.append(124); + data.append(155); + data.append(1); data.append(207); - data.append(176); - data.append(97); - data.append(234); - data.append(73); - data.append(53); + data.append(226); + data.append(206); + data.append(19); + data.append(101); + data.append(6); + data.append(88); + data.append(35); + data.append(127); + data.append(28); + data.append(163); + data.append(160); + data.append(133); + data.append(184); + data.append(189); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_neg/output_0.cairo b/tests/nodes/tril_u32_neg/output_0.cairo index 7c0388f69..ca55afbd3 100644 --- a/tests/nodes/tril_u32_neg/output_0.cairo +++ b/tests/nodes/tril_u32_neg/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,19 +13,19 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(52); + data.append(207); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(118); - data.append(122); + data.append(6); + data.append(88); data.append(0); data.append(0); data.append(0); - data.append(176); - data.append(97); - data.append(234); + data.append(163); + data.append(160); + data.append(133); data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/tril_u32_one_row.cairo b/tests/nodes/tril_u32_one_row.cairo index 7867a77e9..10b539b83 100644 --- a/tests/nodes/tril_u32_one_row.cairo +++ b/tests/nodes/tril_u32_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_one_row/input_0.cairo b/tests/nodes/tril_u32_one_row/input_0.cairo index ecf79b63b..3c1273581 100644 --- a/tests/nodes/tril_u32_one_row/input_0.cairo +++ b/tests/nodes/tril_u32_one_row/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(68); - data.append(176); - data.append(238); - data.append(164); + data.append(250); + data.append(39); + data.append(83); + data.append(231); + data.append(236); + data.append(69); + data.append(147); + data.append(61); + data.append(66); + data.append(230); + data.append(145); + data.append(231); + data.append(205); + data.append(152); data.append(157); - data.append(211); - data.append(97); - data.append(132); - data.append(224); - data.append(245); - data.append(118); - data.append(25); - data.append(196); - data.append(43); - data.append(124); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_one_row/output_0.cairo b/tests/nodes/tril_u32_one_row/output_0.cairo index 6d81fcf18..ae357e843 100644 --- a/tests/nodes/tril_u32_one_row/output_0.cairo +++ b/tests/nodes/tril_u32_one_row/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,17 +9,17 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(68); + data.append(250); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(211); + data.append(69); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(118); + data.append(145); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/tril_u32_out_neg.cairo b/tests/nodes/tril_u32_out_neg.cairo index 7661f19c1..251c87de3 100644 --- a/tests/nodes/tril_u32_out_neg.cairo +++ b/tests/nodes/tril_u32_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_out_neg/input_0.cairo b/tests/nodes/tril_u32_out_neg/input_0.cairo index 56262d957..d9d644189 100644 --- a/tests/nodes/tril_u32_out_neg/input_0.cairo +++ b/tests/nodes/tril_u32_out_neg/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(66); - data.append(139); - data.append(229); - data.append(194); - data.append(56); - data.append(188); - data.append(51); - data.append(197); - data.append(237); - data.append(240); - data.append(177); - data.append(112); - data.append(114); - data.append(235); - data.append(200); - data.append(197); - data.append(57); - data.append(67); - data.append(41); - data.append(62); + data.append(156); + data.append(143); + data.append(86); + data.append(94); + data.append(20); + data.append(48); + data.append(49); + data.append(138); + data.append(35); + data.append(5); + data.append(163); + data.append(87); + data.append(6); + data.append(105); + data.append(130); + data.append(113); + data.append(72); + data.append(252); + data.append(202); + data.append(184); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_out_neg/output_0.cairo b/tests/nodes/tril_u32_out_neg/output_0.cairo index 4cd9e9fae..e76477f2e 100644 --- a/tests/nodes/tril_u32_out_neg/output_0.cairo +++ b/tests/nodes/tril_u32_out_neg/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_u32_out_pos.cairo b/tests/nodes/tril_u32_out_pos.cairo index 92254f12b..4c51e80d7 100644 --- a/tests/nodes/tril_u32_out_pos.cairo +++ b/tests/nodes/tril_u32_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_out_pos/input_0.cairo b/tests/nodes/tril_u32_out_pos/input_0.cairo index 5aab2096d..0273343a4 100644 --- a/tests/nodes/tril_u32_out_pos/input_0.cairo +++ b/tests/nodes/tril_u32_out_pos/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(111); - data.append(50); - data.append(147); - data.append(251); - data.append(54); - data.append(8); - data.append(96); - data.append(236); - data.append(214); - data.append(32); - data.append(100); - data.append(220); - data.append(220); - data.append(137); - data.append(66); - data.append(197); - data.append(45); - data.append(126); - data.append(230); - data.append(72); + data.append(145); + data.append(194); + data.append(234); + data.append(81); + data.append(44); + data.append(119); + data.append(171); + data.append(202); + data.append(17); + data.append(253); + data.append(114); + data.append(238); + data.append(36); + data.append(144); + data.append(165); + data.append(81); + data.append(249); + data.append(43); + data.append(223); + data.append(247); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_out_pos/output_0.cairo b/tests/nodes/tril_u32_out_pos/output_0.cairo index 29b3febde..301b73ab2 100644 --- a/tests/nodes/tril_u32_out_pos/output_0.cairo +++ b/tests/nodes/tril_u32_out_pos/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(111); - data.append(50); - data.append(147); - data.append(251); - data.append(54); - data.append(8); - data.append(96); - data.append(236); - data.append(214); - data.append(32); - data.append(100); - data.append(220); - data.append(220); - data.append(137); - data.append(66); - data.append(197); - data.append(45); - data.append(126); - data.append(230); - data.append(72); + data.append(145); + data.append(194); + data.append(234); + data.append(81); + data.append(44); + data.append(119); + data.append(171); + data.append(202); + data.append(17); + data.append(253); + data.append(114); + data.append(238); + data.append(36); + data.append(144); + data.append(165); + data.append(81); + data.append(249); + data.append(43); + data.append(223); + data.append(247); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_pos.cairo b/tests/nodes/tril_u32_pos.cairo index a5a24bd42..7d763c2f0 100644 --- a/tests/nodes/tril_u32_pos.cairo +++ b/tests/nodes/tril_u32_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_pos/input_0.cairo b/tests/nodes/tril_u32_pos/input_0.cairo index e2dd4c068..57e96ccf2 100644 --- a/tests/nodes/tril_u32_pos/input_0.cairo +++ b/tests/nodes/tril_u32_pos/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(83); - data.append(229); + data.append(7); + data.append(91); + data.append(89); + data.append(123); + data.append(126); + data.append(80); + data.append(254); + data.append(245); + data.append(234); + data.append(204); + data.append(21); + data.append(246); + data.append(193); data.append(59); - data.append(240); - data.append(114); - data.append(209); - data.append(118); - data.append(37); - data.append(203); - data.append(215); - data.append(49); - data.append(166); - data.append(119); + data.append(88); + data.append(234); data.append(199); - data.append(190); - data.append(187); - data.append(3); - data.append(24); - data.append(217); - data.append(121); + data.append(194); + data.append(79); + data.append(107); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_pos/output_0.cairo b/tests/nodes/tril_u32_pos/output_0.cairo index 0d1e3c480..0ad92837d 100644 --- a/tests/nodes/tril_u32_pos/output_0.cairo +++ b/tests/nodes/tril_u32_pos/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(83); - data.append(229); - data.append(59); + data.append(7); + data.append(91); + data.append(89); data.append(0); data.append(0); - data.append(209); - data.append(118); - data.append(37); - data.append(203); + data.append(80); + data.append(254); + data.append(245); + data.append(234); data.append(0); - data.append(49); - data.append(166); - data.append(119); + data.append(21); + data.append(246); + data.append(193); + data.append(59); + data.append(88); + data.append(234); data.append(199); - data.append(190); - data.append(187); - data.append(3); - data.append(24); - data.append(217); - data.append(121); + data.append(194); + data.append(79); + data.append(107); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_square.cairo b/tests/nodes/tril_u32_square.cairo index 3cd26e633..3e24ca769 100644 --- a/tests/nodes/tril_u32_square.cairo +++ b/tests/nodes/tril_u32_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_square/input_0.cairo b/tests/nodes/tril_u32_square/input_0.cairo index a5c4465b1..da491f682 100644 --- a/tests/nodes/tril_u32_square/input_0.cairo +++ b/tests/nodes/tril_u32_square/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(14); - data.append(93); - data.append(16); - data.append(34); - data.append(216); - data.append(129); - data.append(132); - data.append(143); - data.append(161); - data.append(9); - data.append(45); - data.append(114); - data.append(250); - data.append(157); - data.append(239); - data.append(32); - data.append(147); - data.append(90); + data.append(145); + data.append(153); + data.append(135); + data.append(19); + data.append(97); + data.append(193); + data.append(184); + data.append(77); + data.append(193); + data.append(158); + data.append(160); + data.append(144); + data.append(199); + data.append(30); + data.append(71); + data.append(99); + data.append(244); + data.append(112); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_square/output_0.cairo b/tests/nodes/tril_u32_square/output_0.cairo index 3d63837da..75c4d8cc2 100644 --- a/tests/nodes/tril_u32_square/output_0.cairo +++ b/tests/nodes/tril_u32_square/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(14); + data.append(145); data.append(0); data.append(0); - data.append(34); - data.append(216); + data.append(19); + data.append(97); data.append(0); - data.append(132); - data.append(143); - data.append(161); - data.append(9); + data.append(184); + data.append(77); + data.append(193); + data.append(158); data.append(0); data.append(0); - data.append(250); - data.append(157); + data.append(199); + data.append(30); data.append(0); - data.append(32); - data.append(147); - data.append(90); + data.append(99); + data.append(244); + data.append(112); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_square_neg.cairo b/tests/nodes/tril_u32_square_neg.cairo index 47cb018c4..7019980a2 100644 --- a/tests/nodes/tril_u32_square_neg.cairo +++ b/tests/nodes/tril_u32_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_square_neg/input_0.cairo b/tests/nodes/tril_u32_square_neg/input_0.cairo index 627e73543..656dc492b 100644 --- a/tests/nodes/tril_u32_square_neg/input_0.cairo +++ b/tests/nodes/tril_u32_square_neg/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(124); - data.append(25); - data.append(157); - data.append(20); - data.append(170); - data.append(58); data.append(130); - data.append(92); - data.append(31); - data.append(125); - data.append(67); - data.append(207); - data.append(191); - data.append(46); - data.append(237); - data.append(175); - data.append(177); - data.append(237); + data.append(192); + data.append(10); + data.append(129); + data.append(81); + data.append(253); + data.append(210); + data.append(54); + data.append(10); + data.append(79); + data.append(151); + data.append(130); + data.append(244); + data.append(18); + data.append(244); + data.append(69); + data.append(65); + data.append(53); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_square_neg/output_0.cairo b/tests/nodes/tril_u32_square_neg/output_0.cairo index 5356494d9..fed61e043 100644 --- a/tests/nodes/tril_u32_square_neg/output_0.cairo +++ b/tests/nodes/tril_u32_square_neg/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,20 +12,20 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(20); + data.append(129); data.append(0); data.append(0); - data.append(130); - data.append(92); + data.append(210); + data.append(54); data.append(0); data.append(0); data.append(0); data.append(0); - data.append(191); + data.append(244); data.append(0); data.append(0); - data.append(175); - data.append(177); + data.append(69); + data.append(65); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/tril_u32_zero.cairo b/tests/nodes/tril_u32_zero.cairo index 986e6d6a9..4ffabf464 100644 --- a/tests/nodes/tril_u32_zero.cairo +++ b/tests/nodes/tril_u32_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/tril_u32_zero/input_0.cairo b/tests/nodes/tril_u32_zero/input_0.cairo index 0110d2dab..f22815722 100644 --- a/tests/nodes/tril_u32_zero/input_0.cairo +++ b/tests/nodes/tril_u32_zero/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/tril_u32_zero/output_0.cairo b/tests/nodes/tril_u32_zero/output_0.cairo index 73f14f67e..0f567f9f2 100644 --- a/tests/nodes/tril_u32_zero/output_0.cairo +++ b/tests/nodes/tril_u32_zero/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_fp16x16.cairo b/tests/nodes/triu_fp16x16.cairo index ea2c4ea95..6123bdaaf 100644 --- a/tests/nodes/triu_fp16x16.cairo +++ b/tests/nodes/triu_fp16x16.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16/input_0.cairo b/tests/nodes/triu_fp16x16/input_0.cairo index 05de9d7ba..895ce0fc0 100644 --- a/tests/nodes/triu_fp16x16/input_0.cairo +++ b/tests/nodes/triu_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16/output_0.cairo b/tests/nodes/triu_fp16x16/output_0.cairo index 8e36794bb..7097284fc 100644 --- a/tests/nodes/triu_fp16x16/output_0.cairo +++ b/tests/nodes/triu_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_neg.cairo b/tests/nodes/triu_fp16x16_neg.cairo index cb9bbeaf5..6a55a2bd8 100644 --- a/tests/nodes/triu_fp16x16_neg.cairo +++ b/tests/nodes/triu_fp16x16_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_neg/input_0.cairo b/tests/nodes/triu_fp16x16_neg/input_0.cairo index 05c80135a..3e81ad054 100644 --- a/tests/nodes/triu_fp16x16_neg/input_0.cairo +++ b/tests/nodes/triu_fp16x16_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_neg/output_0.cairo b/tests/nodes/triu_fp16x16_neg/output_0.cairo index 643ab3de7..05111b0e5 100644 --- a/tests/nodes/triu_fp16x16_neg/output_0.cairo +++ b/tests/nodes/triu_fp16x16_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_one_row.cairo b/tests/nodes/triu_fp16x16_one_row.cairo index 2c15eac3b..94214459e 100644 --- a/tests/nodes/triu_fp16x16_one_row.cairo +++ b/tests/nodes/triu_fp16x16_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_one_row/input_0.cairo b/tests/nodes/triu_fp16x16_one_row/input_0.cairo index cbd3d51bd..ff3c1ba8c 100644 --- a/tests/nodes/triu_fp16x16_one_row/input_0.cairo +++ b/tests/nodes/triu_fp16x16_one_row/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,20 +10,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_one_row/output_0.cairo b/tests/nodes/triu_fp16x16_one_row/output_0.cairo index 067d782ce..653e55bc2 100644 --- a/tests/nodes/triu_fp16x16_one_row/output_0.cairo +++ b/tests/nodes/triu_fp16x16_one_row/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,20 +10,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 786432, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_out_neg.cairo b/tests/nodes/triu_fp16x16_out_neg.cairo index 513bf01a1..6347cbfbb 100644 --- a/tests/nodes/triu_fp16x16_out_neg.cairo +++ b/tests/nodes/triu_fp16x16_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_out_neg/input_0.cairo b/tests/nodes/triu_fp16x16_out_neg/input_0.cairo index 3fe6de3f1..8190da303 100644 --- a/tests/nodes/triu_fp16x16_out_neg/input_0.cairo +++ b/tests/nodes/triu_fp16x16_out_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_out_neg/output_0.cairo b/tests/nodes/triu_fp16x16_out_neg/output_0.cairo index 1a3204549..45aac1e0e 100644 --- a/tests/nodes/triu_fp16x16_out_neg/output_0.cairo +++ b/tests/nodes/triu_fp16x16_out_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_out_pos.cairo b/tests/nodes/triu_fp16x16_out_pos.cairo index 779c1cda8..d679445b2 100644 --- a/tests/nodes/triu_fp16x16_out_pos.cairo +++ b/tests/nodes/triu_fp16x16_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_out_pos/input_0.cairo b/tests/nodes/triu_fp16x16_out_pos/input_0.cairo index 24ba4c9e4..608b844b7 100644 --- a/tests/nodes/triu_fp16x16_out_pos/input_0.cairo +++ b/tests/nodes/triu_fp16x16_out_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_out_pos/output_0.cairo b/tests/nodes/triu_fp16x16_out_pos/output_0.cairo index d6e116b53..885025664 100644 --- a/tests/nodes/triu_fp16x16_out_pos/output_0.cairo +++ b/tests/nodes/triu_fp16x16_out_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_fp16x16_pos.cairo b/tests/nodes/triu_fp16x16_pos.cairo index adc12e26d..09f8804c5 100644 --- a/tests/nodes/triu_fp16x16_pos.cairo +++ b/tests/nodes/triu_fp16x16_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_pos/input_0.cairo b/tests/nodes/triu_fp16x16_pos/input_0.cairo index 1f6bb7ebb..d5aec240c 100644 --- a/tests/nodes/triu_fp16x16_pos/input_0.cairo +++ b/tests/nodes/triu_fp16x16_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_pos/output_0.cairo b/tests/nodes/triu_fp16x16_pos/output_0.cairo index ddbe66279..7984e823a 100644 --- a/tests/nodes/triu_fp16x16_pos/output_0.cairo +++ b/tests/nodes/triu_fp16x16_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,19 +11,19 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); diff --git a/tests/nodes/triu_fp16x16_square.cairo b/tests/nodes/triu_fp16x16_square.cairo index 25d6ab514..fe5d385ef 100644 --- a/tests/nodes/triu_fp16x16_square.cairo +++ b/tests/nodes/triu_fp16x16_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_square/input_0.cairo b/tests/nodes/triu_fp16x16_square/input_0.cairo index a0c9e7e38..4324dc8f0 100644 --- a/tests/nodes/triu_fp16x16_square/input_0.cairo +++ b/tests/nodes/triu_fp16x16_square/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2686976, sign: true }); data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_square/output_0.cairo b/tests/nodes/triu_fp16x16_square/output_0.cairo index 741d90b7a..d89c2dfd7 100644 --- a/tests/nodes/triu_fp16x16_square/output_0.cairo +++ b/tests/nodes/triu_fp16x16_square/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_square_neg.cairo b/tests/nodes/triu_fp16x16_square_neg.cairo index d423bdeab..1daa81d9c 100644 --- a/tests/nodes/triu_fp16x16_square_neg.cairo +++ b/tests/nodes/triu_fp16x16_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_square_neg/input_0.cairo b/tests/nodes/triu_fp16x16_square_neg/input_0.cairo index b170325f0..f5954f3a1 100644 --- a/tests/nodes/triu_fp16x16_square_neg/input_0.cairo +++ b/tests/nodes/triu_fp16x16_square_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_square_neg/output_0.cairo b/tests/nodes/triu_fp16x16_square_neg/output_0.cairo index ca006b083..971bd3bf5 100644 --- a/tests/nodes/triu_fp16x16_square_neg/output_0.cairo +++ b/tests/nodes/triu_fp16x16_square_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp16x16_zero.cairo b/tests/nodes/triu_fp16x16_zero.cairo index 9057fd84c..47e9606ff 100644 --- a/tests/nodes/triu_fp16x16_zero.cairo +++ b/tests/nodes/triu_fp16x16_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp16x16_zero/input_0.cairo b/tests/nodes/triu_fp16x16_zero/input_0.cairo index 666b5bd2c..23efab533 100644 --- a/tests/nodes/triu_fp16x16_zero/input_0.cairo +++ b/tests/nodes/triu_fp16x16_zero/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_fp16x16_zero/output_0.cairo b/tests/nodes/triu_fp16x16_zero/output_0.cairo index 0e6541b94..750c66d7c 100644 --- a/tests/nodes/triu_fp16x16_zero/output_0.cairo +++ b/tests/nodes/triu_fp16x16_zero/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_fp8x23.cairo b/tests/nodes/triu_fp8x23.cairo index 860c7b1fc..21990b3a2 100644 --- a/tests/nodes/triu_fp8x23.cairo +++ b/tests/nodes/triu_fp8x23.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23/input_0.cairo b/tests/nodes/triu_fp8x23/input_0.cairo index e94b91333..ac0dc3051 100644 --- a/tests/nodes/triu_fp8x23/input_0.cairo +++ b/tests/nodes/triu_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23/output_0.cairo b/tests/nodes/triu_fp8x23/output_0.cairo index d2187ea3f..ef60bb71c 100644 --- a/tests/nodes/triu_fp8x23/output_0.cairo +++ b/tests/nodes/triu_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_neg.cairo b/tests/nodes/triu_fp8x23_neg.cairo index 1ace406e4..db665457a 100644 --- a/tests/nodes/triu_fp8x23_neg.cairo +++ b/tests/nodes/triu_fp8x23_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_neg/input_0.cairo b/tests/nodes/triu_fp8x23_neg/input_0.cairo index aa910cb34..72c6a971a 100644 --- a/tests/nodes/triu_fp8x23_neg/input_0.cairo +++ b/tests/nodes/triu_fp8x23_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_neg/output_0.cairo b/tests/nodes/triu_fp8x23_neg/output_0.cairo index cb22cacf4..1488495de 100644 --- a/tests/nodes/triu_fp8x23_neg/output_0.cairo +++ b/tests/nodes/triu_fp8x23_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_one_row.cairo b/tests/nodes/triu_fp8x23_one_row.cairo index f669cae90..4bbe4084e 100644 --- a/tests/nodes/triu_fp8x23_one_row.cairo +++ b/tests/nodes/triu_fp8x23_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_one_row/input_0.cairo b/tests/nodes/triu_fp8x23_one_row/input_0.cairo index 576f4cf37..981ff8e2d 100644 --- a/tests/nodes/triu_fp8x23_one_row/input_0.cairo +++ b/tests/nodes/triu_fp8x23_one_row/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,20 +10,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_one_row/output_0.cairo b/tests/nodes/triu_fp8x23_one_row/output_0.cairo index d7ab99693..7af2055bf 100644 --- a/tests/nodes/triu_fp8x23_one_row/output_0.cairo +++ b/tests/nodes/triu_fp8x23_one_row/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,20 +10,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_out_neg.cairo b/tests/nodes/triu_fp8x23_out_neg.cairo index d52ff15ea..9e0cdcfd5 100644 --- a/tests/nodes/triu_fp8x23_out_neg.cairo +++ b/tests/nodes/triu_fp8x23_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_out_neg/input_0.cairo b/tests/nodes/triu_fp8x23_out_neg/input_0.cairo index 40b9ed32d..adc6b461e 100644 --- a/tests/nodes/triu_fp8x23_out_neg/input_0.cairo +++ b/tests/nodes/triu_fp8x23_out_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_out_neg/output_0.cairo b/tests/nodes/triu_fp8x23_out_neg/output_0.cairo index 0822bb6db..97ecf3a89 100644 --- a/tests/nodes/triu_fp8x23_out_neg/output_0.cairo +++ b/tests/nodes/triu_fp8x23_out_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_out_pos.cairo b/tests/nodes/triu_fp8x23_out_pos.cairo index df6312002..9450b68e3 100644 --- a/tests/nodes/triu_fp8x23_out_pos.cairo +++ b/tests/nodes/triu_fp8x23_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_out_pos/input_0.cairo b/tests/nodes/triu_fp8x23_out_pos/input_0.cairo index afcc9f0ee..8f6aef422 100644 --- a/tests/nodes/triu_fp8x23_out_pos/input_0.cairo +++ b/tests/nodes/triu_fp8x23_out_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: false }); data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_out_pos/output_0.cairo b/tests/nodes/triu_fp8x23_out_pos/output_0.cairo index 674beb169..d106982a9 100644 --- a/tests/nodes/triu_fp8x23_out_pos/output_0.cairo +++ b/tests/nodes/triu_fp8x23_out_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_fp8x23_pos.cairo b/tests/nodes/triu_fp8x23_pos.cairo index 74aeab0a2..29fd35439 100644 --- a/tests/nodes/triu_fp8x23_pos.cairo +++ b/tests/nodes/triu_fp8x23_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_pos/input_0.cairo b/tests/nodes/triu_fp8x23_pos/input_0.cairo index bd6b5dfab..4f9bae3ae 100644 --- a/tests/nodes/triu_fp8x23_pos/input_0.cairo +++ b/tests/nodes/triu_fp8x23_pos/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,25 +9,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_pos/output_0.cairo b/tests/nodes/triu_fp8x23_pos/output_0.cairo index 89dca2de0..e63b3bb6a 100644 --- a/tests/nodes/triu_fp8x23_pos/output_0.cairo +++ b/tests/nodes/triu_fp8x23_pos/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,19 +11,19 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); diff --git a/tests/nodes/triu_fp8x23_square.cairo b/tests/nodes/triu_fp8x23_square.cairo index b68d0f896..8ddcd8c12 100644 --- a/tests/nodes/triu_fp8x23_square.cairo +++ b/tests/nodes/triu_fp8x23_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_square/input_0.cairo b/tests/nodes/triu_fp8x23_square/input_0.cairo index d53fe03e9..fc85bf0e9 100644 --- a/tests/nodes/triu_fp8x23_square/input_0.cairo +++ b/tests/nodes/triu_fp8x23_square/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_square/output_0.cairo b/tests/nodes/triu_fp8x23_square/output_0.cairo index d766fbeb6..dedee0851 100644 --- a/tests/nodes/triu_fp8x23_square/output_0.cairo +++ b/tests/nodes/triu_fp8x23_square/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_square_neg.cairo b/tests/nodes/triu_fp8x23_square_neg.cairo index 9b817b13c..cf71a8e37 100644 --- a/tests/nodes/triu_fp8x23_square_neg.cairo +++ b/tests/nodes/triu_fp8x23_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_square_neg/input_0.cairo b/tests/nodes/triu_fp8x23_square_neg/input_0.cairo index 105c851a9..99968697e 100644 --- a/tests/nodes/triu_fp8x23_square_neg/input_0.cairo +++ b/tests/nodes/triu_fp8x23_square_neg/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: false }); data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_square_neg/output_0.cairo b/tests/nodes/triu_fp8x23_square_neg/output_0.cairo index 4471ce36c..0113d993e 100644 --- a/tests/nodes/triu_fp8x23_square_neg/output_0.cairo +++ b/tests/nodes/triu_fp8x23_square_neg/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,23 +10,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: false }); data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_fp8x23_zero.cairo b/tests/nodes/triu_fp8x23_zero.cairo index bb57158b3..137cf8881 100644 --- a/tests/nodes/triu_fp8x23_zero.cairo +++ b/tests/nodes/triu_fp8x23_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_fp8x23_zero/input_0.cairo b/tests/nodes/triu_fp8x23_zero/input_0.cairo index 61329528f..4ec2f078c 100644 --- a/tests/nodes/triu_fp8x23_zero/input_0.cairo +++ b/tests/nodes/triu_fp8x23_zero/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_fp8x23_zero/output_0.cairo b/tests/nodes/triu_fp8x23_zero/output_0.cairo index c282c2a13..4ef5c95df 100644 --- a/tests/nodes/triu_fp8x23_zero/output_0.cairo +++ b/tests/nodes/triu_fp8x23_zero/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorAdd}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_i32.cairo b/tests/nodes/triu_i32.cairo index 23f76aa54..d7b3ac090 100644 --- a/tests/nodes/triu_i32.cairo +++ b/tests/nodes/triu_i32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32/input_0.cairo b/tests/nodes/triu_i32/input_0.cairo index b5d5246f8..00f679fe1 100644 --- a/tests/nodes/triu_i32/input_0.cairo +++ b/tests/nodes/triu_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 56, sign: true }); + data.append(86); + data.append(-82); + data.append(57); + data.append(-15); + data.append(100); + data.append(93); + data.append(48); + data.append(-18); + data.append(-115); + data.append(32); + data.append(39); + data.append(103); + data.append(-87); + data.append(62); + data.append(-27); + data.append(118); + data.append(-94); + data.append(122); + data.append(0); + data.append(49); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32/output_0.cairo b/tests/nodes/triu_i32/output_0.cairo index 49d3df9bf..42ceb58b0 100644 --- a/tests/nodes/triu_i32/output_0.cairo +++ b/tests/nodes/triu_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 56, sign: true }); + data.append(86); + data.append(-82); + data.append(57); + data.append(-15); + data.append(100); + data.append(0); + data.append(48); + data.append(-18); + data.append(-115); + data.append(32); + data.append(0); + data.append(0); + data.append(-87); + data.append(62); + data.append(-27); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(49); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_neg.cairo b/tests/nodes/triu_i32_neg.cairo index 7f74044b8..5c46ebd6c 100644 --- a/tests/nodes/triu_i32_neg.cairo +++ b/tests/nodes/triu_i32_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_neg/input_0.cairo b/tests/nodes/triu_i32_neg/input_0.cairo index 7c5b1df8a..a6e90b0d2 100644 --- a/tests/nodes/triu_i32_neg/input_0.cairo +++ b/tests/nodes/triu_i32_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 94, sign: true }); + data.append(-122); + data.append(-111); + data.append(98); + data.append(108); + data.append(-127); + data.append(-126); + data.append(-38); + data.append(93); + data.append(-64); + data.append(-68); + data.append(9); + data.append(79); + data.append(83); + data.append(17); + data.append(62); + data.append(56); + data.append(123); + data.append(97); + data.append(102); + data.append(87); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_neg/output_0.cairo b/tests/nodes/triu_i32_neg/output_0.cairo index f5104d334..976d9c364 100644 --- a/tests/nodes/triu_i32_neg/output_0.cairo +++ b/tests/nodes/triu_i32_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 90, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 94, sign: true }); + data.append(-122); + data.append(-111); + data.append(98); + data.append(108); + data.append(-127); + data.append(-126); + data.append(-38); + data.append(93); + data.append(-64); + data.append(-68); + data.append(0); + data.append(79); + data.append(83); + data.append(17); + data.append(62); + data.append(0); + data.append(0); + data.append(97); + data.append(102); + data.append(87); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_one_row.cairo b/tests/nodes/triu_i32_one_row.cairo index 2b46a6ea5..67284d558 100644 --- a/tests/nodes/triu_i32_one_row.cairo +++ b/tests/nodes/triu_i32_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_one_row/input_0.cairo b/tests/nodes/triu_i32_one_row/input_0.cairo index d34ee70c9..c98928dc2 100644 --- a/tests/nodes/triu_i32_one_row/input_0.cairo +++ b/tests/nodes/triu_i32_one_row/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 109, sign: false }); + data.append(-92); + data.append(-127); + data.append(-47); + data.append(14); + data.append(122); + data.append(5); + data.append(-35); + data.append(41); + data.append(-6); + data.append(13); + data.append(118); + data.append(-24); + data.append(-104); + data.append(-92); + data.append(49); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_one_row/output_0.cairo b/tests/nodes/triu_i32_one_row/output_0.cairo index 10dd90e8f..f72be9d34 100644 --- a/tests/nodes/triu_i32_one_row/output_0.cairo +++ b/tests/nodes/triu_i32_one_row/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 109, sign: false }); + data.append(-92); + data.append(-127); + data.append(-47); + data.append(14); + data.append(122); + data.append(5); + data.append(-35); + data.append(41); + data.append(-6); + data.append(13); + data.append(118); + data.append(-24); + data.append(-104); + data.append(-92); + data.append(49); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_out_neg.cairo b/tests/nodes/triu_i32_out_neg.cairo index 0f948031a..48fb24f0f 100644 --- a/tests/nodes/triu_i32_out_neg.cairo +++ b/tests/nodes/triu_i32_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_out_neg/input_0.cairo b/tests/nodes/triu_i32_out_neg/input_0.cairo index ce3b1dd40..d6bcd8966 100644 --- a/tests/nodes/triu_i32_out_neg/input_0.cairo +++ b/tests/nodes/triu_i32_out_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 16, sign: true }); + data.append(-59); + data.append(-115); + data.append(105); + data.append(-12); + data.append(34); + data.append(53); + data.append(103); + data.append(-104); + data.append(9); + data.append(-85); + data.append(82); + data.append(100); + data.append(-47); + data.append(39); + data.append(92); + data.append(32); + data.append(-117); + data.append(121); + data.append(-107); + data.append(-60); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_out_neg/output_0.cairo b/tests/nodes/triu_i32_out_neg/output_0.cairo index 32d69f64a..c1c7dbea4 100644 --- a/tests/nodes/triu_i32_out_neg/output_0.cairo +++ b/tests/nodes/triu_i32_out_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 16, sign: true }); + data.append(-59); + data.append(-115); + data.append(105); + data.append(-12); + data.append(34); + data.append(53); + data.append(103); + data.append(-104); + data.append(9); + data.append(-85); + data.append(82); + data.append(100); + data.append(-47); + data.append(39); + data.append(92); + data.append(32); + data.append(-117); + data.append(121); + data.append(-107); + data.append(-60); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_out_pos.cairo b/tests/nodes/triu_i32_out_pos.cairo index a46bd4675..8d92e3312 100644 --- a/tests/nodes/triu_i32_out_pos.cairo +++ b/tests/nodes/triu_i32_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_out_pos/input_0.cairo b/tests/nodes/triu_i32_out_pos/input_0.cairo index 16c4ea6ef..4631f8ce9 100644 --- a/tests/nodes/triu_i32_out_pos/input_0.cairo +++ b/tests/nodes/triu_i32_out_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 71, sign: true }); + data.append(-70); + data.append(-114); + data.append(-2); + data.append(-56); + data.append(102); + data.append(22); + data.append(23); + data.append(-101); + data.append(119); + data.append(-122); + data.append(-82); + data.append(-102); + data.append(56); + data.append(103); + data.append(51); + data.append(-78); + data.append(-120); + data.append(-111); + data.append(-12); + data.append(80); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_out_pos/output_0.cairo b/tests/nodes/triu_i32_out_pos/output_0.cairo index 335b98f5b..d842707bc 100644 --- a/tests/nodes/triu_i32_out_pos/output_0.cairo +++ b/tests/nodes/triu_i32_out_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_pos.cairo b/tests/nodes/triu_i32_pos.cairo index 9e1baaa6c..85680e62e 100644 --- a/tests/nodes/triu_i32_pos.cairo +++ b/tests/nodes/triu_i32_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_pos/input_0.cairo b/tests/nodes/triu_i32_pos/input_0.cairo index de7c53f06..7a3644947 100644 --- a/tests/nodes/triu_i32_pos/input_0.cairo +++ b/tests/nodes/triu_i32_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 98, sign: true }); + data.append(-19); + data.append(-28); + data.append(44); + data.append(-26); + data.append(45); + data.append(83); + data.append(78); + data.append(110); + data.append(89); + data.append(78); + data.append(30); + data.append(-22); + data.append(73); + data.append(-114); + data.append(114); + data.append(-25); + data.append(-6); + data.append(3); + data.append(9); + data.append(79); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_pos/output_0.cairo b/tests/nodes/triu_i32_pos/output_0.cairo index b522c52fc..66f80ba20 100644 --- a/tests/nodes/triu_i32_pos/output_0.cairo +++ b/tests/nodes/triu_i32_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(44); + data.append(-26); + data.append(45); + data.append(0); + data.append(0); + data.append(0); + data.append(89); + data.append(78); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(114); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_square.cairo b/tests/nodes/triu_i32_square.cairo index da62e63b0..6082a9a49 100644 --- a/tests/nodes/triu_i32_square.cairo +++ b/tests/nodes/triu_i32_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_square/input_0.cairo b/tests/nodes/triu_i32_square/input_0.cairo index 37dc442af..2c0afd084 100644 --- a/tests/nodes/triu_i32_square/input_0.cairo +++ b/tests/nodes/triu_i32_square/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(83); + data.append(103); + data.append(-56); + data.append(-82); + data.append(99); + data.append(23); + data.append(28); + data.append(-92); + data.append(126); + data.append(58); + data.append(-92); + data.append(-73); + data.append(93); + data.append(99); + data.append(80); + data.append(1); + data.append(-93); + data.append(108); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_square/output_0.cairo b/tests/nodes/triu_i32_square/output_0.cairo index 82dc56f0c..5ab75a632 100644 --- a/tests/nodes/triu_i32_square/output_0.cairo +++ b/tests/nodes/triu_i32_square/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 85, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); + data.append(83); + data.append(103); + data.append(-56); + data.append(0); + data.append(99); + data.append(23); + data.append(0); + data.append(0); + data.append(126); + data.append(58); + data.append(-92); + data.append(-73); + data.append(0); + data.append(99); + data.append(80); + data.append(0); + data.append(0); + data.append(108); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_square_neg.cairo b/tests/nodes/triu_i32_square_neg.cairo index 07fa2c6c4..f860125d8 100644 --- a/tests/nodes/triu_i32_square_neg.cairo +++ b/tests/nodes/triu_i32_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_square_neg/input_0.cairo b/tests/nodes/triu_i32_square_neg/input_0.cairo index 4e7e6c02a..b33af0c0a 100644 --- a/tests/nodes/triu_i32_square_neg/input_0.cairo +++ b/tests/nodes/triu_i32_square_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 121, sign: false }); + data.append(88); + data.append(-82); + data.append(122); + data.append(55); + data.append(115); + data.append(-98); + data.append(89); + data.append(-40); + data.append(-106); + data.append(-61); + data.append(-108); + data.append(-84); + data.append(-86); + data.append(48); + data.append(-10); + data.append(22); + data.append(36); + data.append(114); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_square_neg/output_0.cairo b/tests/nodes/triu_i32_square_neg/output_0.cairo index e1d6b4640..74812bca6 100644 --- a/tests/nodes/triu_i32_square_neg/output_0.cairo +++ b/tests/nodes/triu_i32_square_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 121, sign: false }); + data.append(88); + data.append(-82); + data.append(122); + data.append(55); + data.append(115); + data.append(-98); + data.append(0); + data.append(-40); + data.append(-106); + data.append(-61); + data.append(-108); + data.append(-84); + data.append(-86); + data.append(48); + data.append(-10); + data.append(0); + data.append(36); + data.append(114); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i32_zero.cairo b/tests/nodes/triu_i32_zero.cairo index bc08584f8..fe7b645c4 100644 --- a/tests/nodes/triu_i32_zero.cairo +++ b/tests/nodes/triu_i32_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i32_zero/input_0.cairo b/tests/nodes/triu_i32_zero/input_0.cairo index b991d1f33..128c83fde 100644 --- a/tests/nodes/triu_i32_zero/input_0.cairo +++ b/tests/nodes/triu_i32_zero/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_i32_zero/output_0.cairo b/tests/nodes/triu_i32_zero/output_0.cairo index 3b9e64eff..a6e7f7ac4 100644 --- a/tests/nodes/triu_i32_zero/output_0.cairo +++ b/tests/nodes/triu_i32_zero/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_i8.cairo b/tests/nodes/triu_i8.cairo index 9ff84ddc6..e3ee4b3e9 100644 --- a/tests/nodes/triu_i8.cairo +++ b/tests/nodes/triu_i8.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8/input_0.cairo b/tests/nodes/triu_i8/input_0.cairo index f3b57f2b1..0cc21a372 100644 --- a/tests/nodes/triu_i8/input_0.cairo +++ b/tests/nodes/triu_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 111, sign: false }); + data.append(10); + data.append(78); + data.append(-79); + data.append(-74); + data.append(-116); + data.append(48); + data.append(77); + data.append(85); + data.append(96); + data.append(-110); + data.append(-55); + data.append(-37); + data.append(50); + data.append(-38); + data.append(117); + data.append(-34); + data.append(-8); + data.append(93); + data.append(-105); + data.append(119); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8/output_0.cairo b/tests/nodes/triu_i8/output_0.cairo index 1fbdb952d..7cb786a6f 100644 --- a/tests/nodes/triu_i8/output_0.cairo +++ b/tests/nodes/triu_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 111, sign: false }); + data.append(10); + data.append(78); + data.append(-79); + data.append(-74); + data.append(-116); + data.append(0); + data.append(77); + data.append(85); + data.append(96); + data.append(-110); + data.append(0); + data.append(0); + data.append(50); + data.append(-38); + data.append(117); + data.append(0); + data.append(0); + data.append(0); + data.append(-105); + data.append(119); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_neg.cairo b/tests/nodes/triu_i8_neg.cairo index c4fcb4020..565b0373c 100644 --- a/tests/nodes/triu_i8_neg.cairo +++ b/tests/nodes/triu_i8_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_neg/input_0.cairo b/tests/nodes/triu_i8_neg/input_0.cairo index 79120ee14..850d92546 100644 --- a/tests/nodes/triu_i8_neg/input_0.cairo +++ b/tests/nodes/triu_i8_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 110, sign: true }); + data.append(41); + data.append(75); + data.append(6); + data.append(119); + data.append(-65); + data.append(76); + data.append(-117); + data.append(91); + data.append(-83); + data.append(72); + data.append(25); + data.append(-28); + data.append(-102); + data.append(77); + data.append(126); + data.append(88); + data.append(-38); + data.append(115); + data.append(44); + data.append(-23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_neg/output_0.cairo b/tests/nodes/triu_i8_neg/output_0.cairo index c2d01baa8..986fd3be4 100644 --- a/tests/nodes/triu_i8_neg/output_0.cairo +++ b/tests/nodes/triu_i8_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 110, sign: true }); + data.append(41); + data.append(75); + data.append(6); + data.append(119); + data.append(-65); + data.append(76); + data.append(-117); + data.append(91); + data.append(-83); + data.append(72); + data.append(0); + data.append(-28); + data.append(-102); + data.append(77); + data.append(126); + data.append(0); + data.append(0); + data.append(115); + data.append(44); + data.append(-23); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_one_row.cairo b/tests/nodes/triu_i8_one_row.cairo index d2a8cd57a..6d1dd0582 100644 --- a/tests/nodes/triu_i8_one_row.cairo +++ b/tests/nodes/triu_i8_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_one_row/input_0.cairo b/tests/nodes/triu_i8_one_row/input_0.cairo index 40d5d9aa6..e89334f0d 100644 --- a/tests/nodes/triu_i8_one_row/input_0.cairo +++ b/tests/nodes/triu_i8_one_row/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 48, sign: false }); + data.append(12); + data.append(-9); + data.append(55); + data.append(7); + data.append(0); + data.append(-20); + data.append(28); + data.append(35); + data.append(47); + data.append(-121); + data.append(109); + data.append(68); + data.append(-29); + data.append(-52); + data.append(-76); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_one_row/output_0.cairo b/tests/nodes/triu_i8_one_row/output_0.cairo index 02d5a3d73..e25fd4ec9 100644 --- a/tests/nodes/triu_i8_one_row/output_0.cairo +++ b/tests/nodes/triu_i8_one_row/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,20 +9,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 48, sign: false }); + data.append(12); + data.append(-9); + data.append(55); + data.append(7); + data.append(0); + data.append(-20); + data.append(28); + data.append(35); + data.append(47); + data.append(-121); + data.append(109); + data.append(68); + data.append(-29); + data.append(-52); + data.append(-76); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_out_neg.cairo b/tests/nodes/triu_i8_out_neg.cairo index dffdd2216..c0cc45801 100644 --- a/tests/nodes/triu_i8_out_neg.cairo +++ b/tests/nodes/triu_i8_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_out_neg/input_0.cairo b/tests/nodes/triu_i8_out_neg/input_0.cairo index 740b99612..056ef4cef 100644 --- a/tests/nodes/triu_i8_out_neg/input_0.cairo +++ b/tests/nodes/triu_i8_out_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 93, sign: true }); + data.append(111); + data.append(-62); + data.append(-62); + data.append(-51); + data.append(-68); + data.append(-61); + data.append(102); + data.append(-62); + data.append(84); + data.append(-41); + data.append(80); + data.append(-26); + data.append(-115); + data.append(95); + data.append(46); + data.append(119); + data.append(-127); + data.append(-51); + data.append(48); + data.append(14); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_out_neg/output_0.cairo b/tests/nodes/triu_i8_out_neg/output_0.cairo index e9980983f..1c3c99a27 100644 --- a/tests/nodes/triu_i8_out_neg/output_0.cairo +++ b/tests/nodes/triu_i8_out_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 28, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 93, sign: true }); + data.append(111); + data.append(-62); + data.append(-62); + data.append(-51); + data.append(-68); + data.append(-61); + data.append(102); + data.append(-62); + data.append(84); + data.append(-41); + data.append(80); + data.append(-26); + data.append(-115); + data.append(95); + data.append(46); + data.append(119); + data.append(-127); + data.append(-51); + data.append(48); + data.append(14); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_out_pos.cairo b/tests/nodes/triu_i8_out_pos.cairo index 050a6f661..b25fc1444 100644 --- a/tests/nodes/triu_i8_out_pos.cairo +++ b/tests/nodes/triu_i8_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_out_pos/input_0.cairo b/tests/nodes/triu_i8_out_pos/input_0.cairo index 1fb1c695a..2d8fe25b2 100644 --- a/tests/nodes/triu_i8_out_pos/input_0.cairo +++ b/tests/nodes/triu_i8_out_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 106, sign: false }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 66, sign: true }); + data.append(95); + data.append(53); + data.append(-5); + data.append(17); + data.append(-86); + data.append(-11); + data.append(-95); + data.append(104); + data.append(12); + data.append(-5); + data.append(64); + data.append(53); + data.append(-52); + data.append(48); + data.append(-111); + data.append(-13); + data.append(63); + data.append(-112); + data.append(31); + data.append(-65); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_out_pos/output_0.cairo b/tests/nodes/triu_i8_out_pos/output_0.cairo index 7a47f094f..a8f191cff 100644 --- a/tests/nodes/triu_i8_out_pos/output_0.cairo +++ b/tests/nodes/triu_i8_out_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_pos.cairo b/tests/nodes/triu_i8_pos.cairo index a0b17016c..c896c9d37 100644 --- a/tests/nodes/triu_i8_pos.cairo +++ b/tests/nodes/triu_i8_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_pos/input_0.cairo b/tests/nodes/triu_i8_pos/input_0.cairo index e0c8fdd27..d50619c53 100644 --- a/tests/nodes/triu_i8_pos/input_0.cairo +++ b/tests/nodes/triu_i8_pos/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 79, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 114, sign: true }); + data.append(79); + data.append(-37); + data.append(-89); + data.append(-85); + data.append(3); + data.append(68); + data.append(42); + data.append(61); + data.append(-62); + data.append(-37); + data.append(-88); + data.append(69); + data.append(-123); + data.append(43); + data.append(-92); + data.append(87); + data.append(-23); + data.append(-25); + data.append(101); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_pos/output_0.cairo b/tests/nodes/triu_i8_pos/output_0.cairo index 846156356..0892165a1 100644 --- a/tests/nodes/triu_i8_pos/output_0.cairo +++ b/tests/nodes/triu_i8_pos/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(-89); + data.append(-85); + data.append(3); + data.append(0); + data.append(0); + data.append(0); + data.append(-62); + data.append(-37); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(-92); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_square.cairo b/tests/nodes/triu_i8_square.cairo index 351d93eb2..8524dc64e 100644 --- a/tests/nodes/triu_i8_square.cairo +++ b/tests/nodes/triu_i8_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_square/input_0.cairo b/tests/nodes/triu_i8_square/input_0.cairo index ff87e93b2..519058099 100644 --- a/tests/nodes/triu_i8_square/input_0.cairo +++ b/tests/nodes/triu_i8_square/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 25, sign: true }); + data.append(34); + data.append(32); + data.append(-105); + data.append(-102); + data.append(36); + data.append(-12); + data.append(-112); + data.append(76); + data.append(-119); + data.append(71); + data.append(48); + data.append(77); + data.append(-117); + data.append(-19); + data.append(15); + data.append(100); + data.append(55); + data.append(30); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_square/output_0.cairo b/tests/nodes/triu_i8_square/output_0.cairo index 55894f031..2581721cc 100644 --- a/tests/nodes/triu_i8_square/output_0.cairo +++ b/tests/nodes/triu_i8_square/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 25, sign: true }); + data.append(34); + data.append(32); + data.append(-105); + data.append(0); + data.append(36); + data.append(-12); + data.append(0); + data.append(0); + data.append(-119); + data.append(71); + data.append(48); + data.append(77); + data.append(0); + data.append(-19); + data.append(15); + data.append(0); + data.append(0); + data.append(30); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_square_neg.cairo b/tests/nodes/triu_i8_square_neg.cairo index 2dfdf470d..567ccc311 100644 --- a/tests/nodes/triu_i8_square_neg.cairo +++ b/tests/nodes/triu_i8_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_square_neg/input_0.cairo b/tests/nodes/triu_i8_square_neg/input_0.cairo index 629f0cecc..ad03512a9 100644 --- a/tests/nodes/triu_i8_square_neg/input_0.cairo +++ b/tests/nodes/triu_i8_square_neg/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 78, sign: false }); + data.append(-66); + data.append(-82); + data.append(10); + data.append(-17); + data.append(109); + data.append(-65); + data.append(-99); + data.append(34); + data.append(-96); + data.append(90); + data.append(-123); + data.append(45); + data.append(47); + data.append(-107); + data.append(-116); + data.append(59); + data.append(-13); + data.append(94); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_square_neg/output_0.cairo b/tests/nodes/triu_i8_square_neg/output_0.cairo index 529b07879..803929d32 100644 --- a/tests/nodes/triu_i8_square_neg/output_0.cairo +++ b/tests/nodes/triu_i8_square_neg/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 78, sign: false }); + data.append(-66); + data.append(-82); + data.append(10); + data.append(-17); + data.append(109); + data.append(-65); + data.append(0); + data.append(34); + data.append(-96); + data.append(90); + data.append(-123); + data.append(45); + data.append(47); + data.append(-107); + data.append(-116); + data.append(0); + data.append(-13); + data.append(94); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_i8_zero.cairo b/tests/nodes/triu_i8_zero.cairo index a65ab6b98..777166703 100644 --- a/tests/nodes/triu_i8_zero.cairo +++ b/tests/nodes/triu_i8_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_i8_zero/input_0.cairo b/tests/nodes/triu_i8_zero/input_0.cairo index 03dc49e3f..821c21489 100644 --- a/tests/nodes/triu_i8_zero/input_0.cairo +++ b/tests/nodes/triu_i8_zero/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_i8_zero/output_0.cairo b/tests/nodes/triu_i8_zero/output_0.cairo index 25b4104aa..bd6795997 100644 --- a/tests/nodes/triu_i8_zero/output_0.cairo +++ b/tests/nodes/triu_i8_zero/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_u32.cairo b/tests/nodes/triu_u32.cairo index 4f8266488..9fe80f579 100644 --- a/tests/nodes/triu_u32.cairo +++ b/tests/nodes/triu_u32.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32/input_0.cairo b/tests/nodes/triu_u32/input_0.cairo index 03913344e..f89b44f7f 100644 --- a/tests/nodes/triu_u32/input_0.cairo +++ b/tests/nodes/triu_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(109); - data.append(158); data.append(245); - data.append(103); - data.append(198); - data.append(122); - data.append(205); - data.append(10); - data.append(11); - data.append(136); - data.append(123); - data.append(80); - data.append(38); - data.append(75); - data.append(181); - data.append(100); - data.append(211); - data.append(121); - data.append(247); - data.append(124); + data.append(184); + data.append(9); + data.append(245); + data.append(161); + data.append(99); + data.append(3); + data.append(17); + data.append(116); + data.append(72); + data.append(146); + data.append(237); + data.append(130); + data.append(230); + data.append(67); + data.append(230); + data.append(81); + data.append(228); + data.append(243); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32/output_0.cairo b/tests/nodes/triu_u32/output_0.cairo index 0ecbc2230..d7abdc93f 100644 --- a/tests/nodes/triu_u32/output_0.cairo +++ b/tests/nodes/triu_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(109); - data.append(158); data.append(245); - data.append(103); - data.append(198); + data.append(184); + data.append(9); + data.append(245); + data.append(161); data.append(0); - data.append(205); - data.append(10); - data.append(11); - data.append(136); + data.append(3); + data.append(17); + data.append(116); + data.append(72); data.append(0); data.append(0); - data.append(38); - data.append(75); - data.append(181); + data.append(130); + data.append(230); + data.append(67); data.append(0); data.append(0); data.append(0); - data.append(247); - data.append(124); + data.append(243); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_neg.cairo b/tests/nodes/triu_u32_neg.cairo index f201bdc15..f6904b305 100644 --- a/tests/nodes/triu_u32_neg.cairo +++ b/tests/nodes/triu_u32_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_neg/input_0.cairo b/tests/nodes/triu_u32_neg/input_0.cairo index ccfc2f500..70bc46186 100644 --- a/tests/nodes/triu_u32_neg/input_0.cairo +++ b/tests/nodes/triu_u32_neg/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(113); - data.append(87); + data.append(13); + data.append(227); + data.append(211); + data.append(51); + data.append(240); + data.append(178); + data.append(74); + data.append(169); + data.append(148); + data.append(211); + data.append(154); + data.append(235); + data.append(49); + data.append(208); + data.append(247); + data.append(159); + data.append(153); data.append(46); - data.append(233); - data.append(48); - data.append(184); - data.append(132); - data.append(29); - data.append(137); - data.append(2); - data.append(28); - data.append(152); - data.append(55); - data.append(58); - data.append(190); - data.append(243); - data.append(41); + data.append(159); data.append(204); - data.append(173); - data.append(150); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_neg/output_0.cairo b/tests/nodes/triu_u32_neg/output_0.cairo index 1e296f5f6..1a450b6fc 100644 --- a/tests/nodes/triu_u32_neg/output_0.cairo +++ b/tests/nodes/triu_u32_neg/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(113); - data.append(87); - data.append(46); - data.append(233); - data.append(48); - data.append(184); - data.append(132); - data.append(29); - data.append(137); - data.append(2); + data.append(13); + data.append(227); + data.append(211); + data.append(51); + data.append(240); + data.append(178); + data.append(74); + data.append(169); + data.append(148); + data.append(211); data.append(0); - data.append(152); - data.append(55); - data.append(58); - data.append(190); + data.append(235); + data.append(49); + data.append(208); + data.append(247); data.append(0); data.append(0); + data.append(46); + data.append(159); data.append(204); - data.append(173); - data.append(150); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_one_row.cairo b/tests/nodes/triu_u32_one_row.cairo index 452909c7a..49fd9b07d 100644 --- a/tests/nodes/triu_u32_one_row.cairo +++ b/tests/nodes/triu_u32_one_row.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_one_row/input_0.cairo b/tests/nodes/triu_u32_one_row/input_0.cairo index e2238a60b..ea0c30389 100644 --- a/tests/nodes/triu_u32_one_row/input_0.cairo +++ b/tests/nodes/triu_u32_one_row/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,20 +9,20 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(139); - data.append(223); - data.append(129); - data.append(83); - data.append(41); - data.append(88); - data.append(145); - data.append(7); + data.append(198); data.append(203); - data.append(124); - data.append(5); - data.append(112); - data.append(61); - data.append(77); - data.append(207); + data.append(245); + data.append(39); + data.append(194); + data.append(11); + data.append(155); + data.append(73); + data.append(219); + data.append(69); + data.append(96); + data.append(34); + data.append(45); + data.append(175); + data.append(211); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_one_row/output_0.cairo b/tests/nodes/triu_u32_one_row/output_0.cairo index 6b4763239..d58b672a0 100644 --- a/tests/nodes/triu_u32_one_row/output_0.cairo +++ b/tests/nodes/triu_u32_one_row/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,20 +9,20 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(139); - data.append(223); - data.append(129); - data.append(83); - data.append(41); - data.append(88); - data.append(145); - data.append(7); + data.append(198); data.append(203); - data.append(124); - data.append(5); - data.append(112); - data.append(61); - data.append(77); - data.append(207); + data.append(245); + data.append(39); + data.append(194); + data.append(11); + data.append(155); + data.append(73); + data.append(219); + data.append(69); + data.append(96); + data.append(34); + data.append(45); + data.append(175); + data.append(211); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_out_neg.cairo b/tests/nodes/triu_u32_out_neg.cairo index 681da38b3..ccd44ae1b 100644 --- a/tests/nodes/triu_u32_out_neg.cairo +++ b/tests/nodes/triu_u32_out_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_out_neg/input_0.cairo b/tests/nodes/triu_u32_out_neg/input_0.cairo index 698233a5a..f7148f307 100644 --- a/tests/nodes/triu_u32_out_neg/input_0.cairo +++ b/tests/nodes/triu_u32_out_neg/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(220); - data.append(57); - data.append(12); - data.append(49); - data.append(133); - data.append(203); - data.append(211); - data.append(116); - data.append(97); - data.append(161); + data.append(218); + data.append(99); + data.append(52); + data.append(215); + data.append(26); data.append(136); - data.append(68); - data.append(121); - data.append(175); - data.append(87); - data.append(36); - data.append(86); - data.append(11); - data.append(85); - data.append(82); + data.append(89); + data.append(77); + data.append(135); + data.append(4); + data.append(38); + data.append(244); + data.append(15); + data.append(151); + data.append(237); + data.append(108); + data.append(199); + data.append(118); + data.append(51); + data.append(132); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_out_neg/output_0.cairo b/tests/nodes/triu_u32_out_neg/output_0.cairo index cb3cb218c..318b50807 100644 --- a/tests/nodes/triu_u32_out_neg/output_0.cairo +++ b/tests/nodes/triu_u32_out_neg/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn output_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(220); - data.append(57); - data.append(12); - data.append(49); - data.append(133); - data.append(203); - data.append(211); - data.append(116); - data.append(97); - data.append(161); + data.append(218); + data.append(99); + data.append(52); + data.append(215); + data.append(26); data.append(136); - data.append(68); - data.append(121); - data.append(175); - data.append(87); - data.append(36); - data.append(86); - data.append(11); - data.append(85); - data.append(82); + data.append(89); + data.append(77); + data.append(135); + data.append(4); + data.append(38); + data.append(244); + data.append(15); + data.append(151); + data.append(237); + data.append(108); + data.append(199); + data.append(118); + data.append(51); + data.append(132); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_out_pos.cairo b/tests/nodes/triu_u32_out_pos.cairo index 2d94b1054..c3d6ef30a 100644 --- a/tests/nodes/triu_u32_out_pos.cairo +++ b/tests/nodes/triu_u32_out_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_out_pos/input_0.cairo b/tests/nodes/triu_u32_out_pos/input_0.cairo index 5cc79110f..8b067ef9d 100644 --- a/tests/nodes/triu_u32_out_pos/input_0.cairo +++ b/tests/nodes/triu_u32_out_pos/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(193); - data.append(144); - data.append(205); + data.append(93); + data.append(140); + data.append(31); + data.append(242); + data.append(44); + data.append(11); + data.append(240); + data.append(166); + data.append(214); + data.append(85); + data.append(168); + data.append(254); + data.append(114); + data.append(206); data.append(145); - data.append(118); - data.append(23); - data.append(17); - data.append(87); - data.append(243); - data.append(169); - data.append(151); - data.append(57); - data.append(211); - data.append(152); - data.append(175); - data.append(47); - data.append(201); - data.append(223); - data.append(42); - data.append(101); + data.append(171); + data.append(195); + data.append(189); + data.append(208); + data.append(50); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_out_pos/output_0.cairo b/tests/nodes/triu_u32_out_pos/output_0.cairo index 4cd9e9fae..e76477f2e 100644 --- a/tests/nodes/triu_u32_out_pos/output_0.cairo +++ b/tests/nodes/triu_u32_out_pos/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_u32_pos.cairo b/tests/nodes/triu_u32_pos.cairo index 4a2e717da..97c478f93 100644 --- a/tests/nodes/triu_u32_pos.cairo +++ b/tests/nodes/triu_u32_pos.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_pos/input_0.cairo b/tests/nodes/triu_u32_pos/input_0.cairo index 1363176d3..b9ed9248f 100644 --- a/tests/nodes/triu_u32_pos/input_0.cairo +++ b/tests/nodes/triu_u32_pos/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,25 +8,25 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(87); - data.append(183); - data.append(123); - data.append(66); - data.append(19); - data.append(149); - data.append(68); - data.append(125); - data.append(0); - data.append(159); - data.append(126); - data.append(205); - data.append(123); - data.append(17); - data.append(4); - data.append(174); - data.append(92); - data.append(233); - data.append(181); - data.append(26); + data.append(244); + data.append(163); + data.append(108); + data.append(70); + data.append(20); + data.append(91); + data.append(177); + data.append(213); + data.append(72); + data.append(36); + data.append(146); + data.append(21); + data.append(61); + data.append(167); + data.append(124); + data.append(6); + data.append(73); + data.append(25); + data.append(72); + data.append(210); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_pos/output_0.cairo b/tests/nodes/triu_u32_pos/output_0.cairo index e2fb302c5..87e27130b 100644 --- a/tests/nodes/triu_u32_pos/output_0.cairo +++ b/tests/nodes/triu_u32_pos/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,19 +10,19 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(0); - data.append(123); - data.append(66); - data.append(19); + data.append(108); + data.append(70); + data.append(20); data.append(0); data.append(0); data.append(0); + data.append(72); + data.append(36); data.append(0); - data.append(159); data.append(0); data.append(0); data.append(0); - data.append(0); - data.append(4); + data.append(124); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/triu_u32_square.cairo b/tests/nodes/triu_u32_square.cairo index 5556f560f..ddb763eac 100644 --- a/tests/nodes/triu_u32_square.cairo +++ b/tests/nodes/triu_u32_square.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_square/input_0.cairo b/tests/nodes/triu_u32_square/input_0.cairo index 81af2ae5f..37260072e 100644 --- a/tests/nodes/triu_u32_square/input_0.cairo +++ b/tests/nodes/triu_u32_square/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(221); - data.append(99); - data.append(210); - data.append(132); - data.append(78); - data.append(194); - data.append(197); - data.append(177); - data.append(143); - data.append(17); - data.append(167); - data.append(35); - data.append(146); - data.append(51); - data.append(144); - data.append(72); - data.append(42); + data.append(20); + data.append(186); + data.append(209); + data.append(1); + data.append(82); + data.append(184); + data.append(237); + data.append(235); + data.append(142); + data.append(9); + data.append(73); + data.append(90); + data.append(71); data.append(127); + data.append(102); + data.append(28); + data.append(171); + data.append(121); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_square/output_0.cairo b/tests/nodes/triu_u32_square/output_0.cairo index 96881a773..db9f3f52c 100644 --- a/tests/nodes/triu_u32_square/output_0.cairo +++ b/tests/nodes/triu_u32_square/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(221); - data.append(99); - data.append(210); + data.append(20); + data.append(186); + data.append(209); data.append(0); - data.append(78); - data.append(194); + data.append(82); + data.append(184); data.append(0); data.append(0); - data.append(143); - data.append(17); - data.append(167); - data.append(35); + data.append(142); + data.append(9); + data.append(73); + data.append(90); data.append(0); - data.append(51); - data.append(144); + data.append(127); + data.append(102); data.append(0); data.append(0); - data.append(127); + data.append(121); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_square_neg.cairo b/tests/nodes/triu_u32_square_neg.cairo index 58e5f3795..ffc36ebe6 100644 --- a/tests/nodes/triu_u32_square_neg.cairo +++ b/tests/nodes/triu_u32_square_neg.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_square_neg/input_0.cairo b/tests/nodes/triu_u32_square_neg/input_0.cairo index 8f3e6a3d9..1865ecd99 100644 --- a/tests/nodes/triu_u32_square_neg/input_0.cairo +++ b/tests/nodes/triu_u32_square_neg/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +9,23 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(38); - data.append(103); - data.append(89); - data.append(80); - data.append(35); - data.append(166); - data.append(47); + data.append(130); + data.append(164); + data.append(178); + data.append(140); + data.append(56); + data.append(214); + data.append(141); + data.append(173); + data.append(10); data.append(229); - data.append(247); - data.append(77); - data.append(3); - data.append(229); - data.append(236); - data.append(225); - data.append(89); - data.append(27); - data.append(43); - data.append(253); + data.append(182); + data.append(12); + data.append(167); + data.append(150); + data.append(215); + data.append(147); + data.append(37); + data.append(17); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_square_neg/output_0.cairo b/tests/nodes/triu_u32_square_neg/output_0.cairo index 2bfc9e94c..8ebd77370 100644 --- a/tests/nodes/triu_u32_square_neg/output_0.cairo +++ b/tests/nodes/triu_u32_square_neg/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,23 +9,23 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(38); - data.append(103); - data.append(89); - data.append(80); - data.append(35); - data.append(166); + data.append(130); + data.append(164); + data.append(178); + data.append(140); + data.append(56); + data.append(214); data.append(0); + data.append(173); + data.append(10); data.append(229); - data.append(247); - data.append(77); - data.append(3); - data.append(229); - data.append(236); - data.append(225); - data.append(89); + data.append(182); + data.append(12); + data.append(167); + data.append(150); + data.append(215); data.append(0); - data.append(43); - data.append(253); + data.append(37); + data.append(17); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/triu_u32_zero.cairo b/tests/nodes/triu_u32_zero.cairo index 4bb9e8964..856a768d5 100644 --- a/tests/nodes/triu_u32_zero.cairo +++ b/tests/nodes/triu_u32_zero.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/triu_u32_zero/input_0.cairo b/tests/nodes/triu_u32_zero/input_0.cairo index 0110d2dab..f22815722 100644 --- a/tests/nodes/triu_u32_zero/input_0.cairo +++ b/tests/nodes/triu_u32_zero/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/triu_u32_zero/output_0.cairo b/tests/nodes/triu_u32_zero/output_0.cairo index 73f14f67e..0f567f9f2 100644 --- a/tests/nodes/triu_u32_zero/output_0.cairo +++ b/tests/nodes/triu_u32_zero/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo index 550d54999..0678f9abf 100644 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo index a70643bcc..06bbae1b8 100644 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 171911, sign: false }); - data.append(FP16x16 { mag: 125876, sign: true }); - data.append(FP16x16 { mag: 58883, sign: true }); - data.append(FP16x16 { mag: 134443, sign: true }); - data.append(FP16x16 { mag: 11378, sign: false }); - data.append(FP16x16 { mag: 32169, sign: false }); - data.append(FP16x16 { mag: 124876, sign: false }); - data.append(FP16x16 { mag: 47530, sign: true }); - data.append(FP16x16 { mag: 3046, sign: false }); - data.append(FP16x16 { mag: 79544, sign: false }); - data.append(FP16x16 { mag: 86148, sign: true }); - data.append(FP16x16 { mag: 42525, sign: false }); - data.append(FP16x16 { mag: 46115, sign: false }); - data.append(FP16x16 { mag: 54280, sign: true }); - data.append(FP16x16 { mag: 166328, sign: true }); - data.append(FP16x16 { mag: 39251, sign: false }); - data.append(FP16x16 { mag: 193736, sign: true }); - data.append(FP16x16 { mag: 2156, sign: true }); - data.append(FP16x16 { mag: 333, sign: false }); - data.append(FP16x16 { mag: 31045, sign: true }); - data.append(FP16x16 { mag: 145308, sign: false }); - data.append(FP16x16 { mag: 64842, sign: true }); - data.append(FP16x16 { mag: 53870, sign: false }); - data.append(FP16x16 { mag: 183784, sign: false }); - data.append(FP16x16 { mag: 36113, sign: false }); - data.append(FP16x16 { mag: 22596, sign: false }); - data.append(FP16x16 { mag: 155378, sign: false }); + data.append(FP16x16 { mag: 38618, sign: false }); + data.append(FP16x16 { mag: 46835, sign: true }); + data.append(FP16x16 { mag: 183371, sign: true }); + data.append(FP16x16 { mag: 60520, sign: true }); + data.append(FP16x16 { mag: 134389, sign: false }); + data.append(FP16x16 { mag: 10773, sign: false }); + data.append(FP16x16 { mag: 111121, sign: true }); + data.append(FP16x16 { mag: 155827, sign: false }); + data.append(FP16x16 { mag: 50600, sign: true }); + data.append(FP16x16 { mag: 184242, sign: false }); + data.append(FP16x16 { mag: 134602, sign: true }); + data.append(FP16x16 { mag: 147290, sign: false }); + data.append(FP16x16 { mag: 117135, sign: true }); + data.append(FP16x16 { mag: 50535, sign: false }); + data.append(FP16x16 { mag: 134502, sign: false }); + data.append(FP16x16 { mag: 115730, sign: false }); + data.append(FP16x16 { mag: 92700, sign: false }); + data.append(FP16x16 { mag: 78606, sign: false }); + data.append(FP16x16 { mag: 175904, sign: false }); + data.append(FP16x16 { mag: 23346, sign: true }); + data.append(FP16x16 { mag: 149382, sign: true }); + data.append(FP16x16 { mag: 187601, sign: false }); + data.append(FP16x16 { mag: 180445, sign: true }); + data.append(FP16x16 { mag: 143605, sign: true }); + data.append(FP16x16 { mag: 108591, sign: true }); + data.append(FP16x16 { mag: 129062, sign: false }); + data.append(FP16x16 { mag: 180135, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo index 872dfa30d..bd859a67f 100644 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -10,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 333, sign: false }); - data.append(FP16x16 { mag: 31040, sign: true }); - data.append(FP16x16 { mag: 145280, sign: false }); - data.append(FP16x16 { mag: 64832, sign: true }); - data.append(FP16x16 { mag: 53856, sign: false }); - data.append(FP16x16 { mag: 183808, sign: false }); - data.append(FP16x16 { mag: 36128, sign: false }); - data.append(FP16x16 { mag: 22592, sign: false }); - data.append(FP16x16 { mag: 155392, sign: false }); - data.append(FP16x16 { mag: 79552, sign: false }); - data.append(FP16x16 { mag: 86144, sign: true }); - data.append(FP16x16 { mag: 42528, sign: false }); - data.append(FP16x16 { mag: 46112, sign: false }); - data.append(FP16x16 { mag: 54272, sign: true }); - data.append(FP16x16 { mag: 166272, sign: true }); - data.append(FP16x16 { mag: 39264, sign: false }); - data.append(FP16x16 { mag: 193792, sign: true }); - data.append(FP16x16 { mag: 2156, sign: true }); - data.append(FP16x16 { mag: 171904, sign: false }); - data.append(FP16x16 { mag: 125888, sign: true }); - data.append(FP16x16 { mag: 58880, sign: true }); - data.append(FP16x16 { mag: 134400, sign: true }); - data.append(FP16x16 { mag: 11376, sign: false }); - data.append(FP16x16 { mag: 32176, sign: false }); - data.append(FP16x16 { mag: 124864, sign: false }); - data.append(FP16x16 { mag: 47520, sign: true }); - data.append(FP16x16 { mag: 3046, sign: false }); + data.append(FP16x16 { mag: 38624, sign: false }); + data.append(FP16x16 { mag: 46848, sign: true }); + data.append(FP16x16 { mag: 183424, sign: true }); + data.append(FP16x16 { mag: 60512, sign: true }); + data.append(FP16x16 { mag: 134400, sign: false }); + data.append(FP16x16 { mag: 10776, sign: false }); + data.append(FP16x16 { mag: 111104, sign: true }); + data.append(FP16x16 { mag: 155776, sign: false }); + data.append(FP16x16 { mag: 50592, sign: true }); + data.append(FP16x16 { mag: 175872, sign: false }); + data.append(FP16x16 { mag: 23344, sign: true }); + data.append(FP16x16 { mag: 149376, sign: true }); + data.append(FP16x16 { mag: 187648, sign: false }); + data.append(FP16x16 { mag: 180480, sign: true }); + data.append(FP16x16 { mag: 143616, sign: true }); + data.append(FP16x16 { mag: 108608, sign: true }); + data.append(FP16x16 { mag: 129088, sign: false }); + data.append(FP16x16 { mag: 180096, sign: false }); + data.append(FP16x16 { mag: 184192, sign: false }); + data.append(FP16x16 { mag: 134656, sign: true }); + data.append(FP16x16 { mag: 147328, sign: false }); + data.append(FP16x16 { mag: 117120, sign: true }); + data.append(FP16x16 { mag: 50528, sign: false }); + data.append(FP16x16 { mag: 134528, sign: false }); + data.append(FP16x16 { mag: 115712, sign: false }); + data.append(FP16x16 { mag: 92672, sign: false }); + data.append(FP16x16 { mag: 78592, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo index 010c65953..da1ca1282 100644 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_1.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo index d65aaaed4..18dd614d4 100644 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_2.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(0); + data.append(2); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo index f4525eef0..2432f9eaa 100644 --- a/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo +++ b/tests/nodes/unique_fp16x16_with_axis_zero_sorted/output_3.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted.cairo index 39c97e574..4f1e6604b 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::operators::tensor::FP16x16Tensor; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo index 6d841c547..36bb75fcd 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { @@ -10,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 38638, sign: false }); - data.append(FP16x16 { mag: 132210, sign: false }); - data.append(FP16x16 { mag: 167838, sign: false }); - data.append(FP16x16 { mag: 48522, sign: false }); - data.append(FP16x16 { mag: 90060, sign: false }); - data.append(FP16x16 { mag: 182305, sign: false }); - data.append(FP16x16 { mag: 195761, sign: false }); - data.append(FP16x16 { mag: 55113, sign: false }); - data.append(FP16x16 { mag: 2489, sign: false }); - data.append(FP16x16 { mag: 12496, sign: false }); - data.append(FP16x16 { mag: 56991, sign: false }); - data.append(FP16x16 { mag: 10365, sign: false }); - data.append(FP16x16 { mag: 80275, sign: false }); - data.append(FP16x16 { mag: 52009, sign: false }); - data.append(FP16x16 { mag: 129459, sign: false }); - data.append(FP16x16 { mag: 36318, sign: false }); - data.append(FP16x16 { mag: 108733, sign: false }); - data.append(FP16x16 { mag: 114068, sign: false }); - data.append(FP16x16 { mag: 89937, sign: false }); - data.append(FP16x16 { mag: 82549, sign: false }); - data.append(FP16x16 { mag: 171965, sign: false }); - data.append(FP16x16 { mag: 120808, sign: false }); - data.append(FP16x16 { mag: 94584, sign: false }); - data.append(FP16x16 { mag: 122438, sign: false }); - data.append(FP16x16 { mag: 147487, sign: false }); - data.append(FP16x16 { mag: 177155, sign: false }); - data.append(FP16x16 { mag: 71361, sign: false }); + data.append(FP16x16 { mag: 66908, sign: false }); + data.append(FP16x16 { mag: 102211, sign: false }); + data.append(FP16x16 { mag: 31626, sign: false }); + data.append(FP16x16 { mag: 71039, sign: false }); + data.append(FP16x16 { mag: 18914, sign: false }); + data.append(FP16x16 { mag: 65772, sign: false }); + data.append(FP16x16 { mag: 88563, sign: false }); + data.append(FP16x16 { mag: 150507, sign: false }); + data.append(FP16x16 { mag: 152608, sign: false }); + data.append(FP16x16 { mag: 34995, sign: false }); + data.append(FP16x16 { mag: 113399, sign: false }); + data.append(FP16x16 { mag: 80984, sign: false }); + data.append(FP16x16 { mag: 67061, sign: false }); + data.append(FP16x16 { mag: 79121, sign: false }); + data.append(FP16x16 { mag: 196064, sign: false }); + data.append(FP16x16 { mag: 192947, sign: false }); + data.append(FP16x16 { mag: 16692, sign: false }); + data.append(FP16x16 { mag: 106660, sign: false }); + data.append(FP16x16 { mag: 94130, sign: false }); + data.append(FP16x16 { mag: 50303, sign: false }); + data.append(FP16x16 { mag: 28219, sign: false }); + data.append(FP16x16 { mag: 16416, sign: false }); + data.append(FP16x16 { mag: 193457, sign: false }); + data.append(FP16x16 { mag: 141602, sign: false }); + data.append(FP16x16 { mag: 73709, sign: false }); + data.append(FP16x16 { mag: 185408, sign: false }); + data.append(FP16x16 { mag: 194771, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo index cd43bb10d..ec10c9476 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorAdd}; use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { @@ -8,32 +8,32 @@ fn output_0() -> Tensor { shape.append(27); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 2490, sign: false }); - data.append(FP16x16 { mag: 10368, sign: false }); - data.append(FP16x16 { mag: 12496, sign: false }); - data.append(FP16x16 { mag: 36320, sign: false }); - data.append(FP16x16 { mag: 38624, sign: false }); - data.append(FP16x16 { mag: 48512, sign: false }); - data.append(FP16x16 { mag: 52000, sign: false }); - data.append(FP16x16 { mag: 55104, sign: false }); - data.append(FP16x16 { mag: 56992, sign: false }); - data.append(FP16x16 { mag: 71360, sign: false }); - data.append(FP16x16 { mag: 80256, sign: false }); - data.append(FP16x16 { mag: 82560, sign: false }); - data.append(FP16x16 { mag: 89920, sign: false }); - data.append(FP16x16 { mag: 90048, sign: false }); - data.append(FP16x16 { mag: 94592, sign: false }); - data.append(FP16x16 { mag: 108736, sign: false }); - data.append(FP16x16 { mag: 114048, sign: false }); - data.append(FP16x16 { mag: 120832, sign: false }); - data.append(FP16x16 { mag: 122432, sign: false }); - data.append(FP16x16 { mag: 129472, sign: false }); - data.append(FP16x16 { mag: 132224, sign: false }); - data.append(FP16x16 { mag: 147456, sign: false }); - data.append(FP16x16 { mag: 167808, sign: false }); - data.append(FP16x16 { mag: 171904, sign: false }); - data.append(FP16x16 { mag: 177152, sign: false }); - data.append(FP16x16 { mag: 182272, sign: false }); - data.append(FP16x16 { mag: 195712, sign: false }); + data.append(FP16x16 { mag: 16416, sign: false }); + data.append(FP16x16 { mag: 16688, sign: false }); + data.append(FP16x16 { mag: 18912, sign: false }); + data.append(FP16x16 { mag: 28224, sign: false }); + data.append(FP16x16 { mag: 31632, sign: false }); + data.append(FP16x16 { mag: 35008, sign: false }); + data.append(FP16x16 { mag: 50304, sign: false }); + data.append(FP16x16 { mag: 65792, sign: false }); + data.append(FP16x16 { mag: 66880, sign: false }); + data.append(FP16x16 { mag: 67072, sign: false }); + data.append(FP16x16 { mag: 71040, sign: false }); + data.append(FP16x16 { mag: 73728, sign: false }); + data.append(FP16x16 { mag: 79104, sign: false }); + data.append(FP16x16 { mag: 80960, sign: false }); + data.append(FP16x16 { mag: 88576, sign: false }); + data.append(FP16x16 { mag: 94144, sign: false }); + data.append(FP16x16 { mag: 102208, sign: false }); + data.append(FP16x16 { mag: 106688, sign: false }); + data.append(FP16x16 { mag: 113408, sign: false }); + data.append(FP16x16 { mag: 141568, sign: false }); + data.append(FP16x16 { mag: 150528, sign: false }); + data.append(FP16x16 { mag: 152576, sign: false }); + data.append(FP16x16 { mag: 185472, sign: false }); + data.append(FP16x16 { mag: 192896, sign: false }); + data.append(FP16x16 { mag: 193408, sign: false }); + data.append(FP16x16 { mag: 194816, sign: false }); + data.append(FP16x16 { mag: 196096, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo index 6209f38f5..7cb657a2f 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_1.cairo @@ -1,39 +1,39 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); + data.append(21); + data.append(16); + data.append(4); + data.append(20); + data.append(2); + data.append(9); + data.append(19); + data.append(5); + data.append(0); + data.append(12); + data.append(3); + data.append(24); + data.append(13); + data.append(11); + data.append(6); + data.append(18); + data.append(1); + data.append(17); + data.append(10); + data.append(23); + data.append(7); + data.append(8); + data.append(25); + data.append(15); + data.append(22); + data.append(26); + data.append(14); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo index 8e61aabc5..c6de35ac0 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_2.cairo @@ -1,39 +1,39 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 9, sign: false }); + data.append(8); + data.append(16); + data.append(4); + data.append(10); + data.append(2); + data.append(7); + data.append(14); + data.append(20); + data.append(21); + data.append(5); + data.append(18); + data.append(13); + data.append(9); + data.append(12); + data.append(26); + data.append(23); + data.append(1); + data.append(17); + data.append(15); + data.append(6); + data.append(3); + data.append(0); + data.append(24); + data.append(19); + data.append(11); + data.append(22); + data.append(25); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo b/tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo index c08cbadfa..20ed3f80d 100644 --- a/tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_fp16x16_without_axis_sorted/output_3.cairo @@ -1,39 +1,39 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo index c218da721..2fd2b877f 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo index 72a500a79..0261848e4 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(2); - data.append(0); - data.append(4); - data.append(0); - data.append(1); + data.append(3); data.append(2); - data.append(0); + data.append(3); data.append(1); + data.append(4); data.append(2); - data.append(0); - data.append(0); data.append(3); + data.append(4); data.append(3); data.append(3); data.append(1); data.append(4); data.append(0); + data.append(3); data.append(4); data.append(0); data.append(3); + data.append(2); + data.append(4); data.append(3); - data.append(0); + data.append(4); + data.append(2); data.append(1); data.append(0); - data.append(2); + data.append(4); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo index e1e80a658..ee50990c9 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(0); - data.append(1); - data.append(2); - data.append(0); - data.append(4); - data.append(0); - data.append(1); + data.append(3); data.append(2); - data.append(0); + data.append(3); data.append(1); + data.append(4); data.append(2); - data.append(0); - data.append(0); data.append(3); + data.append(4); data.append(3); data.append(3); data.append(1); data.append(4); data.append(0); + data.append(3); data.append(4); data.append(0); data.append(3); + data.append(2); + data.append(4); data.append(3); - data.append(0); + data.append(4); + data.append(2); data.append(1); data.append(0); - data.append(2); + data.append(4); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo index 547b562c5..97736c8a9 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_1.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo index 6e6f47df3..ef128a495 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_2.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo index f4525eef0..2432f9eaa 100644 --- a/tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_with_axis_one_not_sorted/output_3.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_sorted.cairo b/tests/nodes/unique_u32_with_axis_one_sorted.cairo index 6acd20c1a..d85619fad 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo index 76cef7874..5a747684e 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,29 +13,29 @@ fn input_0() -> Tensor { data.append(1); data.append(3); data.append(1); - data.append(2); - data.append(4); + data.append(3); data.append(1); - data.append(4); - data.append(2); - data.append(4); - data.append(4); + data.append(3); + data.append(3); data.append(2); data.append(1); - data.append(4); + data.append(1); data.append(0); data.append(3); data.append(0); - data.append(1); data.append(4); - data.append(3); data.append(4); - data.append(3); - data.append(3); + data.append(0); + data.append(2); + data.append(0); data.append(4); - data.append(3); data.append(0); - data.append(3); + data.append(0); + data.append(4); + data.append(1); data.append(2); + data.append(0); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo b/tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo index ea8364313..fc542bf66 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,29 +13,29 @@ fn output_0() -> Tensor { data.append(1); data.append(3); data.append(1); - data.append(2); - data.append(4); + data.append(3); data.append(1); - data.append(4); - data.append(2); - data.append(4); - data.append(4); + data.append(3); + data.append(3); data.append(2); data.append(1); - data.append(4); + data.append(1); data.append(0); data.append(3); data.append(0); - data.append(1); data.append(4); - data.append(3); data.append(4); - data.append(3); - data.append(3); + data.append(0); + data.append(2); + data.append(0); data.append(4); - data.append(3); data.append(0); - data.append(3); + data.append(0); + data.append(4); + data.append(1); data.append(2); + data.append(0); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo b/tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo index 547b562c5..97736c8a9 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_1.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo b/tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo index 6e6f47df3..ef128a495 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_2.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo b/tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo index f4525eef0..2432f9eaa 100644 --- a/tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_with_axis_one_sorted/output_3.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo index 04fc4f96a..9d1b4ef35 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo index 9ecf58def..7466a4465 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +11,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(4); - data.append(2); - data.append(3); - data.append(2); - data.append(1); - data.append(4); - data.append(1); - data.append(1); - data.append(3); - data.append(2); - data.append(0); data.append(1); data.append(1); data.append(4); - data.append(4); data.append(2); data.append(1); - data.append(2); data.append(4); data.append(0); data.append(0); data.append(2); + data.append(0); + data.append(0); data.append(3); - data.append(1); + data.append(2); + data.append(4); + data.append(4); data.append(3); + data.append(4); + data.append(2); data.append(0); + data.append(0); + data.append(2); + data.append(4); + data.append(1); data.append(4); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo index 8f8a8992d..715bcec5d 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +11,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(4); - data.append(2); - data.append(3); - data.append(2); - data.append(1); - data.append(4); - data.append(1); - data.append(1); - data.append(3); - data.append(2); - data.append(0); data.append(1); data.append(1); data.append(4); - data.append(4); data.append(2); data.append(1); - data.append(2); data.append(4); data.append(0); data.append(0); data.append(2); + data.append(0); + data.append(0); data.append(3); - data.append(1); + data.append(2); + data.append(4); + data.append(4); data.append(3); + data.append(4); + data.append(2); data.append(0); + data.append(0); + data.append(2); + data.append(4); + data.append(1); data.append(4); + data.append(2); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo index 547b562c5..97736c8a9 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_1.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo index 6e6f47df3..ef128a495 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_2.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo index f4525eef0..2432f9eaa 100644 --- a/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_not_sorted/output_3.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_sorted.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted.cairo index 25b8a02fe..61a89bd68 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo index 5c591c021..cbd027dc7 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); + data.append(0); + data.append(4); data.append(1); data.append(3); - data.append(3); + data.append(4); + data.append(4); + data.append(4); data.append(1); data.append(2); - data.append(4); + data.append(2); data.append(3); data.append(0); data.append(3); + data.append(1); data.append(2); + data.append(2); + data.append(1); data.append(4); + data.append(1); data.append(0); data.append(0); - data.append(4); + data.append(2); data.append(0); - data.append(4); - data.append(3); - data.append(4); - data.append(4); - data.append(3); - data.append(1); - data.append(3); - data.append(4); data.append(0); - data.append(2); - data.append(4); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo index c51984672..5224736d2 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); + data.append(2); + data.append(0); + data.append(4); data.append(1); data.append(3); - data.append(3); + data.append(4); + data.append(4); + data.append(4); data.append(1); data.append(2); - data.append(4); + data.append(2); data.append(3); data.append(0); data.append(3); + data.append(1); data.append(2); + data.append(2); + data.append(1); data.append(4); + data.append(1); data.append(0); data.append(0); - data.append(4); + data.append(2); data.append(0); - data.append(4); - data.append(3); - data.append(4); - data.append(4); - data.append(3); - data.append(1); - data.append(3); - data.append(4); data.append(0); - data.append(2); - data.append(4); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo index 547b562c5..97736c8a9 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_1.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo index 6e6f47df3..ef128a495 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_2.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); + data.append(0); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo b/tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo index f4525eef0..2432f9eaa 100644 --- a/tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_with_axis_zero_sorted/output_3.cairo @@ -1,15 +1,15 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_not_sorted.cairo b/tests/nodes/unique_u32_without_axis_not_sorted.cairo index 3e7583191..56251ad7a 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo b/tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo index 4c42d62c4..6864d8e6b 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(3); + data.append(4); data.append(0); - data.append(2); - data.append(0); - data.append(3); data.append(0); data.append(1); - data.append(4); - data.append(0); - data.append(3); data.append(1); + data.append(3); + data.append(3); + data.append(4); data.append(2); + data.append(2); + data.append(3); data.append(4); - data.append(1); data.append(4); + data.append(3); data.append(1); - data.append(1); - data.append(0); - data.append(2); data.append(4); - data.append(1); - data.append(2); data.append(4); - data.append(0); + data.append(3); data.append(4); + data.append(1); + data.append(0); data.append(3); data.append(4); + data.append(4); + data.append(1); + data.append(4); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo b/tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo index 99c20f7ab..58e237168 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_0.cairo @@ -1,16 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(3); + data.append(4); data.append(0); - data.append(2); data.append(1); - data.append(4); + data.append(3); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo b/tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo index 88d53b47f..3d73d13c4 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_1.cairo @@ -1,17 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(0); + data.append(1); + data.append(3); + data.append(5); + data.append(8); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo b/tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo index 5f6e7cc7f..5ff85e257 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_2.cairo @@ -1,39 +1,39 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); + data.append(0); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(3); + data.append(3); + data.append(0); + data.append(4); + data.append(4); + data.append(3); + data.append(0); + data.append(0); + data.append(3); + data.append(2); + data.append(0); + data.append(0); + data.append(3); + data.append(0); + data.append(2); + data.append(1); + data.append(3); + data.append(0); + data.append(0); + data.append(2); + data.append(0); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo b/tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo index 342531f75..b75c1cbd8 100644 --- a/tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_not_sorted/output_3.cairo @@ -1,17 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 7, sign: false }); + data.append(10); + data.append(3); + data.append(6); + data.append(6); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_sorted.cairo b/tests/nodes/unique_u32_without_axis_sorted.cairo index 33babc7e4..747de7c8f 100644 --- a/tests/nodes/unique_u32_without_axis_sorted.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted.cairo @@ -5,13 +5,13 @@ mod output_2; mod output_3; -use orion::operators::tensor::U32TensorPartialEq; -use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::operators::tensor::U32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo index b7635c9d3..7e30cc0a0 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/input_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(0); data.append(1); + data.append(4); data.append(1); - data.append(3); + data.append(4); data.append(1); + data.append(0); data.append(3); data.append(3); data.append(0); + data.append(1); + data.append(0); + data.append(1); data.append(3); data.append(1); + data.append(3); + data.append(3); data.append(4); + data.append(0); data.append(2); + data.append(4); data.append(0); data.append(3); data.append(0); - data.append(0); data.append(2); - data.append(3); - data.append(4); data.append(2); - data.append(4); - data.append(1); - data.append(4); - data.append(4); - data.append(3); data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo index 225dbe071..1e1f37bf5 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_0.cairo @@ -1,6 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorAdd}; +use orion::numbers::NumberTrait; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo index 0281bb980..1c10bed63 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_1.cairo @@ -1,17 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_1() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 11, sign: false }); + data.append(5); + data.append(0); + data.append(18); + data.append(6); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo index fbf9c6c97..8e5e6241a 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_2.cairo @@ -1,39 +1,39 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_2() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(27); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); + data.append(1); + data.append(4); + data.append(1); + data.append(4); + data.append(1); + data.append(0); + data.append(3); + data.append(3); + data.append(0); + data.append(1); + data.append(0); + data.append(1); + data.append(3); + data.append(1); + data.append(3); + data.append(3); + data.append(4); + data.append(0); + data.append(2); + data.append(4); + data.append(0); + data.append(3); + data.append(0); + data.append(2); + data.append(2); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo index e5c7bead2..f318f8453 100644 --- a/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo +++ b/tests/nodes/unique_u32_without_axis_sorted/output_3.cairo @@ -1,17 +1,17 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorAdd}; +use orion::numbers::NumberTrait; fn output_3() -> Tensor { let mut shape = ArrayTrait::::new(); shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(7); + data.append(7); + data.append(3); + data.append(6); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp16x16_2d.cairo b/tests/nodes/unsqueeze_fp16x16_2d.cairo index 824deea46..b57ec87aa 100644 --- a/tests/nodes/unsqueeze_fp16x16_2d.cairo +++ b/tests/nodes/unsqueeze_fp16x16_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo b/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo index 0e3d25c66..e88484086 100644 --- a/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo b/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo index b0716bb86..32ef4a4f4 100644 --- a/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,13 +12,13 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp16x16_3d.cairo b/tests/nodes/unsqueeze_fp16x16_3d.cairo index 772ce74a9..e3b3e2f3b 100644 --- a/tests/nodes/unsqueeze_fp16x16_3d.cairo +++ b/tests/nodes/unsqueeze_fp16x16_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo b/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo index 8601b1660..ff3e23359 100644 --- a/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: false }); data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: false }); data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: true }); data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: false }); data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: true }); data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: true }); data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); data.append(FP16x16 { mag: 8126464, sign: false }); data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: true }); data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: true }); data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo b/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo index 7fbf2154a..8ee3f26d2 100644 --- a/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp16x16_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -14,1005 +13,1005 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 2293760, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: false }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: false }); data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 327680, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: true }); data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 917504, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); data.append(FP16x16 { mag: 4456448, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 2818048, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: false }); data.append(FP16x16 { mag: 4259840, sign: true }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 524288, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); data.append(FP16x16 { mag: 2490368, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 5898240, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 524288, sign: false }); data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); data.append(FP16x16 { mag: 7536640, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 4653056, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: false }); data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 7077888, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: true }); data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: false }); - data.append(FP16x16 { mag: 3407872, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 3014656, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 4325376, sign: false }); data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: false }); data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: false }); data.append(FP16x16 { mag: 7798784, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 2555904, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: true }); data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 524288, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 6291456, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: false }); data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: true }); data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 6684672, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: false }); data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: true }); + data.append(FP16x16 { mag: 5832704, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 2097152, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 393216, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: false }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: false }); data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 196608, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); + data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: false }); data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 1048576, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 917504, sign: true }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 4128768, sign: true }); data.append(FP16x16 { mag: 1703936, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: true }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: false }); - data.append(FP16x16 { mag: 7340032, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: false }); data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 3997696, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: false }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: true }); data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 5636096, sign: false }); - data.append(FP16x16 { mag: 6881280, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 7602176, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 5898240, sign: false }); data.append(FP16x16 { mag: 6488064, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: false }); - data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 3997696, sign: true }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: false }); data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); data.append(FP16x16 { mag: 589824, sign: false }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 5111808, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 983040, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 6160384, sign: false }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 2621440, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 4390912, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 7536640, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 5373952, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 4653056, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: true }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: true }); data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 5832704, sign: true }); data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: true }); data.append(FP16x16 { mag: 5505024, sign: true }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 6029312, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: false }); - data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 7077888, sign: false }); data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: true }); - data.append(FP16x16 { mag: 4521984, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 7864320, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 393216, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: true }); data.append(FP16x16 { mag: 5046272, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 1507328, sign: false }); - data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 7798784, sign: true }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 2424832, sign: false }); - data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 3473408, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 2031616, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 6815744, sign: true }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 8060928, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 1703936, sign: false }); + data.append(FP16x16 { mag: 1572864, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: false }); data.append(FP16x16 { mag: 65536, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: false }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 458752, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: true }); - data.append(FP16x16 { mag: 7405568, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 8060928, sign: false }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4259840, sign: false }); - data.append(FP16x16 { mag: 6029312, sign: false }); - data.append(FP16x16 { mag: 4128768, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: false }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 720896, sign: true }); data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); data.append(FP16x16 { mag: 5636096, sign: true }); - data.append(FP16x16 { mag: 5439488, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: false }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 524288, sign: false }); - data.append(FP16x16 { mag: 3670016, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: true }); data.append(FP16x16 { mag: 4915200, sign: false }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 4063232, sign: true }); - data.append(FP16x16 { mag: 589824, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 1245184, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 2490368, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 655360, sign: true }); - data.append(FP16x16 { mag: 7995392, sign: true }); - data.append(FP16x16 { mag: 3080192, sign: true }); - data.append(FP16x16 { mag: 720896, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 2752512, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7667712, sign: false }); - data.append(FP16x16 { mag: 4587520, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: false }); - data.append(FP16x16 { mag: 4390912, sign: true }); - data.append(FP16x16 { mag: 8257536, sign: true }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 851968, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 2621440, sign: true }); + data.append(FP16x16 { mag: 3145728, sign: false }); + data.append(FP16x16 { mag: 7798784, sign: true }); data.append(FP16x16 { mag: 2228224, sign: false }); - data.append(FP16x16 { mag: 8257536, sign: false }); - data.append(FP16x16 { mag: 4784128, sign: false }); - data.append(FP16x16 { mag: 3997696, sign: true }); - data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: true }); data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 5177344, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 5177344, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 6488064, sign: true }); + data.append(FP16x16 { mag: 6356992, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 720896, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 3801088, sign: false }); + data.append(FP16x16 { mag: 6946816, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: false }); data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); data.append(FP16x16 { mag: 1441792, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 3276800, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 6946816, sign: true }); - data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 655360, sign: false }); - data.append(FP16x16 { mag: 2818048, sign: false }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 1376256, sign: true }); - data.append(FP16x16 { mag: 6356992, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: false }); - data.append(FP16x16 { mag: 8126464, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); data.append(FP16x16 { mag: 1048576, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 2686976, sign: false }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 4653056, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); data.append(FP16x16 { mag: 7929856, sign: false }); + data.append(FP16x16 { mag: 3670016, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: false }); + data.append(FP16x16 { mag: 262144, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 5636096, sign: true }); data.append(FP16x16 { mag: 6422528, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: true }); - data.append(FP16x16 { mag: 720896, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 6750208, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: true }); - data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: false }); + data.append(FP16x16 { mag: 3473408, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: false }); data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 6094848, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: true }); - data.append(FP16x16 { mag: 5373952, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); + data.append(FP16x16 { mag: 3080192, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 1703936, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); data.append(FP16x16 { mag: 7536640, sign: true }); - data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 8060928, sign: true }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 6225920, sign: true }); + data.append(FP16x16 { mag: 7798784, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 1769472, sign: false }); data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: true }); data.append(FP16x16 { mag: 8126464, sign: false }); data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 7274496, sign: true }); + data.append(FP16x16 { mag: 458752, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: true }); + data.append(FP16x16 { mag: 655360, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 6619136, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 7208960, sign: false }); + data.append(FP16x16 { mag: 7929856, sign: true }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 2555904, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 4325376, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); data.append(FP16x16 { mag: 262144, sign: true }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: false }); - data.append(FP16x16 { mag: 1310720, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); data.append(FP16x16 { mag: 4653056, sign: false }); - data.append(FP16x16 { mag: 1114112, sign: true }); - data.append(FP16x16 { mag: 1966080, sign: true }); - data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 2686976, sign: false }); + data.append(FP16x16 { mag: 524288, sign: false }); + data.append(FP16x16 { mag: 2162688, sign: false }); data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 2883584, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: false }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: false }); + data.append(FP16x16 { mag: 2293760, sign: true }); + data.append(FP16x16 { mag: 6029312, sign: true }); data.append(FP16x16 { mag: 7143424, sign: false }); - data.append(FP16x16 { mag: 4456448, sign: true }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 2359296, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: true }); + data.append(FP16x16 { mag: 5308416, sign: false }); + data.append(FP16x16 { mag: 3538944, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); data.append(FP16x16 { mag: 7471104, sign: true }); - data.append(FP16x16 { mag: 4849664, sign: false }); - data.append(FP16x16 { mag: 6946816, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 6881280, sign: false }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1900544, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 655360, sign: false }); + data.append(FP16x16 { mag: 65536, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 2949120, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 5242880, sign: true }); + data.append(FP16x16 { mag: 2228224, sign: false }); + data.append(FP16x16 { mag: 7340032, sign: false }); + data.append(FP16x16 { mag: 5373952, sign: false }); data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 1310720, sign: false }); + data.append(FP16x16 { mag: 4390912, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); data.append(FP16x16 { mag: 2293760, sign: false }); - data.append(FP16x16 { mag: 6291456, sign: true }); - data.append(FP16x16 { mag: 6881280, sign: true }); - data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 3932160, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: true }); + data.append(FP16x16 { mag: 4128768, sign: true }); + data.append(FP16x16 { mag: 3276800, sign: false }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: true }); + data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 1507328, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: true }); data.append(FP16x16 { mag: 4718592, sign: false }); - data.append(FP16x16 { mag: 7077888, sign: false }); - data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 7274496, sign: true }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 3997696, sign: false }); - data.append(FP16x16 { mag: 8323072, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 1769472, sign: true }); - data.append(FP16x16 { mag: 458752, sign: true }); - data.append(FP16x16 { mag: 851968, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 6160384, sign: false }); data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 5963776, sign: true }); + data.append(FP16x16 { mag: 1835008, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: true }); + data.append(FP16x16 { mag: 4915200, sign: false }); + data.append(FP16x16 { mag: 7405568, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); + data.append(FP16x16 { mag: 6488064, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 393216, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 2490368, sign: true }); data.append(FP16x16 { mag: 6160384, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 7602176, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 3342336, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 7405568, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 4063232, sign: false }); + data.append(FP16x16 { mag: 5046272, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 6094848, sign: true }); + data.append(FP16x16 { mag: 3080192, sign: true }); + data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 4194304, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: true }); + data.append(FP16x16 { mag: 5898240, sign: false }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 983040, sign: false }); + data.append(FP16x16 { mag: 6684672, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 4259840, sign: false }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 7340032, sign: true }); + data.append(FP16x16 { mag: 3801088, sign: true }); + data.append(FP16x16 { mag: 5570560, sign: false }); data.append(FP16x16 { mag: 2752512, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 786432, sign: true }); - data.append(FP16x16 { mag: 917504, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 6553600, sign: false }); + data.append(FP16x16 { mag: 8126464, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); data.append(FP16x16 { mag: 7274496, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: true }); - data.append(FP16x16 { mag: 5308416, sign: true }); - data.append(FP16x16 { mag: 6553600, sign: true }); - data.append(FP16x16 { mag: 5505024, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); - data.append(FP16x16 { mag: 2686976, sign: true }); - data.append(FP16x16 { mag: 1114112, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: true }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: true }); - data.append(FP16x16 { mag: 5570560, sign: true }); - data.append(FP16x16 { mag: 2621440, sign: true }); - data.append(FP16x16 { mag: 3342336, sign: true }); - data.append(FP16x16 { mag: 4587520, sign: true }); - data.append(FP16x16 { mag: 8192000, sign: true }); - data.append(FP16x16 { mag: 3211264, sign: true }); - data.append(FP16x16 { mag: 1638400, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: true }); data.append(FP16x16 { mag: 2097152, sign: true }); - data.append(FP16x16 { mag: 1703936, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3735552, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: true }); - data.append(FP16x16 { mag: 6488064, sign: false }); - data.append(FP16x16 { mag: 4194304, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: true }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 3932160, sign: false }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 4915200, sign: true }); - data.append(FP16x16 { mag: 1835008, sign: false }); - data.append(FP16x16 { mag: 7012352, sign: true }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 5570560, sign: false }); data.append(FP16x16 { mag: 1441792, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: true }); - data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 2228224, sign: true }); - data.append(FP16x16 { mag: 5767168, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: true }); - data.append(FP16x16 { mag: 6619136, sign: true }); - data.append(FP16x16 { mag: 3866624, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: false }); - data.append(FP16x16 { mag: 2949120, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 3866624, sign: false }); - data.append(FP16x16 { mag: 2359296, sign: false }); - data.append(FP16x16 { mag: 1048576, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: true }); - data.append(FP16x16 { mag: 1310720, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 7208960, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 5832704, sign: true }); - data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 4980736, sign: true }); data.append(FP16x16 { mag: 7012352, sign: true }); - data.append(FP16x16 { mag: 1048576, sign: true }); + data.append(FP16x16 { mag: 3538944, sign: false }); + data.append(FP16x16 { mag: 589824, sign: true }); + data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 3211264, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: true }); + data.append(FP16x16 { mag: 3866624, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 5701632, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 6881280, sign: true }); + data.append(FP16x16 { mag: 2162688, sign: false }); + data.append(FP16x16 { mag: 4718592, sign: false }); + data.append(FP16x16 { mag: 6750208, sign: false }); data.append(FP16x16 { mag: 3276800, sign: true }); - data.append(FP16x16 { mag: 7929856, sign: false }); - data.append(FP16x16 { mag: 3801088, sign: false }); - data.append(FP16x16 { mag: 1900544, sign: false }); + data.append(FP16x16 { mag: 589824, sign: false }); + data.append(FP16x16 { mag: 7995392, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 2031616, sign: false }); + data.append(FP16x16 { mag: 1507328, sign: true }); + data.append(FP16x16 { mag: 6684672, sign: true }); + data.append(FP16x16 { mag: 7667712, sign: false }); data.append(FP16x16 { mag: 1179648, sign: true }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 5701632, sign: false }); - data.append(FP16x16 { mag: 2555904, sign: true }); + data.append(FP16x16 { mag: 2883584, sign: true }); + data.append(FP16x16 { mag: 5505024, sign: true }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 7995392, sign: true }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 5636096, sign: true }); + data.append(FP16x16 { mag: 4456448, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 7471104, sign: false }); + data.append(FP16x16 { mag: 1835008, sign: false }); + data.append(FP16x16 { mag: 1376256, sign: false }); + data.append(FP16x16 { mag: 4784128, sign: true }); + data.append(FP16x16 { mag: 5177344, sign: false }); + data.append(FP16x16 { mag: 786432, sign: false }); + data.append(FP16x16 { mag: 7012352, sign: false }); + data.append(FP16x16 { mag: 7274496, sign: false }); + data.append(FP16x16 { mag: 3604480, sign: false }); + data.append(FP16x16 { mag: 1441792, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 5439488, sign: false }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 3604480, sign: true }); + data.append(FP16x16 { mag: 327680, sign: true }); + data.append(FP16x16 { mag: 5439488, sign: true }); + data.append(FP16x16 { mag: 8257536, sign: true }); + data.append(FP16x16 { mag: 7012352, sign: true }); data.append(FP16x16 { mag: 3735552, sign: true }); - data.append(FP16x16 { mag: 5242880, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 5963776, sign: true }); - data.append(FP16x16 { mag: 7077888, sign: false }); + data.append(FP16x16 { mag: 8192000, sign: true }); + data.append(FP16x16 { mag: 5111808, sign: false }); + data.append(FP16x16 { mag: 786432, sign: true }); data.append(FP16x16 { mag: 3342336, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 1572864, sign: false }); - data.append(FP16x16 { mag: 5308416, sign: false }); - data.append(FP16x16 { mag: 3145728, sign: false }); - data.append(FP16x16 { mag: 4980736, sign: false }); - data.append(FP16x16 { mag: 6356992, sign: true }); - data.append(FP16x16 { mag: 2097152, sign: false }); - data.append(FP16x16 { mag: 2162688, sign: false }); - data.append(FP16x16 { mag: 7864320, sign: true }); - data.append(FP16x16 { mag: 7733248, sign: true }); - data.append(FP16x16 { mag: 3407872, sign: false }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 786432, sign: true }); + data.append(FP16x16 { mag: 4849664, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: true }); + data.append(FP16x16 { mag: 4718592, sign: false }); data.append(FP16x16 { mag: 3604480, sign: false }); - data.append(FP16x16 { mag: 4325376, sign: true }); - data.append(FP16x16 { mag: 4718592, sign: true }); - data.append(FP16x16 { mag: 393216, sign: false }); - data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 6422528, sign: false }); + data.append(FP16x16 { mag: 3407872, sign: true }); + data.append(FP16x16 { mag: 7536640, sign: true }); + data.append(FP16x16 { mag: 6815744, sign: false }); + data.append(FP16x16 { mag: 7602176, sign: true }); + data.append(FP16x16 { mag: 7733248, sign: false }); + data.append(FP16x16 { mag: 2752512, sign: true }); + data.append(FP16x16 { mag: 4259840, sign: true }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 5898240, sign: false }); data.append(FP16x16 { mag: 3670016, sign: false }); - data.append(FP16x16 { mag: 1638400, sign: true }); + data.append(FP16x16 { mag: 8192000, sign: false }); + data.append(FP16x16 { mag: 2228224, sign: true }); + data.append(FP16x16 { mag: 4980736, sign: false }); + data.append(FP16x16 { mag: 5767168, sign: true }); + data.append(FP16x16 { mag: 6422528, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: false }); + data.append(FP16x16 { mag: 3735552, sign: false }); + data.append(FP16x16 { mag: 6029312, sign: false }); + data.append(FP16x16 { mag: 6225920, sign: false }); + data.append(FP16x16 { mag: 851968, sign: false }); + data.append(FP16x16 { mag: 4915200, sign: true }); + data.append(FP16x16 { mag: 1179648, sign: true }); + data.append(FP16x16 { mag: 3014656, sign: false }); + data.append(FP16x16 { mag: 6815744, sign: true }); + data.append(FP16x16 { mag: 2818048, sign: false }); + data.append(FP16x16 { mag: 1638400, sign: false }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 983040, sign: true }); + data.append(FP16x16 { mag: 6750208, sign: true }); + data.append(FP16x16 { mag: 6160384, sign: false }); + data.append(FP16x16 { mag: 1966080, sign: false }); + data.append(FP16x16 { mag: 2097152, sign: true }); + data.append(FP16x16 { mag: 8126464, sign: false }); + data.append(FP16x16 { mag: 7143424, sign: true }); + data.append(FP16x16 { mag: 1114112, sign: true }); + data.append(FP16x16 { mag: 4587520, sign: false }); + data.append(FP16x16 { mag: 8323072, sign: true }); + data.append(FP16x16 { mag: 458752, sign: false }); + data.append(FP16x16 { mag: 1245184, sign: true }); + data.append(FP16x16 { mag: 2424832, sign: false }); + data.append(FP16x16 { mag: 2883584, sign: false }); + data.append(FP16x16 { mag: 851968, sign: true }); + data.append(FP16x16 { mag: 8060928, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp8x23_2d.cairo b/tests/nodes/unsqueeze_fp8x23_2d.cairo index d50bc71ef..1b2378ebc 100644 --- a/tests/nodes/unsqueeze_fp8x23_2d.cairo +++ b/tests/nodes/unsqueeze_fp8x23_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo b/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo index 61ee210c1..84725a16c 100644 --- a/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_2d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,13 +9,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo b/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo index a56588d88..62e088bba 100644 --- a/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_2d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,13 +12,13 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp8x23_3d.cairo b/tests/nodes/unsqueeze_fp8x23_3d.cairo index 722730ddc..7c0829d81 100644 --- a/tests/nodes/unsqueeze_fp8x23_3d.cairo +++ b/tests/nodes/unsqueeze_fp8x23_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo b/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo index e18c212c6..85b901a38 100644 --- a/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_3d/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,1005 +10,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: true }); data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: true }); data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: true }); data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: true }); data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: true }); data.append(FP8x23 { mag: 511705088, sign: true }); data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: true }); data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: true }); data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: false }); data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: true }); data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: true }); data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo b/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo index 215188c5e..9bc5cfe35 100644 --- a/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_fp8x23_3d/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -14,1005 +13,1005 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 813694976, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); data.append(FP8x23 { mag: 469762048, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 1023410176, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: true }); data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 813694976, sign: true }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 746586112, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 872415232, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: false }); data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 268435456, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 603979776, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 864026624, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 922746880, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 788529152, sign: false }); data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: false }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 142606336, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: false }); data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 763363328, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 570425344, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 553648128, sign: false }); data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 956301312, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 436207616, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); data.append(FP8x23 { mag: 226492416, sign: true }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: true }); - data.append(FP8x23 { mag: 620756992, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 1056964608, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: false }); data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); data.append(FP8x23 { mag: 822083584, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 931135488, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 226492416, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: true }); data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 998244352, sign: false }); data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 780140544, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: true }); data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: true }); data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 780140544, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: true }); - data.append(FP8x23 { mag: 419430400, sign: false }); - data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 679477248, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 864026624, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: true }); - data.append(FP8x23 { mag: 662700032, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 578813952, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: false }); data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: true }); - data.append(FP8x23 { mag: 612368384, sign: false }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: true }); data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 578813952, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: true }); - data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: true }); data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); data.append(FP8x23 { mag: 50331648, sign: true }); - data.append(FP8x23 { mag: 318767104, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 276824064, sign: true }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 109051904, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 662700032, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 461373440, sign: false }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 327155712, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: true }); data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 1023410176, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 981467136, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 494927872, sign: false }); - data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 352321536, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 411041792, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: true }); data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 411041792, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 528482304, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 234881024, sign: false }); - data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 511705088, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 494927872, sign: true }); data.append(FP8x23 { mag: 511705088, sign: true }); data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 83886080, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: true }); data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 570425344, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); data.append(FP8x23 { mag: 117440512, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: true }); - data.append(FP8x23 { mag: 327155712, sign: false }); - data.append(FP8x23 { mag: 209715200, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: true }); - data.append(FP8x23 { mag: 176160768, sign: true }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 503316480, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 637534208, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); data.append(FP8x23 { mag: 436207616, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: true }); data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 679477248, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); - data.append(FP8x23 { mag: 922746880, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 729808896, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 209715200, sign: false }); + data.append(FP8x23 { mag: 620756992, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); data.append(FP8x23 { mag: 285212672, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: false }); - data.append(FP8x23 { mag: 612368384, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: false }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 100663296, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 570425344, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 629145600, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 889192448, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); data.append(FP8x23 { mag: 947912704, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 461373440, sign: true }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 33554432, sign: true }); + data.append(FP8x23 { mag: 251658240, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 385875968, sign: true }); + data.append(FP8x23 { mag: 738197504, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); data.append(FP8x23 { mag: 696254464, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 520093696, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 134217728, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: true }); - data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 763363328, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 855638016, sign: false }); - data.append(FP8x23 { mag: 251658240, sign: false }); - data.append(FP8x23 { mag: 201326592, sign: false }); - data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: false }); - data.append(FP8x23 { mag: 109051904, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 67108864, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: true }); - data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 645922816, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 201326592, sign: true }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); data.append(FP8x23 { mag: 184549376, sign: false }); - data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); data.append(FP8x23 { mag: 1015021568, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: true }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: true }); data.append(FP8x23 { mag: 494927872, sign: false }); + data.append(FP8x23 { mag: 645922816, sign: true }); data.append(FP8x23 { mag: 369098752, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: false }); - data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: true }); - data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 452984832, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: true }); - data.append(FP8x23 { mag: 360710144, sign: false }); - data.append(FP8x23 { mag: 595591168, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 889192448, sign: true }); + data.append(FP8x23 { mag: 494927872, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 276824064, sign: true }); data.append(FP8x23 { mag: 738197504, sign: true }); - data.append(FP8x23 { mag: 939524096, sign: true }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 327155712, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 343932928, sign: false }); + data.append(FP8x23 { mag: 914358272, sign: true }); + data.append(FP8x23 { mag: 687865856, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 109051904, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 117440512, sign: false }); + data.append(FP8x23 { mag: 503316480, sign: false }); + data.append(FP8x23 { mag: 1015021568, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 50331648, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); + data.append(FP8x23 { mag: 385875968, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 83886080, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 729808896, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 352321536, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: true }); + data.append(FP8x23 { mag: 713031680, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 939524096, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 50331648, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 847249408, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 1023410176, sign: false }); + data.append(FP8x23 { mag: 880803840, sign: true }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 469762048, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: false }); data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 452984832, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 1048576000, sign: true }); - data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 738197504, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 167772160, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 142606336, sign: false }); + data.append(FP8x23 { mag: 159383552, sign: false }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 1015021568, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); + data.append(FP8x23 { mag: 1006632960, sign: false }); + data.append(FP8x23 { mag: 780140544, sign: true }); + data.append(FP8x23 { mag: 1048576000, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 553648128, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); + data.append(FP8x23 { mag: 201326592, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: false }); data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: true }); - data.append(FP8x23 { mag: 159383552, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: true }); + data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 335544320, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: true }); + data.append(FP8x23 { mag: 520093696, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: false }); + data.append(FP8x23 { mag: 234881024, sign: true }); + data.append(FP8x23 { mag: 603979776, sign: true }); + data.append(FP8x23 { mag: 268435456, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: true }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 92274688, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 486539264, sign: false }); + data.append(FP8x23 { mag: 603979776, sign: false }); + data.append(FP8x23 { mag: 318767104, sign: true }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 671088640, sign: false }); + data.append(FP8x23 { mag: 956301312, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: false }); + data.append(FP8x23 { mag: 654311424, sign: false }); + data.append(FP8x23 { mag: 469762048, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 75497472, sign: false }); data.append(FP8x23 { mag: 377487360, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 897581056, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); + data.append(FP8x23 { mag: 805306368, sign: true }); + data.append(FP8x23 { mag: 427819008, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 226492416, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 754974720, sign: false }); - data.append(FP8x23 { mag: 125829120, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 503316480, sign: true }); - data.append(FP8x23 { mag: 889192448, sign: false }); - data.append(FP8x23 { mag: 411041792, sign: true }); - data.append(FP8x23 { mag: 310378496, sign: false }); - data.append(FP8x23 { mag: 687865856, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: false }); + data.append(FP8x23 { mag: 562036736, sign: true }); data.append(FP8x23 { mag: 696254464, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); - data.append(FP8x23 { mag: 243269632, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 864026624, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: false }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 838860800, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: true }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: true }); data.append(FP8x23 { mag: 369098752, sign: false }); - data.append(FP8x23 { mag: 763363328, sign: true }); - data.append(FP8x23 { mag: 511705088, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 780140544, sign: true }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 905969664, sign: true }); data.append(FP8x23 { mag: 411041792, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 989855744, sign: true }); - data.append(FP8x23 { mag: 763363328, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); - data.append(FP8x23 { mag: 260046848, sign: true }); - data.append(FP8x23 { mag: 218103808, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 603979776, sign: false }); - data.append(FP8x23 { mag: 436207616, sign: false }); + data.append(FP8x23 { mag: 1031798784, sign: true }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 134217728, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: false }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 905969664, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 243269632, sign: true }); + data.append(FP8x23 { mag: 318767104, sign: false }); data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: true }); - data.append(FP8x23 { mag: 822083584, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 444596224, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: true }); + data.append(FP8x23 { mag: 578813952, sign: true }); + data.append(FP8x23 { mag: 830472192, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: true }); data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 754974720, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: true }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 679477248, sign: false }); + data.append(FP8x23 { mag: 536870912, sign: false }); + data.append(FP8x23 { mag: 192937984, sign: false }); + data.append(FP8x23 { mag: 595591168, sign: true }); + data.append(FP8x23 { mag: 285212672, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 746586112, sign: true }); data.append(FP8x23 { mag: 83886080, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 276824064, sign: false }); + data.append(FP8x23 { mag: 973078528, sign: false }); + data.append(FP8x23 { mag: 922746880, sign: true }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 452984832, sign: false }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 377487360, sign: true }); data.append(FP8x23 { mag: 956301312, sign: false }); - data.append(FP8x23 { mag: 671088640, sign: true }); - data.append(FP8x23 { mag: 67108864, sign: true }); + data.append(FP8x23 { mag: 796917760, sign: true }); + data.append(FP8x23 { mag: 444596224, sign: false }); data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 343932928, sign: false }); - data.append(FP8x23 { mag: 285212672, sign: true }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 587202560, sign: false }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 385875968, sign: false }); - data.append(FP8x23 { mag: 637534208, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 159383552, sign: false }); - data.append(FP8x23 { mag: 771751936, sign: true }); - data.append(FP8x23 { mag: 838860800, sign: true }); - data.append(FP8x23 { mag: 1040187392, sign: false }); - data.append(FP8x23 { mag: 75497472, sign: true }); data.append(FP8x23 { mag: 931135488, sign: true }); - data.append(FP8x23 { mag: 192937984, sign: true }); - data.append(FP8x23 { mag: 771751936, sign: false }); - data.append(FP8x23 { mag: 301989888, sign: true }); - data.append(FP8x23 { mag: 855638016, sign: true }); - data.append(FP8x23 { mag: 872415232, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: false }); - data.append(FP8x23 { mag: 947912704, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 209715200, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 218103808, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 570425344, sign: false }); + data.append(FP8x23 { mag: 704643072, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 268435456, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: true }); data.append(FP8x23 { mag: 75497472, sign: false }); - data.append(FP8x23 { mag: 427819008, sign: false }); - data.append(FP8x23 { mag: 536870912, sign: true }); - data.append(FP8x23 { mag: 830472192, sign: false }); - data.append(FP8x23 { mag: 167772160, sign: false }); + data.append(FP8x23 { mag: 687865856, sign: true }); + data.append(FP8x23 { mag: 100663296, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: true }); + data.append(FP8x23 { mag: 981467136, sign: true }); data.append(FP8x23 { mag: 327155712, sign: true }); - data.append(FP8x23 { mag: 260046848, sign: false }); - data.append(FP8x23 { mag: 788529152, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 914358272, sign: true }); - data.append(FP8x23 { mag: 998244352, sign: true }); - data.append(FP8x23 { mag: 645922816, sign: false }); - data.append(FP8x23 { mag: 629145600, sign: true }); data.append(FP8x23 { mag: 805306368, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: true }); - data.append(FP8x23 { mag: 335544320, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 478150656, sign: true }); - data.append(FP8x23 { mag: 444596224, sign: true }); - data.append(FP8x23 { mag: 964689920, sign: true }); - data.append(FP8x23 { mag: 528482304, sign: true }); - data.append(FP8x23 { mag: 587202560, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: true }); - data.append(FP8x23 { mag: 343932928, sign: true }); - data.append(FP8x23 { mag: 897581056, sign: false }); - data.append(FP8x23 { mag: 461373440, sign: true }); + data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 864026624, sign: false }); + data.append(FP8x23 { mag: 377487360, sign: true }); data.append(FP8x23 { mag: 1031798784, sign: true }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 184549376, sign: true }); - data.append(FP8x23 { mag: 83886080, sign: false }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 939524096, sign: false }); - data.append(FP8x23 { mag: 796917760, sign: false }); - data.append(FP8x23 { mag: 830472192, sign: true }); - data.append(FP8x23 { mag: 562036736, sign: true }); - data.append(FP8x23 { mag: 427819008, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 360710144, sign: true }); - data.append(FP8x23 { mag: 905969664, sign: false }); - data.append(FP8x23 { mag: 67108864, sign: true }); - data.append(FP8x23 { mag: 805306368, sign: true }); - data.append(FP8x23 { mag: 33554432, sign: true }); - data.append(FP8x23 { mag: 402653184, sign: false }); - data.append(FP8x23 { mag: 1006632960, sign: true }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 595591168, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: true }); - data.append(FP8x23 { mag: 1015021568, sign: true }); - data.append(FP8x23 { mag: 981467136, sign: false }); - data.append(FP8x23 { mag: 150994944, sign: true }); + data.append(FP8x23 { mag: 637534208, sign: false }); data.append(FP8x23 { mag: 109051904, sign: false }); - data.append(FP8x23 { mag: 905969664, sign: true }); - data.append(FP8x23 { mag: 58720256, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 805306368, sign: false }); + data.append(FP8x23 { mag: 427819008, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: true }); data.append(FP8x23 { mag: 1031798784, sign: false }); - data.append(FP8x23 { mag: 1065353216, sign: true }); - data.append(FP8x23 { mag: 293601280, sign: false }); - data.append(FP8x23 { mag: 310378496, sign: true }); - data.append(FP8x23 { mag: 478150656, sign: false }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 117440512, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 285212672, sign: false }); + data.append(FP8x23 { mag: 184549376, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 721420288, sign: false }); + data.append(FP8x23 { mag: 1040187392, sign: false }); + data.append(FP8x23 { mag: 855638016, sign: true }); + data.append(FP8x23 { mag: 771751936, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 436207616, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 209715200, sign: true }); + data.append(FP8x23 { mag: 419430400, sign: true }); + data.append(FP8x23 { mag: 176160768, sign: false }); + data.append(FP8x23 { mag: 301989888, sign: false }); + data.append(FP8x23 { mag: 822083584, sign: false }); + data.append(FP8x23 { mag: 872415232, sign: true }); + data.append(FP8x23 { mag: 629145600, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: true }); + data.append(FP8x23 { mag: 562036736, sign: true }); + data.append(FP8x23 { mag: 142606336, sign: true }); + data.append(FP8x23 { mag: 696254464, sign: false }); + data.append(FP8x23 { mag: 528482304, sign: true }); + data.append(FP8x23 { mag: 939524096, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 335544320, sign: true }); data.append(FP8x23 { mag: 335544320, sign: false }); - data.append(FP8x23 { mag: 486539264, sign: false }); - data.append(FP8x23 { mag: 704643072, sign: true }); - data.append(FP8x23 { mag: 276824064, sign: false }); - data.append(FP8x23 { mag: 746586112, sign: true }); + data.append(FP8x23 { mag: 914358272, sign: false }); + data.append(FP8x23 { mag: 931135488, sign: false }); + data.append(FP8x23 { mag: 947912704, sign: true }); + data.append(FP8x23 { mag: 964689920, sign: false }); + data.append(FP8x23 { mag: 486539264, sign: true }); + data.append(FP8x23 { mag: 1031798784, sign: true }); data.append(FP8x23 { mag: 796917760, sign: true }); - data.append(FP8x23 { mag: 721420288, sign: false }); - data.append(FP8x23 { mag: 218103808, sign: false }); - data.append(FP8x23 { mag: 394264576, sign: true }); - data.append(FP8x23 { mag: 352321536, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 553648128, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 1040187392, sign: true }); - data.append(FP8x23 { mag: 973078528, sign: false }); - data.append(FP8x23 { mag: 880803840, sign: true }); - data.append(FP8x23 { mag: 117440512, sign: true }); - data.append(FP8x23 { mag: 545259520, sign: false }); - data.append(FP8x23 { mag: 562036736, sign: false }); - data.append(FP8x23 { mag: 847249408, sign: false }); + data.append(FP8x23 { mag: 788529152, sign: false }); + data.append(FP8x23 { mag: 587202560, sign: false }); + data.append(FP8x23 { mag: 369098752, sign: false }); + data.append(FP8x23 { mag: 394264576, sign: false }); + data.append(FP8x23 { mag: 402653184, sign: true }); + data.append(FP8x23 { mag: 1065353216, sign: true }); + data.append(FP8x23 { mag: 75497472, sign: false }); + data.append(FP8x23 { mag: 310378496, sign: true }); + data.append(FP8x23 { mag: 754974720, sign: false }); + data.append(FP8x23 { mag: 134217728, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: false }); + data.append(FP8x23 { mag: 150994944, sign: false }); + data.append(FP8x23 { mag: 293601280, sign: true }); + data.append(FP8x23 { mag: 989855744, sign: false }); + data.append(FP8x23 { mag: 1056964608, sign: true }); + data.append(FP8x23 { mag: 813694976, sign: true }); + data.append(FP8x23 { mag: 360710144, sign: true }); + data.append(FP8x23 { mag: 612368384, sign: false }); + data.append(FP8x23 { mag: 679477248, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: true }); + data.append(FP8x23 { mag: 620756992, sign: false }); + data.append(FP8x23 { mag: 830472192, sign: true }); + data.append(FP8x23 { mag: 587202560, sign: true }); + data.append(FP8x23 { mag: 654311424, sign: true }); + data.append(FP8x23 { mag: 260046848, sign: true }); + data.append(FP8x23 { mag: 58720256, sign: false }); + data.append(FP8x23 { mag: 998244352, sign: true }); + data.append(FP8x23 { mag: 125829120, sign: true }); + data.append(FP8x23 { mag: 310378496, sign: false }); + data.append(FP8x23 { mag: 981467136, sign: false }); + data.append(FP8x23 { mag: 92274688, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i32_2d.cairo b/tests/nodes/unsqueeze_i32_2d.cairo index 683f751e0..3913a418a 100644 --- a/tests/nodes/unsqueeze_i32_2d.cairo +++ b/tests/nodes/unsqueeze_i32_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_i32_2d/input_0.cairo b/tests/nodes/unsqueeze_i32_2d/input_0.cairo index 5a1d3696c..fc1342c9c 100644 --- a/tests/nodes/unsqueeze_i32_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_i32_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 117, sign: true }); + data.append(-17); + data.append(-37); + data.append(-104); + data.append(-107); + data.append(-120); + data.append(-2); + data.append(-34); + data.append(41); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i32_2d/output_0.cairo b/tests/nodes/unsqueeze_i32_2d/output_0.cairo index b54d82bd3..b8cfa4788 100644 --- a/tests/nodes/unsqueeze_i32_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_i32_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,13 +11,13 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 117, sign: true }); + data.append(-17); + data.append(-37); + data.append(-104); + data.append(-107); + data.append(-120); + data.append(-2); + data.append(-34); + data.append(41); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i32_3d.cairo b/tests/nodes/unsqueeze_i32_3d.cairo index e6ea169d3..0956c3065 100644 --- a/tests/nodes/unsqueeze_i32_3d.cairo +++ b/tests/nodes/unsqueeze_i32_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{TensorTrait, Tensor}; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_i32_3d/input_0.cairo b/tests/nodes/unsqueeze_i32_3d/input_0.cairo index 060c22a3f..0b3073660 100644 --- a/tests/nodes/unsqueeze_i32_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_i32_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 99, sign: false }); + data.append(-44); + data.append(14); + data.append(-47); + data.append(-94); + data.append(109); + data.append(-117); + data.append(108); + data.append(-87); + data.append(-23); + data.append(-18); + data.append(83); + data.append(-120); + data.append(-27); + data.append(-107); + data.append(124); + data.append(58); + data.append(93); + data.append(60); + data.append(12); + data.append(-8); + data.append(-122); + data.append(-34); + data.append(-15); + data.append(32); + data.append(43); + data.append(85); + data.append(-104); + data.append(-25); + data.append(77); + data.append(-7); + data.append(27); + data.append(-36); + data.append(104); + data.append(109); + data.append(76); + data.append(15); + data.append(-111); + data.append(-68); + data.append(-35); + data.append(98); + data.append(18); + data.append(-101); + data.append(6); + data.append(51); + data.append(62); + data.append(14); + data.append(-78); + data.append(105); + data.append(100); + data.append(-86); + data.append(110); + data.append(92); + data.append(-12); + data.append(79); + data.append(68); + data.append(16); + data.append(-92); + data.append(-111); + data.append(-34); + data.append(-102); + data.append(-38); + data.append(-45); + data.append(-51); + data.append(-99); + data.append(-4); + data.append(-88); + data.append(-13); + data.append(-9); + data.append(58); + data.append(-106); + data.append(44); + data.append(10); + data.append(18); + data.append(-82); + data.append(-8); + data.append(-7); + data.append(-71); + data.append(113); + data.append(-92); + data.append(4); + data.append(-120); + data.append(-125); + data.append(104); + data.append(-77); + data.append(-108); + data.append(105); + data.append(-70); + data.append(-53); + data.append(28); + data.append(113); + data.append(18); + data.append(-55); + data.append(86); + data.append(78); + data.append(-5); + data.append(-117); + data.append(-74); + data.append(99); + data.append(80); + data.append(-58); + data.append(63); + data.append(103); + data.append(87); + data.append(-55); + data.append(53); + data.append(-127); + data.append(58); + data.append(106); + data.append(89); + data.append(16); + data.append(-1); + data.append(-108); + data.append(35); + data.append(-74); + data.append(69); + data.append(100); + data.append(38); + data.append(-119); + data.append(27); + data.append(68); + data.append(-82); + data.append(-39); + data.append(62); + data.append(15); + data.append(-104); + data.append(-7); + data.append(51); + data.append(64); + data.append(-20); + data.append(-69); + data.append(-30); + data.append(-109); + data.append(-65); + data.append(-12); + data.append(-60); + data.append(102); + data.append(80); + data.append(39); + data.append(81); + data.append(82); + data.append(-43); + data.append(-55); + data.append(-14); + data.append(81); + data.append(44); + data.append(-103); + data.append(75); + data.append(-3); + data.append(80); + data.append(-31); + data.append(86); + data.append(35); + data.append(83); + data.append(83); + data.append(-92); + data.append(21); + data.append(74); + data.append(-2); + data.append(52); + data.append(68); + data.append(96); + data.append(105); + data.append(41); + data.append(53); + data.append(-27); + data.append(65); + data.append(81); + data.append(64); + data.append(-19); + data.append(-87); + data.append(50); + data.append(118); + data.append(-45); + data.append(35); + data.append(3); + data.append(-21); + data.append(5); + data.append(-76); + data.append(-75); + data.append(-24); + data.append(28); + data.append(-25); + data.append(21); + data.append(-14); + data.append(91); + data.append(-44); + data.append(100); + data.append(45); + data.append(-56); + data.append(77); + data.append(-85); + data.append(33); + data.append(116); + data.append(-75); + data.append(125); + data.append(-36); + data.append(-119); + data.append(-5); + data.append(103); + data.append(62); + data.append(120); + data.append(-48); + data.append(19); + data.append(5); + data.append(-86); + data.append(103); + data.append(-41); + data.append(8); + data.append(-26); + data.append(15); + data.append(-36); + data.append(47); + data.append(61); + data.append(73); + data.append(40); + data.append(104); + data.append(0); + data.append(30); + data.append(-13); + data.append(-88); + data.append(31); + data.append(-88); + data.append(-68); + data.append(107); + data.append(36); + data.append(121); + data.append(99); + data.append(-126); + data.append(-74); + data.append(-99); + data.append(-18); + data.append(-103); + data.append(-51); + data.append(91); + data.append(92); + data.append(23); + data.append(97); + data.append(67); + data.append(37); + data.append(-50); + data.append(-61); + data.append(11); + data.append(-64); + data.append(0); + data.append(-15); + data.append(53); + data.append(54); + data.append(-127); + data.append(55); + data.append(14); + data.append(-13); + data.append(-84); + data.append(-14); + data.append(16); + data.append(87); + data.append(44); + data.append(-88); + data.append(-18); + data.append(-53); + data.append(-1); + data.append(-10); + data.append(-84); + data.append(81); + data.append(-46); + data.append(118); + data.append(61); + data.append(38); + data.append(92); + data.append(58); + data.append(118); + data.append(-36); + data.append(-110); + data.append(17); + data.append(116); + data.append(-72); + data.append(-36); + data.append(-111); + data.append(23); + data.append(105); + data.append(31); + data.append(30); + data.append(-31); + data.append(4); + data.append(123); + data.append(113); + data.append(95); + data.append(53); + data.append(38); + data.append(-80); + data.append(-26); + data.append(26); + data.append(88); + data.append(-118); + data.append(-56); + data.append(113); + data.append(-30); + data.append(11); + data.append(-81); + data.append(-36); + data.append(-80); + data.append(14); + data.append(-81); + data.append(-54); + data.append(71); + data.append(73); + data.append(-35); + data.append(-87); + data.append(-94); + data.append(49); + data.append(-87); + data.append(-93); + data.append(-124); + data.append(55); + data.append(-35); + data.append(-64); + data.append(13); + data.append(-124); + data.append(38); + data.append(105); + data.append(115); + data.append(107); + data.append(-61); + data.append(56); + data.append(99); + data.append(-114); + data.append(-123); + data.append(-37); + data.append(-40); + data.append(-90); + data.append(-102); + data.append(-42); + data.append(71); + data.append(-34); + data.append(83); + data.append(74); + data.append(-21); + data.append(40); + data.append(-119); + data.append(123); + data.append(78); + data.append(-26); + data.append(90); + data.append(-56); + data.append(89); + data.append(72); + data.append(114); + data.append(-91); + data.append(-19); + data.append(-25); + data.append(-93); + data.append(124); + data.append(-28); + data.append(58); + data.append(-40); + data.append(-19); + data.append(-58); + data.append(-19); + data.append(22); + data.append(47); + data.append(-68); + data.append(82); + data.append(33); + data.append(36); + data.append(-50); + data.append(-117); + data.append(18); + data.append(-54); + data.append(-28); + data.append(-73); + data.append(123); + data.append(-34); + data.append(122); + data.append(66); + data.append(-30); + data.append(-114); + data.append(0); + data.append(-57); + data.append(-48); + data.append(96); + data.append(-90); + data.append(125); + data.append(-86); + data.append(-9); + data.append(-30); + data.append(123); + data.append(-46); + data.append(18); + data.append(-36); + data.append(74); + data.append(-78); + data.append(38); + data.append(-22); + data.append(70); + data.append(109); + data.append(-21); + data.append(-77); + data.append(-50); + data.append(-57); + data.append(8); + data.append(86); + data.append(78); + data.append(121); + data.append(41); + data.append(-125); + data.append(-20); + data.append(18); + data.append(24); + data.append(-38); + data.append(-114); + data.append(-43); + data.append(-36); + data.append(11); + data.append(76); + data.append(-29); + data.append(52); + data.append(79); + data.append(-60); + data.append(-35); + data.append(-66); + data.append(-51); + data.append(-105); + data.append(62); + data.append(-79); + data.append(6); + data.append(-71); + data.append(-39); + data.append(-100); + data.append(-102); + data.append(-95); + data.append(-92); + data.append(126); + data.append(-8); + data.append(77); + data.append(112); + data.append(111); + data.append(42); + data.append(-35); + data.append(112); + data.append(82); + data.append(14); + data.append(-14); + data.append(-15); + data.append(-40); + data.append(-89); + data.append(83); + data.append(81); + data.append(-7); + data.append(93); + data.append(44); + data.append(-31); + data.append(25); + data.append(35); + data.append(8); + data.append(-52); + data.append(33); + data.append(75); + data.append(-93); + data.append(117); + data.append(-24); + data.append(111); + data.append(-30); + data.append(-113); + data.append(117); + data.append(-57); + data.append(-26); + data.append(-75); + data.append(-35); + data.append(-107); + data.append(9); + data.append(-40); + data.append(62); + data.append(-64); + data.append(107); + data.append(-56); + data.append(29); + data.append(-3); + data.append(-106); + data.append(117); + data.append(121); + data.append(46); + data.append(30); + data.append(9); + data.append(16); + data.append(-23); + data.append(78); + data.append(25); + data.append(67); + data.append(-66); + data.append(-82); + data.append(103); + data.append(120); + data.append(-16); + data.append(112); + data.append(-8); + data.append(123); + data.append(83); + data.append(107); + data.append(25); + data.append(70); + data.append(-83); + data.append(72); + data.append(-29); + data.append(-117); + data.append(8); + data.append(-53); + data.append(31); + data.append(114); + data.append(-115); + data.append(-90); + data.append(21); + data.append(26); + data.append(68); + data.append(45); + data.append(-70); + data.append(-123); + data.append(67); + data.append(-15); + data.append(-98); + data.append(9); + data.append(1); + data.append(5); + data.append(-8); + data.append(-105); + data.append(38); + data.append(-61); + data.append(124); + data.append(122); + data.append(-87); + data.append(17); + data.append(-75); + data.append(60); + data.append(109); + data.append(-61); + data.append(59); + data.append(59); + data.append(43); + data.append(21); + data.append(-104); + data.append(-76); + data.append(-122); + data.append(-96); + data.append(-93); + data.append(-69); + data.append(43); + data.append(67); + data.append(-61); + data.append(60); + data.append(29); + data.append(30); + data.append(46); + data.append(112); + data.append(62); + data.append(-115); + data.append(-87); + data.append(82); + data.append(102); + data.append(-38); + data.append(-25); + data.append(22); + data.append(19); + data.append(-50); + data.append(57); + data.append(-62); + data.append(53); + data.append(95); + data.append(38); + data.append(-98); + data.append(-66); + data.append(34); + data.append(125); + data.append(68); + data.append(72); + data.append(56); + data.append(-41); + data.append(-91); + data.append(98); + data.append(11); + data.append(-126); + data.append(-59); + data.append(-84); + data.append(-70); + data.append(-47); + data.append(21); + data.append(94); + data.append(-22); + data.append(-81); + data.append(35); + data.append(75); + data.append(-5); + data.append(4); + data.append(-92); + data.append(84); + data.append(19); + data.append(-75); + data.append(-40); + data.append(-42); + data.append(-39); + data.append(25); + data.append(-88); + data.append(-71); + data.append(53); + data.append(-72); + data.append(110); + data.append(89); + data.append(7); + data.append(94); + data.append(122); + data.append(-44); + data.append(-39); + data.append(94); + data.append(62); + data.append(107); + data.append(-52); + data.append(-95); + data.append(-57); + data.append(-30); + data.append(30); + data.append(-4); + data.append(-120); + data.append(47); + data.append(25); + data.append(-123); + data.append(39); + data.append(-28); + data.append(111); + data.append(89); + data.append(42); + data.append(89); + data.append(105); + data.append(-106); + data.append(-10); + data.append(-76); + data.append(-11); + data.append(13); + data.append(122); + data.append(111); + data.append(-80); + data.append(28); + data.append(124); + data.append(28); + data.append(-44); + data.append(55); + data.append(94); + data.append(-21); + data.append(-84); + data.append(-115); + data.append(19); + data.append(51); + data.append(54); + data.append(-75); + data.append(95); + data.append(-117); + data.append(-18); + data.append(-39); + data.append(10); + data.append(91); + data.append(-82); + data.append(-112); + data.append(125); + data.append(-3); + data.append(76); + data.append(-87); + data.append(6); + data.append(-28); + data.append(-102); + data.append(90); + data.append(7); + data.append(18); + data.append(-126); + data.append(-82); + data.append(54); + data.append(-37); + data.append(94); + data.append(106); + data.append(-23); + data.append(-44); + data.append(-103); + data.append(-101); + data.append(6); + data.append(-53); + data.append(57); + data.append(97); + data.append(107); + data.append(3); + data.append(119); + data.append(-90); + data.append(13); + data.append(-11); + data.append(-94); + data.append(-126); + data.append(-66); + data.append(94); + data.append(106); + data.append(63); + data.append(-22); + data.append(-94); + data.append(91); + data.append(-120); + data.append(12); + data.append(114); + data.append(13); + data.append(45); + data.append(-50); + data.append(115); + data.append(106); + data.append(124); + data.append(102); + data.append(70); + data.append(-107); + data.append(-86); + data.append(115); + data.append(5); + data.append(-13); + data.append(-46); + data.append(102); + data.append(72); + data.append(21); + data.append(26); + data.append(42); + data.append(6); + data.append(-45); + data.append(109); + data.append(47); + data.append(-7); + data.append(94); + data.append(52); + data.append(-35); + data.append(62); + data.append(-99); + data.append(-78); + data.append(104); + data.append(99); + data.append(-97); + data.append(-86); + data.append(50); + data.append(126); + data.append(13); + data.append(83); + data.append(-100); + data.append(117); + data.append(-60); + data.append(40); + data.append(-44); + data.append(-123); + data.append(-50); + data.append(-15); + data.append(-18); + data.append(45); + data.append(-94); + data.append(58); + data.append(79); + data.append(-16); + data.append(-78); + data.append(89); + data.append(110); + data.append(48); + data.append(-101); + data.append(126); + data.append(22); + data.append(-90); + data.append(-68); + data.append(-23); + data.append(-112); + data.append(-90); + data.append(-58); + data.append(-116); + data.append(31); + data.append(3); + data.append(-69); + data.append(-30); + data.append(-84); + data.append(-115); + data.append(75); + data.append(56); + data.append(-23); + data.append(118); + data.append(75); + data.append(-117); + data.append(124); + data.append(14); + data.append(-69); + data.append(-114); + data.append(59); + data.append(9); + data.append(84); + data.append(66); + data.append(80); + data.append(-124); + data.append(-49); + data.append(100); + data.append(101); + data.append(18); + data.append(-114); + data.append(-109); + data.append(-87); + data.append(52); + data.append(-41); + data.append(94); + data.append(122); + data.append(-60); + data.append(21); + data.append(-49); + data.append(55); + data.append(60); + data.append(-28); + data.append(27); + data.append(-113); + data.append(65); + data.append(120); + data.append(-68); + data.append(31); + data.append(-18); + data.append(48); + data.append(91); + data.append(7); + data.append(25); + data.append(57); + data.append(-72); + data.append(106); + data.append(42); + data.append(-20); + data.append(26); + data.append(105); + data.append(-43); + data.append(53); + data.append(-65); + data.append(-7); + data.append(-74); + data.append(68); + data.append(10); + data.append(14); + data.append(28); + data.append(33); + data.append(76); + data.append(-74); + data.append(80); + data.append(52); + data.append(-20); + data.append(-69); + data.append(88); + data.append(126); + data.append(-69); + data.append(-93); + data.append(-59); + data.append(-24); + data.append(-61); + data.append(56); + data.append(-97); + data.append(-39); + data.append(47); + data.append(39); + data.append(2); + data.append(-1); + data.append(-16); + data.append(-76); + data.append(-70); + data.append(-65); + data.append(8); + data.append(-94); + data.append(115); + data.append(79); + data.append(4); + data.append(-45); + data.append(-31); + data.append(-7); + data.append(-40); + data.append(-43); + data.append(-108); + data.append(29); + data.append(25); + data.append(-18); + data.append(112); + data.append(47); + data.append(-6); + data.append(73); + data.append(58); + data.append(74); + data.append(-120); + data.append(102); + data.append(60); + data.append(-22); + data.append(-33); + data.append(106); + data.append(-114); + data.append(-110); + data.append(44); + data.append(-64); + data.append(112); + data.append(-15); + data.append(43); + data.append(81); + data.append(-15); + data.append(62); + data.append(70); + data.append(-68); + data.append(-117); + data.append(102); + data.append(122); + data.append(117); + data.append(-38); + data.append(39); + data.append(-127); + data.append(85); + data.append(16); + data.append(-23); + data.append(20); + data.append(13); + data.append(-79); + data.append(-43); + data.append(-97); + data.append(-42); + data.append(86); + data.append(-6); + data.append(-5); + data.append(67); + data.append(-85); + data.append(-72); + data.append(-1); + data.append(14); + data.append(-35); + data.append(-24); + data.append(-5); + data.append(-12); + data.append(30); + data.append(73); + data.append(101); + data.append(114); + data.append(-75); + data.append(74); + data.append(-24); + data.append(78); + data.append(79); + data.append(-61); + data.append(-76); + data.append(-42); + data.append(-33); + data.append(55); + data.append(0); + data.append(125); + data.append(47); + data.append(-20); + data.append(-51); + data.append(-116); + data.append(-7); + data.append(19); + data.append(116); + data.append(-96); + data.append(82); + data.append(72); + data.append(82); + data.append(54); + data.append(-26); + data.append(-73); + data.append(-63); + data.append(-70); + data.append(-46); + data.append(45); + data.append(-3); + data.append(67); + data.append(-90); + data.append(90); + data.append(-78); + data.append(-38); + data.append(-127); + data.append(62); + data.append(-71); + data.append(-68); + data.append(-127); + data.append(118); + data.append(-111); + data.append(95); + data.append(-19); + data.append(84); + data.append(87); + data.append(-15); + data.append(55); + data.append(-42); + data.append(93); + data.append(-109); + data.append(10); + data.append(57); + data.append(-28); + data.append(70); + data.append(61); + data.append(-15); + data.append(75); + data.append(-117); + data.append(3); + data.append(99); + data.append(21); + data.append(-56); + data.append(121); + data.append(-114); + data.append(108); + data.append(-44); + data.append(-4); + data.append(54); + data.append(21); + data.append(78); + data.append(93); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i32_3d/output_0.cairo b/tests/nodes/unsqueeze_i32_3d/output_0.cairo index 7e20adccf..9f10db9c0 100644 --- a/tests/nodes/unsqueeze_i32_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_i32_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,1005 +12,1005 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 63, sign: true }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 87, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 107, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 62, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 65, sign: false }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 38, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 78, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 89, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 59, sign: true }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 51, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 39, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 58, sign: true }); - data.append(i32 { mag: 123, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 76, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 121, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 62, sign: false }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 53, sign: false }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 73, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 63, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 67, sign: true }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 22, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 31, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 20, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 125, sign: true }); - data.append(i32 { mag: 47, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 84, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 114, sign: true }); - data.append(i32 { mag: 106, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 48, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 86, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 92, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 75, sign: true }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 91, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 13, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 110, sign: false }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 61, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 80, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 42, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 11, sign: false }); - data.append(i32 { mag: 110, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 103, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 9, sign: true }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 47, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 26, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 14, sign: false }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 7, sign: true }); - data.append(i32 { mag: 127, sign: true }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 60, sign: false }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 67, sign: false }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 117, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 9, sign: false }); - data.append(i32 { mag: 66, sign: true }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 16, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 102, sign: false }); - data.append(i32 { mag: 87, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 101, sign: true }); - data.append(i32 { mag: 70, sign: false }); - data.append(i32 { mag: 124, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 7, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 24, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 92, sign: true }); - data.append(i32 { mag: 46, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 97, sign: false }); - data.append(i32 { mag: 46, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 119, sign: false }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 93, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 51, sign: true }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 75, sign: false }); - data.append(i32 { mag: 112, sign: false }); - data.append(i32 { mag: 81, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 106, sign: false }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 116, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 100, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 99, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 121, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 49, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 17, sign: false }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 91, sign: false }); - data.append(i32 { mag: 96, sign: true }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 78, sign: false }); - data.append(i32 { mag: 41, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 49, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 15, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 23, sign: true }); - data.append(i32 { mag: 104, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 116, sign: false }); - data.append(i32 { mag: 48, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 125, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 45, sign: false }); - data.append(i32 { mag: 44, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 71, sign: true }); - data.append(i32 { mag: 10, sign: true }); - data.append(i32 { mag: 14, sign: true }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 68, sign: true }); - data.append(i32 { mag: 81, sign: false }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 66, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 68, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 33, sign: true }); - data.append(i32 { mag: 45, sign: true }); - data.append(i32 { mag: 56, sign: true }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 94, sign: false }); - data.append(i32 { mag: 6, sign: true }); - data.append(i32 { mag: 96, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 108, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 123, sign: false }); - data.append(i32 { mag: 37, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 118, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 52, sign: true }); - data.append(i32 { mag: 74, sign: true }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 50, sign: false }); - data.append(i32 { mag: 27, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 30, sign: true }); - data.append(i32 { mag: 109, sign: true }); - data.append(i32 { mag: 86, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 88, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 119, sign: true }); - data.append(i32 { mag: 59, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 101, sign: false }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 25, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 39, sign: false }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 40, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 98, sign: true }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 82, sign: false }); - data.append(i32 { mag: 36, sign: false }); - data.append(i32 { mag: 34, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 79, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 28, sign: true }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 41, sign: true }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 18, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 35, sign: true }); - data.append(i32 { mag: 52, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 85, sign: true }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 50, sign: true }); - data.append(i32 { mag: 37, sign: false }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 42, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 113, sign: false }); - data.append(i32 { mag: 8, sign: true }); - data.append(i32 { mag: 12, sign: true }); - data.append(i32 { mag: 21, sign: false }); - data.append(i32 { mag: 114, sign: false }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 126, sign: false }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 69, sign: true }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 10, sign: false }); - data.append(i32 { mag: 21, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 74, sign: false }); - data.append(i32 { mag: 77, sign: false }); - data.append(i32 { mag: 27, sign: false }); - data.append(i32 { mag: 88, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 33, sign: false }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 107, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 8, sign: false }); - data.append(i32 { mag: 98, sign: false }); - data.append(i32 { mag: 35, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 23, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 93, sign: true }); - data.append(i32 { mag: 113, sign: true }); - data.append(i32 { mag: 105, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 22, sign: false }); - data.append(i32 { mag: 60, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 111, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 34, sign: true }); - data.append(i32 { mag: 61, sign: true }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 6, sign: false }); - data.append(i32 { mag: 105, sign: true }); - data.append(i32 { mag: 69, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 18, sign: true }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 94, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 43, sign: false }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 122, sign: false }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 64, sign: false }); - data.append(i32 { mag: 17, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 84, sign: false }); - data.append(i32 { mag: 57, sign: true }); - data.append(i32 { mag: 109, sign: false }); - data.append(i32 { mag: 102, sign: true }); - data.append(i32 { mag: 26, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 64, sign: true }); - data.append(i32 { mag: 115, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 58, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 90, sign: true }); - data.append(i32 { mag: 103, sign: true }); - data.append(i32 { mag: 71, sign: false }); - data.append(i32 { mag: 53, sign: true }); - data.append(i32 { mag: 40, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 80, sign: false }); - data.append(i32 { mag: 44, sign: true }); - data.append(i32 { mag: 5, sign: true }); - data.append(i32 { mag: 104, sign: true }); - data.append(i32 { mag: 95, sign: false }); - data.append(i32 { mag: 100, sign: true }); - data.append(i32 { mag: 29, sign: true }); - data.append(i32 { mag: 73, sign: true }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 4, sign: true }); - data.append(i32 { mag: 16, sign: false }); - data.append(i32 { mag: 70, sign: true }); - data.append(i32 { mag: 57, sign: false }); - data.append(i32 { mag: 77, sign: true }); - data.append(i32 { mag: 32, sign: true }); - data.append(i32 { mag: 56, sign: false }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 11, sign: true }); - data.append(i32 { mag: 30, sign: false }); - data.append(i32 { mag: 72, sign: true }); - data.append(i32 { mag: 29, sign: false }); - data.append(i32 { mag: 115, sign: true }); - data.append(i32 { mag: 12, sign: false }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 54, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 112, sign: true }); - data.append(i32 { mag: 55, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 83, sign: true }); - data.append(i32 { mag: 32, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 97, sign: true }); - data.append(i32 { mag: 15, sign: true }); - data.append(i32 { mag: 24, sign: true }); - data.append(i32 { mag: 43, sign: true }); - data.append(i32 { mag: 65, sign: true }); - data.append(i32 { mag: 83, sign: false }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 38, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 28, sign: false }); - data.append(i32 { mag: 54, sign: true }); - data.append(i32 { mag: 25, sign: false }); - data.append(i32 { mag: 31, sign: false }); - data.append(i32 { mag: 118, sign: false }); - data.append(i32 { mag: 82, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 89, sign: false }); - data.append(i32 { mag: 122, sign: true }); - data.append(i32 { mag: 126, sign: true }); - data.append(i32 { mag: 117, sign: false }); - data.append(i32 { mag: 36, sign: true }); - data.append(i32 { mag: 19, sign: true }); - data.append(i32 { mag: 124, sign: false }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 55, sign: true }); - data.append(i32 { mag: 76, sign: true }); - data.append(i32 { mag: 72, sign: false }); - data.append(i32 { mag: 95, sign: true }); - data.append(i32 { mag: 19, sign: false }); - data.append(i32 { mag: 20, sign: true }); - data.append(i32 { mag: 13, sign: false }); - data.append(i32 { mag: 120, sign: false }); - data.append(i32 { mag: 108, sign: true }); - data.append(i32 { mag: 111, sign: false }); - data.append(i32 { mag: 120, sign: true }); - data.append(i32 { mag: 99, sign: false }); + data.append(-44); + data.append(14); + data.append(-47); + data.append(-94); + data.append(109); + data.append(-117); + data.append(108); + data.append(-87); + data.append(-23); + data.append(-18); + data.append(83); + data.append(-120); + data.append(-27); + data.append(-107); + data.append(124); + data.append(58); + data.append(93); + data.append(60); + data.append(12); + data.append(-8); + data.append(-122); + data.append(-34); + data.append(-15); + data.append(32); + data.append(43); + data.append(85); + data.append(-104); + data.append(-25); + data.append(77); + data.append(-7); + data.append(27); + data.append(-36); + data.append(104); + data.append(109); + data.append(76); + data.append(15); + data.append(-111); + data.append(-68); + data.append(-35); + data.append(98); + data.append(18); + data.append(-101); + data.append(6); + data.append(51); + data.append(62); + data.append(14); + data.append(-78); + data.append(105); + data.append(100); + data.append(-86); + data.append(110); + data.append(92); + data.append(-12); + data.append(79); + data.append(68); + data.append(16); + data.append(-92); + data.append(-111); + data.append(-34); + data.append(-102); + data.append(-38); + data.append(-45); + data.append(-51); + data.append(-99); + data.append(-4); + data.append(-88); + data.append(-13); + data.append(-9); + data.append(58); + data.append(-106); + data.append(44); + data.append(10); + data.append(18); + data.append(-82); + data.append(-8); + data.append(-7); + data.append(-71); + data.append(113); + data.append(-92); + data.append(4); + data.append(-120); + data.append(-125); + data.append(104); + data.append(-77); + data.append(-108); + data.append(105); + data.append(-70); + data.append(-53); + data.append(28); + data.append(113); + data.append(18); + data.append(-55); + data.append(86); + data.append(78); + data.append(-5); + data.append(-117); + data.append(-74); + data.append(99); + data.append(80); + data.append(-58); + data.append(63); + data.append(103); + data.append(87); + data.append(-55); + data.append(53); + data.append(-127); + data.append(58); + data.append(106); + data.append(89); + data.append(16); + data.append(-1); + data.append(-108); + data.append(35); + data.append(-74); + data.append(69); + data.append(100); + data.append(38); + data.append(-119); + data.append(27); + data.append(68); + data.append(-82); + data.append(-39); + data.append(62); + data.append(15); + data.append(-104); + data.append(-7); + data.append(51); + data.append(64); + data.append(-20); + data.append(-69); + data.append(-30); + data.append(-109); + data.append(-65); + data.append(-12); + data.append(-60); + data.append(102); + data.append(80); + data.append(39); + data.append(81); + data.append(82); + data.append(-43); + data.append(-55); + data.append(-14); + data.append(81); + data.append(44); + data.append(-103); + data.append(75); + data.append(-3); + data.append(80); + data.append(-31); + data.append(86); + data.append(35); + data.append(83); + data.append(83); + data.append(-92); + data.append(21); + data.append(74); + data.append(-2); + data.append(52); + data.append(68); + data.append(96); + data.append(105); + data.append(41); + data.append(53); + data.append(-27); + data.append(65); + data.append(81); + data.append(64); + data.append(-19); + data.append(-87); + data.append(50); + data.append(118); + data.append(-45); + data.append(35); + data.append(3); + data.append(-21); + data.append(5); + data.append(-76); + data.append(-75); + data.append(-24); + data.append(28); + data.append(-25); + data.append(21); + data.append(-14); + data.append(91); + data.append(-44); + data.append(100); + data.append(45); + data.append(-56); + data.append(77); + data.append(-85); + data.append(33); + data.append(116); + data.append(-75); + data.append(125); + data.append(-36); + data.append(-119); + data.append(-5); + data.append(103); + data.append(62); + data.append(120); + data.append(-48); + data.append(19); + data.append(5); + data.append(-86); + data.append(103); + data.append(-41); + data.append(8); + data.append(-26); + data.append(15); + data.append(-36); + data.append(47); + data.append(61); + data.append(73); + data.append(40); + data.append(104); + data.append(0); + data.append(30); + data.append(-13); + data.append(-88); + data.append(31); + data.append(-88); + data.append(-68); + data.append(107); + data.append(36); + data.append(121); + data.append(99); + data.append(-126); + data.append(-74); + data.append(-99); + data.append(-18); + data.append(-103); + data.append(-51); + data.append(91); + data.append(92); + data.append(23); + data.append(97); + data.append(67); + data.append(37); + data.append(-50); + data.append(-61); + data.append(11); + data.append(-64); + data.append(0); + data.append(-15); + data.append(53); + data.append(54); + data.append(-127); + data.append(55); + data.append(14); + data.append(-13); + data.append(-84); + data.append(-14); + data.append(16); + data.append(87); + data.append(44); + data.append(-88); + data.append(-18); + data.append(-53); + data.append(-1); + data.append(-10); + data.append(-84); + data.append(81); + data.append(-46); + data.append(118); + data.append(61); + data.append(38); + data.append(92); + data.append(58); + data.append(118); + data.append(-36); + data.append(-110); + data.append(17); + data.append(116); + data.append(-72); + data.append(-36); + data.append(-111); + data.append(23); + data.append(105); + data.append(31); + data.append(30); + data.append(-31); + data.append(4); + data.append(123); + data.append(113); + data.append(95); + data.append(53); + data.append(38); + data.append(-80); + data.append(-26); + data.append(26); + data.append(88); + data.append(-118); + data.append(-56); + data.append(113); + data.append(-30); + data.append(11); + data.append(-81); + data.append(-36); + data.append(-80); + data.append(14); + data.append(-81); + data.append(-54); + data.append(71); + data.append(73); + data.append(-35); + data.append(-87); + data.append(-94); + data.append(49); + data.append(-87); + data.append(-93); + data.append(-124); + data.append(55); + data.append(-35); + data.append(-64); + data.append(13); + data.append(-124); + data.append(38); + data.append(105); + data.append(115); + data.append(107); + data.append(-61); + data.append(56); + data.append(99); + data.append(-114); + data.append(-123); + data.append(-37); + data.append(-40); + data.append(-90); + data.append(-102); + data.append(-42); + data.append(71); + data.append(-34); + data.append(83); + data.append(74); + data.append(-21); + data.append(40); + data.append(-119); + data.append(123); + data.append(78); + data.append(-26); + data.append(90); + data.append(-56); + data.append(89); + data.append(72); + data.append(114); + data.append(-91); + data.append(-19); + data.append(-25); + data.append(-93); + data.append(124); + data.append(-28); + data.append(58); + data.append(-40); + data.append(-19); + data.append(-58); + data.append(-19); + data.append(22); + data.append(47); + data.append(-68); + data.append(82); + data.append(33); + data.append(36); + data.append(-50); + data.append(-117); + data.append(18); + data.append(-54); + data.append(-28); + data.append(-73); + data.append(123); + data.append(-34); + data.append(122); + data.append(66); + data.append(-30); + data.append(-114); + data.append(0); + data.append(-57); + data.append(-48); + data.append(96); + data.append(-90); + data.append(125); + data.append(-86); + data.append(-9); + data.append(-30); + data.append(123); + data.append(-46); + data.append(18); + data.append(-36); + data.append(74); + data.append(-78); + data.append(38); + data.append(-22); + data.append(70); + data.append(109); + data.append(-21); + data.append(-77); + data.append(-50); + data.append(-57); + data.append(8); + data.append(86); + data.append(78); + data.append(121); + data.append(41); + data.append(-125); + data.append(-20); + data.append(18); + data.append(24); + data.append(-38); + data.append(-114); + data.append(-43); + data.append(-36); + data.append(11); + data.append(76); + data.append(-29); + data.append(52); + data.append(79); + data.append(-60); + data.append(-35); + data.append(-66); + data.append(-51); + data.append(-105); + data.append(62); + data.append(-79); + data.append(6); + data.append(-71); + data.append(-39); + data.append(-100); + data.append(-102); + data.append(-95); + data.append(-92); + data.append(126); + data.append(-8); + data.append(77); + data.append(112); + data.append(111); + data.append(42); + data.append(-35); + data.append(112); + data.append(82); + data.append(14); + data.append(-14); + data.append(-15); + data.append(-40); + data.append(-89); + data.append(83); + data.append(81); + data.append(-7); + data.append(93); + data.append(44); + data.append(-31); + data.append(25); + data.append(35); + data.append(8); + data.append(-52); + data.append(33); + data.append(75); + data.append(-93); + data.append(117); + data.append(-24); + data.append(111); + data.append(-30); + data.append(-113); + data.append(117); + data.append(-57); + data.append(-26); + data.append(-75); + data.append(-35); + data.append(-107); + data.append(9); + data.append(-40); + data.append(62); + data.append(-64); + data.append(107); + data.append(-56); + data.append(29); + data.append(-3); + data.append(-106); + data.append(117); + data.append(121); + data.append(46); + data.append(30); + data.append(9); + data.append(16); + data.append(-23); + data.append(78); + data.append(25); + data.append(67); + data.append(-66); + data.append(-82); + data.append(103); + data.append(120); + data.append(-16); + data.append(112); + data.append(-8); + data.append(123); + data.append(83); + data.append(107); + data.append(25); + data.append(70); + data.append(-83); + data.append(72); + data.append(-29); + data.append(-117); + data.append(8); + data.append(-53); + data.append(31); + data.append(114); + data.append(-115); + data.append(-90); + data.append(21); + data.append(26); + data.append(68); + data.append(45); + data.append(-70); + data.append(-123); + data.append(67); + data.append(-15); + data.append(-98); + data.append(9); + data.append(1); + data.append(5); + data.append(-8); + data.append(-105); + data.append(38); + data.append(-61); + data.append(124); + data.append(122); + data.append(-87); + data.append(17); + data.append(-75); + data.append(60); + data.append(109); + data.append(-61); + data.append(59); + data.append(59); + data.append(43); + data.append(21); + data.append(-104); + data.append(-76); + data.append(-122); + data.append(-96); + data.append(-93); + data.append(-69); + data.append(43); + data.append(67); + data.append(-61); + data.append(60); + data.append(29); + data.append(30); + data.append(46); + data.append(112); + data.append(62); + data.append(-115); + data.append(-87); + data.append(82); + data.append(102); + data.append(-38); + data.append(-25); + data.append(22); + data.append(19); + data.append(-50); + data.append(57); + data.append(-62); + data.append(53); + data.append(95); + data.append(38); + data.append(-98); + data.append(-66); + data.append(34); + data.append(125); + data.append(68); + data.append(72); + data.append(56); + data.append(-41); + data.append(-91); + data.append(98); + data.append(11); + data.append(-126); + data.append(-59); + data.append(-84); + data.append(-70); + data.append(-47); + data.append(21); + data.append(94); + data.append(-22); + data.append(-81); + data.append(35); + data.append(75); + data.append(-5); + data.append(4); + data.append(-92); + data.append(84); + data.append(19); + data.append(-75); + data.append(-40); + data.append(-42); + data.append(-39); + data.append(25); + data.append(-88); + data.append(-71); + data.append(53); + data.append(-72); + data.append(110); + data.append(89); + data.append(7); + data.append(94); + data.append(122); + data.append(-44); + data.append(-39); + data.append(94); + data.append(62); + data.append(107); + data.append(-52); + data.append(-95); + data.append(-57); + data.append(-30); + data.append(30); + data.append(-4); + data.append(-120); + data.append(47); + data.append(25); + data.append(-123); + data.append(39); + data.append(-28); + data.append(111); + data.append(89); + data.append(42); + data.append(89); + data.append(105); + data.append(-106); + data.append(-10); + data.append(-76); + data.append(-11); + data.append(13); + data.append(122); + data.append(111); + data.append(-80); + data.append(28); + data.append(124); + data.append(28); + data.append(-44); + data.append(55); + data.append(94); + data.append(-21); + data.append(-84); + data.append(-115); + data.append(19); + data.append(51); + data.append(54); + data.append(-75); + data.append(95); + data.append(-117); + data.append(-18); + data.append(-39); + data.append(10); + data.append(91); + data.append(-82); + data.append(-112); + data.append(125); + data.append(-3); + data.append(76); + data.append(-87); + data.append(6); + data.append(-28); + data.append(-102); + data.append(90); + data.append(7); + data.append(18); + data.append(-126); + data.append(-82); + data.append(54); + data.append(-37); + data.append(94); + data.append(106); + data.append(-23); + data.append(-44); + data.append(-103); + data.append(-101); + data.append(6); + data.append(-53); + data.append(57); + data.append(97); + data.append(107); + data.append(3); + data.append(119); + data.append(-90); + data.append(13); + data.append(-11); + data.append(-94); + data.append(-126); + data.append(-66); + data.append(94); + data.append(106); + data.append(63); + data.append(-22); + data.append(-94); + data.append(91); + data.append(-120); + data.append(12); + data.append(114); + data.append(13); + data.append(45); + data.append(-50); + data.append(115); + data.append(106); + data.append(124); + data.append(102); + data.append(70); + data.append(-107); + data.append(-86); + data.append(115); + data.append(5); + data.append(-13); + data.append(-46); + data.append(102); + data.append(72); + data.append(21); + data.append(26); + data.append(42); + data.append(6); + data.append(-45); + data.append(109); + data.append(47); + data.append(-7); + data.append(94); + data.append(52); + data.append(-35); + data.append(62); + data.append(-99); + data.append(-78); + data.append(104); + data.append(99); + data.append(-97); + data.append(-86); + data.append(50); + data.append(126); + data.append(13); + data.append(83); + data.append(-100); + data.append(117); + data.append(-60); + data.append(40); + data.append(-44); + data.append(-123); + data.append(-50); + data.append(-15); + data.append(-18); + data.append(45); + data.append(-94); + data.append(58); + data.append(79); + data.append(-16); + data.append(-78); + data.append(89); + data.append(110); + data.append(48); + data.append(-101); + data.append(126); + data.append(22); + data.append(-90); + data.append(-68); + data.append(-23); + data.append(-112); + data.append(-90); + data.append(-58); + data.append(-116); + data.append(31); + data.append(3); + data.append(-69); + data.append(-30); + data.append(-84); + data.append(-115); + data.append(75); + data.append(56); + data.append(-23); + data.append(118); + data.append(75); + data.append(-117); + data.append(124); + data.append(14); + data.append(-69); + data.append(-114); + data.append(59); + data.append(9); + data.append(84); + data.append(66); + data.append(80); + data.append(-124); + data.append(-49); + data.append(100); + data.append(101); + data.append(18); + data.append(-114); + data.append(-109); + data.append(-87); + data.append(52); + data.append(-41); + data.append(94); + data.append(122); + data.append(-60); + data.append(21); + data.append(-49); + data.append(55); + data.append(60); + data.append(-28); + data.append(27); + data.append(-113); + data.append(65); + data.append(120); + data.append(-68); + data.append(31); + data.append(-18); + data.append(48); + data.append(91); + data.append(7); + data.append(25); + data.append(57); + data.append(-72); + data.append(106); + data.append(42); + data.append(-20); + data.append(26); + data.append(105); + data.append(-43); + data.append(53); + data.append(-65); + data.append(-7); + data.append(-74); + data.append(68); + data.append(10); + data.append(14); + data.append(28); + data.append(33); + data.append(76); + data.append(-74); + data.append(80); + data.append(52); + data.append(-20); + data.append(-69); + data.append(88); + data.append(126); + data.append(-69); + data.append(-93); + data.append(-59); + data.append(-24); + data.append(-61); + data.append(56); + data.append(-97); + data.append(-39); + data.append(47); + data.append(39); + data.append(2); + data.append(-1); + data.append(-16); + data.append(-76); + data.append(-70); + data.append(-65); + data.append(8); + data.append(-94); + data.append(115); + data.append(79); + data.append(4); + data.append(-45); + data.append(-31); + data.append(-7); + data.append(-40); + data.append(-43); + data.append(-108); + data.append(29); + data.append(25); + data.append(-18); + data.append(112); + data.append(47); + data.append(-6); + data.append(73); + data.append(58); + data.append(74); + data.append(-120); + data.append(102); + data.append(60); + data.append(-22); + data.append(-33); + data.append(106); + data.append(-114); + data.append(-110); + data.append(44); + data.append(-64); + data.append(112); + data.append(-15); + data.append(43); + data.append(81); + data.append(-15); + data.append(62); + data.append(70); + data.append(-68); + data.append(-117); + data.append(102); + data.append(122); + data.append(117); + data.append(-38); + data.append(39); + data.append(-127); + data.append(85); + data.append(16); + data.append(-23); + data.append(20); + data.append(13); + data.append(-79); + data.append(-43); + data.append(-97); + data.append(-42); + data.append(86); + data.append(-6); + data.append(-5); + data.append(67); + data.append(-85); + data.append(-72); + data.append(-1); + data.append(14); + data.append(-35); + data.append(-24); + data.append(-5); + data.append(-12); + data.append(30); + data.append(73); + data.append(101); + data.append(114); + data.append(-75); + data.append(74); + data.append(-24); + data.append(78); + data.append(79); + data.append(-61); + data.append(-76); + data.append(-42); + data.append(-33); + data.append(55); + data.append(0); + data.append(125); + data.append(47); + data.append(-20); + data.append(-51); + data.append(-116); + data.append(-7); + data.append(19); + data.append(116); + data.append(-96); + data.append(82); + data.append(72); + data.append(82); + data.append(54); + data.append(-26); + data.append(-73); + data.append(-63); + data.append(-70); + data.append(-46); + data.append(45); + data.append(-3); + data.append(67); + data.append(-90); + data.append(90); + data.append(-78); + data.append(-38); + data.append(-127); + data.append(62); + data.append(-71); + data.append(-68); + data.append(-127); + data.append(118); + data.append(-111); + data.append(95); + data.append(-19); + data.append(84); + data.append(87); + data.append(-15); + data.append(55); + data.append(-42); + data.append(93); + data.append(-109); + data.append(10); + data.append(57); + data.append(-28); + data.append(70); + data.append(61); + data.append(-15); + data.append(75); + data.append(-117); + data.append(3); + data.append(99); + data.append(21); + data.append(-56); + data.append(121); + data.append(-114); + data.append(108); + data.append(-44); + data.append(-4); + data.append(54); + data.append(21); + data.append(78); + data.append(93); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i8_2d.cairo b/tests/nodes/unsqueeze_i8_2d.cairo index d9f5c32fa..c653ec1b6 100644 --- a/tests/nodes/unsqueeze_i8_2d.cairo +++ b/tests/nodes/unsqueeze_i8_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_i8_2d/input_0.cairo b/tests/nodes/unsqueeze_i8_2d/input_0.cairo index 31e8bd4d9..7b8a31a78 100644 --- a/tests/nodes/unsqueeze_i8_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_i8_2d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 48, sign: true }); + data.append(6); + data.append(0); + data.append(-30); + data.append(99); + data.append(-88); + data.append(78); + data.append(-59); + data.append(76); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i8_2d/output_0.cairo b/tests/nodes/unsqueeze_i8_2d/output_0.cairo index 860df3f89..2800afd96 100644 --- a/tests/nodes/unsqueeze_i8_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_i8_2d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,13 +11,13 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 48, sign: true }); + data.append(6); + data.append(0); + data.append(-30); + data.append(99); + data.append(-88); + data.append(78); + data.append(-59); + data.append(76); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i8_3d.cairo b/tests/nodes/unsqueeze_i8_3d.cairo index cc77bfbc2..c6eda07b8 100644 --- a/tests/nodes/unsqueeze_i8_3d.cairo +++ b/tests/nodes/unsqueeze_i8_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_i8_3d/input_0.cairo b/tests/nodes/unsqueeze_i8_3d/input_0.cairo index 20f8d90ea..8fcac9961 100644 --- a/tests/nodes/unsqueeze_i8_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_i8_3d/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 57, sign: false }); + data.append(71); + data.append(-18); + data.append(77); + data.append(55); + data.append(14); + data.append(93); + data.append(-95); + data.append(110); + data.append(-46); + data.append(52); + data.append(14); + data.append(-45); + data.append(60); + data.append(8); + data.append(-60); + data.append(20); + data.append(50); + data.append(74); + data.append(100); + data.append(4); + data.append(-17); + data.append(-121); + data.append(89); + data.append(75); + data.append(-30); + data.append(-40); + data.append(-106); + data.append(-30); + data.append(115); + data.append(96); + data.append(-46); + data.append(-113); + data.append(122); + data.append(35); + data.append(97); + data.append(-107); + data.append(102); + data.append(94); + data.append(28); + data.append(-33); + data.append(-6); + data.append(-19); + data.append(109); + data.append(112); + data.append(15); + data.append(-59); + data.append(26); + data.append(28); + data.append(25); + data.append(-75); + data.append(-1); + data.append(67); + data.append(125); + data.append(-122); + data.append(17); + data.append(12); + data.append(24); + data.append(45); + data.append(51); + data.append(-52); + data.append(-76); + data.append(102); + data.append(32); + data.append(-11); + data.append(31); + data.append(42); + data.append(8); + data.append(113); + data.append(75); + data.append(73); + data.append(82); + data.append(-121); + data.append(-32); + data.append(-16); + data.append(-60); + data.append(43); + data.append(-53); + data.append(19); + data.append(40); + data.append(-69); + data.append(93); + data.append(64); + data.append(29); + data.append(93); + data.append(-24); + data.append(-73); + data.append(51); + data.append(58); + data.append(-38); + data.append(72); + data.append(-94); + data.append(-99); + data.append(-20); + data.append(112); + data.append(97); + data.append(-26); + data.append(58); + data.append(-6); + data.append(41); + data.append(-4); + data.append(-72); + data.append(11); + data.append(-51); + data.append(-124); + data.append(32); + data.append(-30); + data.append(-9); + data.append(65); + data.append(69); + data.append(-81); + data.append(36); + data.append(-21); + data.append(-19); + data.append(-60); + data.append(100); + data.append(26); + data.append(-15); + data.append(43); + data.append(8); + data.append(-55); + data.append(117); + data.append(-10); + data.append(45); + data.append(-13); + data.append(68); + data.append(88); + data.append(-90); + data.append(-21); + data.append(-30); + data.append(76); + data.append(-13); + data.append(56); + data.append(-84); + data.append(58); + data.append(10); + data.append(69); + data.append(86); + data.append(-54); + data.append(104); + data.append(69); + data.append(47); + data.append(-46); + data.append(79); + data.append(-21); + data.append(45); + data.append(28); + data.append(-74); + data.append(-11); + data.append(-100); + data.append(121); + data.append(-2); + data.append(-102); + data.append(-53); + data.append(-126); + data.append(-89); + data.append(-39); + data.append(-68); + data.append(61); + data.append(51); + data.append(-105); + data.append(89); + data.append(94); + data.append(-119); + data.append(32); + data.append(29); + data.append(-16); + data.append(-12); + data.append(-28); + data.append(126); + data.append(-40); + data.append(-64); + data.append(54); + data.append(-3); + data.append(-65); + data.append(-117); + data.append(-63); + data.append(84); + data.append(-45); + data.append(-38); + data.append(-7); + data.append(-16); + data.append(70); + data.append(-48); + data.append(-18); + data.append(-26); + data.append(2); + data.append(51); + data.append(87); + data.append(120); + data.append(-127); + data.append(93); + data.append(-66); + data.append(-93); + data.append(-95); + data.append(44); + data.append(-98); + data.append(44); + data.append(-13); + data.append(75); + data.append(-71); + data.append(-79); + data.append(14); + data.append(51); + data.append(-12); + data.append(60); + data.append(9); + data.append(-115); + data.append(-96); + data.append(3); + data.append(-10); + data.append(-67); + data.append(43); + data.append(-75); + data.append(-106); + data.append(-13); + data.append(41); + data.append(120); + data.append(105); + data.append(-91); + data.append(-34); + data.append(-31); + data.append(85); + data.append(15); + data.append(-82); + data.append(-103); + data.append(-38); + data.append(-85); + data.append(81); + data.append(-22); + data.append(-62); + data.append(94); + data.append(55); + data.append(-17); + data.append(-28); + data.append(-118); + data.append(41); + data.append(102); + data.append(-94); + data.append(1); + data.append(48); + data.append(-123); + data.append(78); + data.append(58); + data.append(-102); + data.append(-110); + data.append(-114); + data.append(-36); + data.append(92); + data.append(-69); + data.append(-102); + data.append(85); + data.append(100); + data.append(48); + data.append(-85); + data.append(23); + data.append(-26); + data.append(-54); + data.append(43); + data.append(-20); + data.append(6); + data.append(-55); + data.append(121); + data.append(12); + data.append(-112); + data.append(-39); + data.append(63); + data.append(35); + data.append(26); + data.append(111); + data.append(4); + data.append(-61); + data.append(47); + data.append(63); + data.append(61); + data.append(-126); + data.append(27); + data.append(125); + data.append(-87); + data.append(73); + data.append(60); + data.append(-47); + data.append(-21); + data.append(43); + data.append(-34); + data.append(-92); + data.append(1); + data.append(96); + data.append(120); + data.append(-18); + data.append(-127); + data.append(21); + data.append(6); + data.append(-4); + data.append(9); + data.append(-75); + data.append(-97); + data.append(118); + data.append(119); + data.append(117); + data.append(109); + data.append(-66); + data.append(8); + data.append(-28); + data.append(-67); + data.append(-75); + data.append(25); + data.append(-79); + data.append(32); + data.append(-64); + data.append(-46); + data.append(59); + data.append(-53); + data.append(125); + data.append(38); + data.append(120); + data.append(69); + data.append(-122); + data.append(-3); + data.append(87); + data.append(-82); + data.append(46); + data.append(7); + data.append(66); + data.append(81); + data.append(-71); + data.append(67); + data.append(114); + data.append(8); + data.append(-93); + data.append(-7); + data.append(-67); + data.append(-13); + data.append(-91); + data.append(69); + data.append(-80); + data.append(44); + data.append(-35); + data.append(77); + data.append(-13); + data.append(-125); + data.append(-85); + data.append(45); + data.append(105); + data.append(-68); + data.append(118); + data.append(17); + data.append(18); + data.append(98); + data.append(-29); + data.append(99); + data.append(50); + data.append(57); + data.append(26); + data.append(60); + data.append(-23); + data.append(124); + data.append(-66); + data.append(123); + data.append(-100); + data.append(-52); + data.append(56); + data.append(68); + data.append(-55); + data.append(76); + data.append(-31); + data.append(79); + data.append(62); + data.append(99); + data.append(-61); + data.append(47); + data.append(115); + data.append(-49); + data.append(-100); + data.append(8); + data.append(-93); + data.append(0); + data.append(4); + data.append(-24); + data.append(-4); + data.append(-119); + data.append(50); + data.append(-21); + data.append(-111); + data.append(94); + data.append(85); + data.append(94); + data.append(-33); + data.append(63); + data.append(49); + data.append(63); + data.append(3); + data.append(-10); + data.append(106); + data.append(-19); + data.append(-91); + data.append(51); + data.append(-119); + data.append(-105); + data.append(32); + data.append(-89); + data.append(-90); + data.append(23); + data.append(72); + data.append(-113); + data.append(45); + data.append(58); + data.append(78); + data.append(9); + data.append(-13); + data.append(-123); + data.append(21); + data.append(74); + data.append(-127); + data.append(-103); + data.append(-3); + data.append(-14); + data.append(-78); + data.append(-127); + data.append(-10); + data.append(108); + data.append(-121); + data.append(4); + data.append(-33); + data.append(103); + data.append(96); + data.append(-118); + data.append(-37); + data.append(-105); + data.append(100); + data.append(-123); + data.append(115); + data.append(-3); + data.append(-32); + data.append(35); + data.append(-11); + data.append(-82); + data.append(-51); + data.append(-33); + data.append(12); + data.append(-19); + data.append(-14); + data.append(43); + data.append(69); + data.append(-47); + data.append(-60); + data.append(-87); + data.append(59); + data.append(47); + data.append(-33); + data.append(112); + data.append(75); + data.append(-8); + data.append(67); + data.append(94); + data.append(-90); + data.append(18); + data.append(-99); + data.append(-27); + data.append(65); + data.append(119); + data.append(73); + data.append(-92); + data.append(-63); + data.append(-104); + data.append(14); + data.append(-10); + data.append(-30); + data.append(-22); + data.append(99); + data.append(15); + data.append(6); + data.append(66); + data.append(80); + data.append(98); + data.append(-48); + data.append(-97); + data.append(71); + data.append(28); + data.append(39); + data.append(-71); + data.append(-118); + data.append(95); + data.append(-61); + data.append(-5); + data.append(-113); + data.append(-72); + data.append(-122); + data.append(-122); + data.append(-98); + data.append(-116); + data.append(68); + data.append(52); + data.append(82); + data.append(126); + data.append(74); + data.append(103); + data.append(89); + data.append(10); + data.append(-112); + data.append(-99); + data.append(91); + data.append(125); + data.append(-114); + data.append(58); + data.append(30); + data.append(93); + data.append(-78); + data.append(49); + data.append(-15); + data.append(40); + data.append(-124); + data.append(74); + data.append(29); + data.append(22); + data.append(1); + data.append(77); + data.append(60); + data.append(-50); + data.append(-38); + data.append(-78); + data.append(-112); + data.append(-52); + data.append(82); + data.append(-99); + data.append(5); + data.append(103); + data.append(26); + data.append(109); + data.append(95); + data.append(105); + data.append(-35); + data.append(-5); + data.append(-94); + data.append(30); + data.append(68); + data.append(28); + data.append(80); + data.append(-59); + data.append(9); + data.append(-73); + data.append(-116); + data.append(22); + data.append(-126); + data.append(-53); + data.append(-57); + data.append(-34); + data.append(-127); + data.append(47); + data.append(-37); + data.append(-125); + data.append(-68); + data.append(-80); + data.append(38); + data.append(5); + data.append(37); + data.append(-124); + data.append(-53); + data.append(-105); + data.append(36); + data.append(-88); + data.append(46); + data.append(83); + data.append(-81); + data.append(-102); + data.append(75); + data.append(-33); + data.append(-31); + data.append(95); + data.append(-78); + data.append(-62); + data.append(108); + data.append(13); + data.append(71); + data.append(-96); + data.append(84); + data.append(84); + data.append(-74); + data.append(-67); + data.append(24); + data.append(85); + data.append(60); + data.append(-73); + data.append(65); + data.append(-98); + data.append(97); + data.append(-76); + data.append(-98); + data.append(116); + data.append(-125); + data.append(27); + data.append(101); + data.append(100); + data.append(3); + data.append(-15); + data.append(113); + data.append(11); + data.append(59); + data.append(-18); + data.append(-15); + data.append(124); + data.append(9); + data.append(-104); + data.append(-34); + data.append(-9); + data.append(-94); + data.append(90); + data.append(119); + data.append(14); + data.append(-112); + data.append(-100); + data.append(-121); + data.append(87); + data.append(120); + data.append(53); + data.append(-106); + data.append(-115); + data.append(40); + data.append(-80); + data.append(72); + data.append(42); + data.append(-86); + data.append(-88); + data.append(27); + data.append(44); + data.append(-92); + data.append(94); + data.append(-120); + data.append(67); + data.append(107); + data.append(-71); + data.append(-124); + data.append(-49); + data.append(107); + data.append(-71); + data.append(0); + data.append(-56); + data.append(-41); + data.append(43); + data.append(-24); + data.append(67); + data.append(5); + data.append(70); + data.append(101); + data.append(-112); + data.append(85); + data.append(6); + data.append(42); + data.append(-80); + data.append(-20); + data.append(-81); + data.append(27); + data.append(-72); + data.append(49); + data.append(-42); + data.append(-79); + data.append(121); + data.append(35); + data.append(-22); + data.append(33); + data.append(-98); + data.append(-12); + data.append(-81); + data.append(-111); + data.append(38); + data.append(34); + data.append(11); + data.append(3); + data.append(122); + data.append(-96); + data.append(-109); + data.append(3); + data.append(-124); + data.append(-101); + data.append(-56); + data.append(43); + data.append(111); + data.append(89); + data.append(44); + data.append(7); + data.append(68); + data.append(41); + data.append(89); + data.append(-35); + data.append(49); + data.append(-82); + data.append(109); + data.append(-57); + data.append(-81); + data.append(12); + data.append(-4); + data.append(43); + data.append(-114); + data.append(93); + data.append(71); + data.append(74); + data.append(40); + data.append(20); + data.append(26); + data.append(-87); + data.append(56); + data.append(-61); + data.append(89); + data.append(-94); + data.append(-50); + data.append(-70); + data.append(-100); + data.append(105); + data.append(23); + data.append(123); + data.append(-44); + data.append(110); + data.append(85); + data.append(123); + data.append(64); + data.append(58); + data.append(52); + data.append(-76); + data.append(-16); + data.append(59); + data.append(69); + data.append(1); + data.append(-100); + data.append(65); + data.append(80); + data.append(49); + data.append(12); + data.append(64); + data.append(66); + data.append(-85); + data.append(59); + data.append(79); + data.append(-108); + data.append(86); + data.append(-54); + data.append(-52); + data.append(84); + data.append(62); + data.append(-9); + data.append(33); + data.append(-111); + data.append(-36); + data.append(100); + data.append(-16); + data.append(-115); + data.append(-79); + data.append(85); + data.append(-49); + data.append(-92); + data.append(87); + data.append(115); + data.append(-32); + data.append(67); + data.append(-31); + data.append(-2); + data.append(-44); + data.append(85); + data.append(13); + data.append(3); + data.append(25); + data.append(26); + data.append(97); + data.append(73); + data.append(110); + data.append(87); + data.append(-125); + data.append(8); + data.append(68); + data.append(106); + data.append(-102); + data.append(67); + data.append(-41); + data.append(-20); + data.append(-109); + data.append(-114); + data.append(-5); + data.append(-62); + data.append(-2); + data.append(-23); + data.append(74); + data.append(99); + data.append(-39); + data.append(86); + data.append(-15); + data.append(-30); + data.append(-28); + data.append(76); + data.append(-75); + data.append(108); + data.append(76); + data.append(102); + data.append(-88); + data.append(101); + data.append(22); + data.append(-15); + data.append(-12); + data.append(-32); + data.append(-113); + data.append(37); + data.append(36); + data.append(-99); + data.append(-111); + data.append(-51); + data.append(-40); + data.append(-65); + data.append(66); + data.append(66); + data.append(-17); + data.append(-127); + data.append(-69); + data.append(109); + data.append(15); + data.append(80); + data.append(58); + data.append(-8); + data.append(-11); + data.append(-24); + data.append(-122); + data.append(58); + data.append(-5); + data.append(-9); + data.append(53); + data.append(-8); + data.append(10); + data.append(-55); + data.append(-59); + data.append(4); + data.append(-1); + data.append(-42); + data.append(4); + data.append(45); + data.append(-67); + data.append(-127); + data.append(-77); + data.append(-14); + data.append(35); + data.append(-95); + data.append(26); + data.append(-77); + data.append(4); + data.append(-55); + data.append(-28); + data.append(56); + data.append(58); + data.append(48); + data.append(-104); + data.append(21); + data.append(113); + data.append(-108); + data.append(72); + data.append(-124); + data.append(108); + data.append(69); + data.append(0); + data.append(-93); + data.append(-64); + data.append(22); + data.append(-84); + data.append(68); + data.append(97); + data.append(43); + data.append(-53); + data.append(97); + data.append(21); + data.append(-24); + data.append(-115); + data.append(15); + data.append(62); + data.append(-75); + data.append(-127); + data.append(93); + data.append(23); + data.append(27); + data.append(-117); + data.append(78); + data.append(-110); + data.append(-99); + data.append(-24); + data.append(-22); + data.append(12); + data.append(32); + data.append(32); + data.append(55); + data.append(-81); + data.append(122); + data.append(-108); + data.append(109); + data.append(-56); + data.append(67); + data.append(-119); + data.append(42); + data.append(87); + data.append(99); + data.append(2); + data.append(-102); + data.append(-63); + data.append(-67); + data.append(88); + data.append(47); + data.append(36); + data.append(-45); + data.append(-95); + data.append(-75); + data.append(0); + data.append(63); + data.append(11); + data.append(63); + data.append(-97); + data.append(72); + data.append(101); + data.append(-90); + data.append(13); + data.append(-58); + data.append(-115); + data.append(86); + data.append(39); + data.append(108); + data.append(-73); + data.append(-41); + data.append(-40); + data.append(35); + data.append(-4); + data.append(-127); + data.append(-11); + data.append(-63); + data.append(33); + data.append(-49); + data.append(-24); + data.append(-88); + data.append(-82); + data.append(53); + data.append(19); + data.append(15); + data.append(79); + data.append(-83); + data.append(-83); + data.append(-89); + data.append(-109); + data.append(-85); + data.append(10); + data.append(-10); + data.append(-73); + data.append(-86); + data.append(97); + data.append(63); + data.append(-57); + data.append(18); + data.append(-103); + data.append(31); + data.append(102); + data.append(-93); + data.append(-81); + data.append(-76); + data.append(-19); + data.append(74); + data.append(-100); + data.append(-74); + data.append(105); + data.append(16); + data.append(103); + data.append(-47); + data.append(-103); + data.append(41); + data.append(9); + data.append(-109); + data.append(-90); + data.append(104); + data.append(-114); + data.append(-105); + data.append(-20); + data.append(64); + data.append(119); + data.append(-58); + data.append(-67); + data.append(15); + data.append(-62); + data.append(27); + data.append(-111); + data.append(123); + data.append(-13); + data.append(-127); + data.append(-40); + data.append(108); + data.append(58); + data.append(15); + data.append(9); + data.append(3); + data.append(37); + data.append(54); + data.append(-124); + data.append(-83); + data.append(43); + data.append(-40); + data.append(21); + data.append(113); + data.append(-28); + data.append(-2); + data.append(107); + data.append(83); + data.append(-100); + data.append(89); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_i8_3d/output_0.cairo b/tests/nodes/unsqueeze_i8_3d/output_0.cairo index f56aec76c..846aeb60b 100644 --- a/tests/nodes/unsqueeze_i8_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_i8_3d/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -13,1005 +12,1005 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 60, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 75, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 24, sign: false }); - data.append(i8 { mag: 112, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 22, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 58, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 53, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 21, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 27, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 25, sign: true }); - data.append(i8 { mag: 88, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 28, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 68, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 13, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 112, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 103, sign: false }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 117, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 61, sign: true }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 26, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 52, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 94, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 57, sign: true }); - data.append(i8 { mag: 35, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 76, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 39, sign: true }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 66, sign: true }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 105, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 15, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 18, sign: true }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 62, sign: false }); - data.append(i8 { mag: 30, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 23, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 116, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 56, sign: true }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 71, sign: false }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 33, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 47, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 36, sign: true }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 122, sign: true }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 23, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 16, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 64, sign: true }); - data.append(i8 { mag: 59, sign: false }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 15, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 6, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 76, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 107, sign: true }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 86, sign: true }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 97, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 84, sign: false }); - data.append(i8 { mag: 26, sign: true }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 77, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 37, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 107, sign: false }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 103, sign: true }); - data.append(i8 { mag: 12, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 84, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 117, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 54, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 46, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 89, sign: true }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 87, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 110, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 68, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 111, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 82, sign: true }); - data.append(i8 { mag: 20, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 63, sign: true }); - data.append(i8 { mag: 81, sign: true }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 91, sign: false }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 50, sign: false }); - data.append(i8 { mag: 19, sign: true }); - data.append(i8 { mag: 44, sign: true }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 119, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 121, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 72, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 100, sign: true }); - data.append(i8 { mag: 27, sign: false }); - data.append(i8 { mag: 33, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 43, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 99, sign: true }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 126, sign: false }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 14, sign: true }); - data.append(i8 { mag: 48, sign: false }); - data.append(i8 { mag: 21, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 14, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 25, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 32, sign: true }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 42, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 29, sign: false }); - data.append(i8 { mag: 12, sign: false }); - data.append(i8 { mag: 77, sign: false }); - data.append(i8 { mag: 95, sign: false }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 119, sign: false }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 31, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 17, sign: true }); - data.append(i8 { mag: 44, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 48, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 102, sign: false }); - data.append(i8 { mag: 86, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 101, sign: true }); - data.append(i8 { mag: 7, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 22, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 123, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 89, sign: false }); - data.append(i8 { mag: 78, sign: false }); - data.append(i8 { mag: 115, sign: true }); - data.append(i8 { mag: 121, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 42, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 71, sign: true }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 13, sign: true }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 108, sign: true }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 80, sign: false }); - data.append(i8 { mag: 66, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 85, sign: true }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 58, sign: true }); - data.append(i8 { mag: 82, sign: false }); - data.append(i8 { mag: 114, sign: true }); - data.append(i8 { mag: 60, sign: true }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 67, sign: true }); - data.append(i8 { mag: 120, sign: false }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 122, sign: false }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 49, sign: false }); - data.append(i8 { mag: 111, sign: true }); - data.append(i8 { mag: 8, sign: true }); - data.append(i8 { mag: 43, sign: true }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 91, sign: true }); - data.append(i8 { mag: 94, sign: false }); - data.append(i8 { mag: 93, sign: true }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 88, sign: true }); - data.append(i8 { mag: 109, sign: false }); - data.append(i8 { mag: 70, sign: false }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 75, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 102, sign: true }); - data.append(i8 { mag: 79, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 70, sign: true }); - data.append(i8 { mag: 50, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 53, sign: false }); - data.append(i8 { mag: 54, sign: true }); - data.append(i8 { mag: 11, sign: false }); - data.append(i8 { mag: 113, sign: false }); - data.append(i8 { mag: 65, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 104, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 73, sign: true }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 65, sign: false }); - data.append(i8 { mag: 39, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 47, sign: true }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 125, sign: true }); - data.append(i8 { mag: 20, sign: false }); - data.append(i8 { mag: 8, sign: false }); - data.append(i8 { mag: 34, sign: true }); - data.append(i8 { mag: 80, sign: true }); - data.append(i8 { mag: 69, sign: true }); - data.append(i8 { mag: 114, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 92, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 81, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 108, sign: false }); - data.append(i8 { mag: 29, sign: true }); - data.append(i8 { mag: 30, sign: true }); - data.append(i8 { mag: 16, sign: false }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 74, sign: true }); - data.append(i8 { mag: 124, sign: true }); - data.append(i8 { mag: 83, sign: true }); - data.append(i8 { mag: 64, sign: false }); - data.append(i8 { mag: 96, sign: true }); - data.append(i8 { mag: 41, sign: false }); - data.append(i8 { mag: 61, sign: false }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 115, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 55, sign: false }); - data.append(i8 { mag: 51, sign: true }); - data.append(i8 { mag: 69, sign: false }); - data.append(i8 { mag: 36, sign: false }); - data.append(i8 { mag: 7, sign: true }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 97, sign: false }); - data.append(i8 { mag: 62, sign: true }); - data.append(i8 { mag: 45, sign: true }); - data.append(i8 { mag: 11, sign: true }); - data.append(i8 { mag: 40, sign: true }); - data.append(i8 { mag: 93, sign: false }); - data.append(i8 { mag: 34, sign: false }); - data.append(i8 { mag: 32, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 101, sign: false }); - data.append(i8 { mag: 52, sign: false }); - data.append(i8 { mag: 109, sign: true }); - data.append(i8 { mag: 116, sign: false }); - data.append(i8 { mag: 126, sign: true }); - data.append(i8 { mag: 31, sign: true }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 57, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 9, sign: false }); - data.append(i8 { mag: 41, sign: true }); - data.append(i8 { mag: 59, sign: true }); - data.append(i8 { mag: 78, sign: true }); - data.append(i8 { mag: 118, sign: false }); - data.append(i8 { mag: 85, sign: false }); - data.append(i8 { mag: 118, sign: true }); - data.append(i8 { mag: 49, sign: true }); - data.append(i8 { mag: 72, sign: false }); - data.append(i8 { mag: 67, sign: false }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 104, sign: true }); - data.append(i8 { mag: 113, sign: true }); - data.append(i8 { mag: 38, sign: false }); - data.append(i8 { mag: 123, sign: false }); - data.append(i8 { mag: 98, sign: true }); - data.append(i8 { mag: 90, sign: false }); - data.append(i8 { mag: 125, sign: false }); - data.append(i8 { mag: 106, sign: true }); - data.append(i8 { mag: 90, sign: true }); - data.append(i8 { mag: 99, sign: false }); - data.append(i8 { mag: 95, sign: true }); - data.append(i8 { mag: 37, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 124, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 127, sign: true }); - data.append(i8 { mag: 83, sign: false }); - data.append(i8 { mag: 19, sign: false }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 10, sign: false }); - data.append(i8 { mag: 100, sign: false }); - data.append(i8 { mag: 17, sign: false }); - data.append(i8 { mag: 38, sign: true }); - data.append(i8 { mag: 110, sign: true }); - data.append(i8 { mag: 40, sign: false }); - data.append(i8 { mag: 92, sign: false }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 51, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 10, sign: true }); - data.append(i8 { mag: 55, sign: true }); - data.append(i8 { mag: 96, sign: false }); - data.append(i8 { mag: 35, sign: false }); - data.append(i8 { mag: 63, sign: false }); - data.append(i8 { mag: 5, sign: true }); - data.append(i8 { mag: 74, sign: false }); - data.append(i8 { mag: 4, sign: true }); - data.append(i8 { mag: 45, sign: false }); - data.append(i8 { mag: 18, sign: false }); - data.append(i8 { mag: 98, sign: false }); - data.append(i8 { mag: 73, sign: false }); - data.append(i8 { mag: 105, sign: true }); - data.append(i8 { mag: 46, sign: true }); - data.append(i8 { mag: 24, sign: true }); - data.append(i8 { mag: 56, sign: false }); - data.append(i8 { mag: 6, sign: true }); - data.append(i8 { mag: 57, sign: false }); + data.append(71); + data.append(-18); + data.append(77); + data.append(55); + data.append(14); + data.append(93); + data.append(-95); + data.append(110); + data.append(-46); + data.append(52); + data.append(14); + data.append(-45); + data.append(60); + data.append(8); + data.append(-60); + data.append(20); + data.append(50); + data.append(74); + data.append(100); + data.append(4); + data.append(-17); + data.append(-121); + data.append(89); + data.append(75); + data.append(-30); + data.append(-40); + data.append(-106); + data.append(-30); + data.append(115); + data.append(96); + data.append(-46); + data.append(-113); + data.append(122); + data.append(35); + data.append(97); + data.append(-107); + data.append(102); + data.append(94); + data.append(28); + data.append(-33); + data.append(-6); + data.append(-19); + data.append(109); + data.append(112); + data.append(15); + data.append(-59); + data.append(26); + data.append(28); + data.append(25); + data.append(-75); + data.append(-1); + data.append(67); + data.append(125); + data.append(-122); + data.append(17); + data.append(12); + data.append(24); + data.append(45); + data.append(51); + data.append(-52); + data.append(-76); + data.append(102); + data.append(32); + data.append(-11); + data.append(31); + data.append(42); + data.append(8); + data.append(113); + data.append(75); + data.append(73); + data.append(82); + data.append(-121); + data.append(-32); + data.append(-16); + data.append(-60); + data.append(43); + data.append(-53); + data.append(19); + data.append(40); + data.append(-69); + data.append(93); + data.append(64); + data.append(29); + data.append(93); + data.append(-24); + data.append(-73); + data.append(51); + data.append(58); + data.append(-38); + data.append(72); + data.append(-94); + data.append(-99); + data.append(-20); + data.append(112); + data.append(97); + data.append(-26); + data.append(58); + data.append(-6); + data.append(41); + data.append(-4); + data.append(-72); + data.append(11); + data.append(-51); + data.append(-124); + data.append(32); + data.append(-30); + data.append(-9); + data.append(65); + data.append(69); + data.append(-81); + data.append(36); + data.append(-21); + data.append(-19); + data.append(-60); + data.append(100); + data.append(26); + data.append(-15); + data.append(43); + data.append(8); + data.append(-55); + data.append(117); + data.append(-10); + data.append(45); + data.append(-13); + data.append(68); + data.append(88); + data.append(-90); + data.append(-21); + data.append(-30); + data.append(76); + data.append(-13); + data.append(56); + data.append(-84); + data.append(58); + data.append(10); + data.append(69); + data.append(86); + data.append(-54); + data.append(104); + data.append(69); + data.append(47); + data.append(-46); + data.append(79); + data.append(-21); + data.append(45); + data.append(28); + data.append(-74); + data.append(-11); + data.append(-100); + data.append(121); + data.append(-2); + data.append(-102); + data.append(-53); + data.append(-126); + data.append(-89); + data.append(-39); + data.append(-68); + data.append(61); + data.append(51); + data.append(-105); + data.append(89); + data.append(94); + data.append(-119); + data.append(32); + data.append(29); + data.append(-16); + data.append(-12); + data.append(-28); + data.append(126); + data.append(-40); + data.append(-64); + data.append(54); + data.append(-3); + data.append(-65); + data.append(-117); + data.append(-63); + data.append(84); + data.append(-45); + data.append(-38); + data.append(-7); + data.append(-16); + data.append(70); + data.append(-48); + data.append(-18); + data.append(-26); + data.append(2); + data.append(51); + data.append(87); + data.append(120); + data.append(-127); + data.append(93); + data.append(-66); + data.append(-93); + data.append(-95); + data.append(44); + data.append(-98); + data.append(44); + data.append(-13); + data.append(75); + data.append(-71); + data.append(-79); + data.append(14); + data.append(51); + data.append(-12); + data.append(60); + data.append(9); + data.append(-115); + data.append(-96); + data.append(3); + data.append(-10); + data.append(-67); + data.append(43); + data.append(-75); + data.append(-106); + data.append(-13); + data.append(41); + data.append(120); + data.append(105); + data.append(-91); + data.append(-34); + data.append(-31); + data.append(85); + data.append(15); + data.append(-82); + data.append(-103); + data.append(-38); + data.append(-85); + data.append(81); + data.append(-22); + data.append(-62); + data.append(94); + data.append(55); + data.append(-17); + data.append(-28); + data.append(-118); + data.append(41); + data.append(102); + data.append(-94); + data.append(1); + data.append(48); + data.append(-123); + data.append(78); + data.append(58); + data.append(-102); + data.append(-110); + data.append(-114); + data.append(-36); + data.append(92); + data.append(-69); + data.append(-102); + data.append(85); + data.append(100); + data.append(48); + data.append(-85); + data.append(23); + data.append(-26); + data.append(-54); + data.append(43); + data.append(-20); + data.append(6); + data.append(-55); + data.append(121); + data.append(12); + data.append(-112); + data.append(-39); + data.append(63); + data.append(35); + data.append(26); + data.append(111); + data.append(4); + data.append(-61); + data.append(47); + data.append(63); + data.append(61); + data.append(-126); + data.append(27); + data.append(125); + data.append(-87); + data.append(73); + data.append(60); + data.append(-47); + data.append(-21); + data.append(43); + data.append(-34); + data.append(-92); + data.append(1); + data.append(96); + data.append(120); + data.append(-18); + data.append(-127); + data.append(21); + data.append(6); + data.append(-4); + data.append(9); + data.append(-75); + data.append(-97); + data.append(118); + data.append(119); + data.append(117); + data.append(109); + data.append(-66); + data.append(8); + data.append(-28); + data.append(-67); + data.append(-75); + data.append(25); + data.append(-79); + data.append(32); + data.append(-64); + data.append(-46); + data.append(59); + data.append(-53); + data.append(125); + data.append(38); + data.append(120); + data.append(69); + data.append(-122); + data.append(-3); + data.append(87); + data.append(-82); + data.append(46); + data.append(7); + data.append(66); + data.append(81); + data.append(-71); + data.append(67); + data.append(114); + data.append(8); + data.append(-93); + data.append(-7); + data.append(-67); + data.append(-13); + data.append(-91); + data.append(69); + data.append(-80); + data.append(44); + data.append(-35); + data.append(77); + data.append(-13); + data.append(-125); + data.append(-85); + data.append(45); + data.append(105); + data.append(-68); + data.append(118); + data.append(17); + data.append(18); + data.append(98); + data.append(-29); + data.append(99); + data.append(50); + data.append(57); + data.append(26); + data.append(60); + data.append(-23); + data.append(124); + data.append(-66); + data.append(123); + data.append(-100); + data.append(-52); + data.append(56); + data.append(68); + data.append(-55); + data.append(76); + data.append(-31); + data.append(79); + data.append(62); + data.append(99); + data.append(-61); + data.append(47); + data.append(115); + data.append(-49); + data.append(-100); + data.append(8); + data.append(-93); + data.append(0); + data.append(4); + data.append(-24); + data.append(-4); + data.append(-119); + data.append(50); + data.append(-21); + data.append(-111); + data.append(94); + data.append(85); + data.append(94); + data.append(-33); + data.append(63); + data.append(49); + data.append(63); + data.append(3); + data.append(-10); + data.append(106); + data.append(-19); + data.append(-91); + data.append(51); + data.append(-119); + data.append(-105); + data.append(32); + data.append(-89); + data.append(-90); + data.append(23); + data.append(72); + data.append(-113); + data.append(45); + data.append(58); + data.append(78); + data.append(9); + data.append(-13); + data.append(-123); + data.append(21); + data.append(74); + data.append(-127); + data.append(-103); + data.append(-3); + data.append(-14); + data.append(-78); + data.append(-127); + data.append(-10); + data.append(108); + data.append(-121); + data.append(4); + data.append(-33); + data.append(103); + data.append(96); + data.append(-118); + data.append(-37); + data.append(-105); + data.append(100); + data.append(-123); + data.append(115); + data.append(-3); + data.append(-32); + data.append(35); + data.append(-11); + data.append(-82); + data.append(-51); + data.append(-33); + data.append(12); + data.append(-19); + data.append(-14); + data.append(43); + data.append(69); + data.append(-47); + data.append(-60); + data.append(-87); + data.append(59); + data.append(47); + data.append(-33); + data.append(112); + data.append(75); + data.append(-8); + data.append(67); + data.append(94); + data.append(-90); + data.append(18); + data.append(-99); + data.append(-27); + data.append(65); + data.append(119); + data.append(73); + data.append(-92); + data.append(-63); + data.append(-104); + data.append(14); + data.append(-10); + data.append(-30); + data.append(-22); + data.append(99); + data.append(15); + data.append(6); + data.append(66); + data.append(80); + data.append(98); + data.append(-48); + data.append(-97); + data.append(71); + data.append(28); + data.append(39); + data.append(-71); + data.append(-118); + data.append(95); + data.append(-61); + data.append(-5); + data.append(-113); + data.append(-72); + data.append(-122); + data.append(-122); + data.append(-98); + data.append(-116); + data.append(68); + data.append(52); + data.append(82); + data.append(126); + data.append(74); + data.append(103); + data.append(89); + data.append(10); + data.append(-112); + data.append(-99); + data.append(91); + data.append(125); + data.append(-114); + data.append(58); + data.append(30); + data.append(93); + data.append(-78); + data.append(49); + data.append(-15); + data.append(40); + data.append(-124); + data.append(74); + data.append(29); + data.append(22); + data.append(1); + data.append(77); + data.append(60); + data.append(-50); + data.append(-38); + data.append(-78); + data.append(-112); + data.append(-52); + data.append(82); + data.append(-99); + data.append(5); + data.append(103); + data.append(26); + data.append(109); + data.append(95); + data.append(105); + data.append(-35); + data.append(-5); + data.append(-94); + data.append(30); + data.append(68); + data.append(28); + data.append(80); + data.append(-59); + data.append(9); + data.append(-73); + data.append(-116); + data.append(22); + data.append(-126); + data.append(-53); + data.append(-57); + data.append(-34); + data.append(-127); + data.append(47); + data.append(-37); + data.append(-125); + data.append(-68); + data.append(-80); + data.append(38); + data.append(5); + data.append(37); + data.append(-124); + data.append(-53); + data.append(-105); + data.append(36); + data.append(-88); + data.append(46); + data.append(83); + data.append(-81); + data.append(-102); + data.append(75); + data.append(-33); + data.append(-31); + data.append(95); + data.append(-78); + data.append(-62); + data.append(108); + data.append(13); + data.append(71); + data.append(-96); + data.append(84); + data.append(84); + data.append(-74); + data.append(-67); + data.append(24); + data.append(85); + data.append(60); + data.append(-73); + data.append(65); + data.append(-98); + data.append(97); + data.append(-76); + data.append(-98); + data.append(116); + data.append(-125); + data.append(27); + data.append(101); + data.append(100); + data.append(3); + data.append(-15); + data.append(113); + data.append(11); + data.append(59); + data.append(-18); + data.append(-15); + data.append(124); + data.append(9); + data.append(-104); + data.append(-34); + data.append(-9); + data.append(-94); + data.append(90); + data.append(119); + data.append(14); + data.append(-112); + data.append(-100); + data.append(-121); + data.append(87); + data.append(120); + data.append(53); + data.append(-106); + data.append(-115); + data.append(40); + data.append(-80); + data.append(72); + data.append(42); + data.append(-86); + data.append(-88); + data.append(27); + data.append(44); + data.append(-92); + data.append(94); + data.append(-120); + data.append(67); + data.append(107); + data.append(-71); + data.append(-124); + data.append(-49); + data.append(107); + data.append(-71); + data.append(0); + data.append(-56); + data.append(-41); + data.append(43); + data.append(-24); + data.append(67); + data.append(5); + data.append(70); + data.append(101); + data.append(-112); + data.append(85); + data.append(6); + data.append(42); + data.append(-80); + data.append(-20); + data.append(-81); + data.append(27); + data.append(-72); + data.append(49); + data.append(-42); + data.append(-79); + data.append(121); + data.append(35); + data.append(-22); + data.append(33); + data.append(-98); + data.append(-12); + data.append(-81); + data.append(-111); + data.append(38); + data.append(34); + data.append(11); + data.append(3); + data.append(122); + data.append(-96); + data.append(-109); + data.append(3); + data.append(-124); + data.append(-101); + data.append(-56); + data.append(43); + data.append(111); + data.append(89); + data.append(44); + data.append(7); + data.append(68); + data.append(41); + data.append(89); + data.append(-35); + data.append(49); + data.append(-82); + data.append(109); + data.append(-57); + data.append(-81); + data.append(12); + data.append(-4); + data.append(43); + data.append(-114); + data.append(93); + data.append(71); + data.append(74); + data.append(40); + data.append(20); + data.append(26); + data.append(-87); + data.append(56); + data.append(-61); + data.append(89); + data.append(-94); + data.append(-50); + data.append(-70); + data.append(-100); + data.append(105); + data.append(23); + data.append(123); + data.append(-44); + data.append(110); + data.append(85); + data.append(123); + data.append(64); + data.append(58); + data.append(52); + data.append(-76); + data.append(-16); + data.append(59); + data.append(69); + data.append(1); + data.append(-100); + data.append(65); + data.append(80); + data.append(49); + data.append(12); + data.append(64); + data.append(66); + data.append(-85); + data.append(59); + data.append(79); + data.append(-108); + data.append(86); + data.append(-54); + data.append(-52); + data.append(84); + data.append(62); + data.append(-9); + data.append(33); + data.append(-111); + data.append(-36); + data.append(100); + data.append(-16); + data.append(-115); + data.append(-79); + data.append(85); + data.append(-49); + data.append(-92); + data.append(87); + data.append(115); + data.append(-32); + data.append(67); + data.append(-31); + data.append(-2); + data.append(-44); + data.append(85); + data.append(13); + data.append(3); + data.append(25); + data.append(26); + data.append(97); + data.append(73); + data.append(110); + data.append(87); + data.append(-125); + data.append(8); + data.append(68); + data.append(106); + data.append(-102); + data.append(67); + data.append(-41); + data.append(-20); + data.append(-109); + data.append(-114); + data.append(-5); + data.append(-62); + data.append(-2); + data.append(-23); + data.append(74); + data.append(99); + data.append(-39); + data.append(86); + data.append(-15); + data.append(-30); + data.append(-28); + data.append(76); + data.append(-75); + data.append(108); + data.append(76); + data.append(102); + data.append(-88); + data.append(101); + data.append(22); + data.append(-15); + data.append(-12); + data.append(-32); + data.append(-113); + data.append(37); + data.append(36); + data.append(-99); + data.append(-111); + data.append(-51); + data.append(-40); + data.append(-65); + data.append(66); + data.append(66); + data.append(-17); + data.append(-127); + data.append(-69); + data.append(109); + data.append(15); + data.append(80); + data.append(58); + data.append(-8); + data.append(-11); + data.append(-24); + data.append(-122); + data.append(58); + data.append(-5); + data.append(-9); + data.append(53); + data.append(-8); + data.append(10); + data.append(-55); + data.append(-59); + data.append(4); + data.append(-1); + data.append(-42); + data.append(4); + data.append(45); + data.append(-67); + data.append(-127); + data.append(-77); + data.append(-14); + data.append(35); + data.append(-95); + data.append(26); + data.append(-77); + data.append(4); + data.append(-55); + data.append(-28); + data.append(56); + data.append(58); + data.append(48); + data.append(-104); + data.append(21); + data.append(113); + data.append(-108); + data.append(72); + data.append(-124); + data.append(108); + data.append(69); + data.append(0); + data.append(-93); + data.append(-64); + data.append(22); + data.append(-84); + data.append(68); + data.append(97); + data.append(43); + data.append(-53); + data.append(97); + data.append(21); + data.append(-24); + data.append(-115); + data.append(15); + data.append(62); + data.append(-75); + data.append(-127); + data.append(93); + data.append(23); + data.append(27); + data.append(-117); + data.append(78); + data.append(-110); + data.append(-99); + data.append(-24); + data.append(-22); + data.append(12); + data.append(32); + data.append(32); + data.append(55); + data.append(-81); + data.append(122); + data.append(-108); + data.append(109); + data.append(-56); + data.append(67); + data.append(-119); + data.append(42); + data.append(87); + data.append(99); + data.append(2); + data.append(-102); + data.append(-63); + data.append(-67); + data.append(88); + data.append(47); + data.append(36); + data.append(-45); + data.append(-95); + data.append(-75); + data.append(0); + data.append(63); + data.append(11); + data.append(63); + data.append(-97); + data.append(72); + data.append(101); + data.append(-90); + data.append(13); + data.append(-58); + data.append(-115); + data.append(86); + data.append(39); + data.append(108); + data.append(-73); + data.append(-41); + data.append(-40); + data.append(35); + data.append(-4); + data.append(-127); + data.append(-11); + data.append(-63); + data.append(33); + data.append(-49); + data.append(-24); + data.append(-88); + data.append(-82); + data.append(53); + data.append(19); + data.append(15); + data.append(79); + data.append(-83); + data.append(-83); + data.append(-89); + data.append(-109); + data.append(-85); + data.append(10); + data.append(-10); + data.append(-73); + data.append(-86); + data.append(97); + data.append(63); + data.append(-57); + data.append(18); + data.append(-103); + data.append(31); + data.append(102); + data.append(-93); + data.append(-81); + data.append(-76); + data.append(-19); + data.append(74); + data.append(-100); + data.append(-74); + data.append(105); + data.append(16); + data.append(103); + data.append(-47); + data.append(-103); + data.append(41); + data.append(9); + data.append(-109); + data.append(-90); + data.append(104); + data.append(-114); + data.append(-105); + data.append(-20); + data.append(64); + data.append(119); + data.append(-58); + data.append(-67); + data.append(15); + data.append(-62); + data.append(27); + data.append(-111); + data.append(123); + data.append(-13); + data.append(-127); + data.append(-40); + data.append(108); + data.append(58); + data.append(15); + data.append(9); + data.append(3); + data.append(37); + data.append(54); + data.append(-124); + data.append(-83); + data.append(43); + data.append(-40); + data.append(21); + data.append(113); + data.append(-28); + data.append(-2); + data.append(107); + data.append(83); + data.append(-100); + data.append(89); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_u32_2d.cairo b/tests/nodes/unsqueeze_u32_2d.cairo index cd24888af..58743c36b 100644 --- a/tests/nodes/unsqueeze_u32_2d.cairo +++ b/tests/nodes/unsqueeze_u32_2d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_u32_2d/input_0.cairo b/tests/nodes/unsqueeze_u32_2d/input_0.cairo index a22942ee0..5376bee50 100644 --- a/tests/nodes/unsqueeze_u32_2d/input_0.cairo +++ b/tests/nodes/unsqueeze_u32_2d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,13 +8,13 @@ fn input_0() -> Tensor { shape.append(4); let mut data = ArrayTrait::new(); - data.append(118); - data.append(15); - data.append(98); - data.append(189); - data.append(191); - data.append(31); - data.append(239); - data.append(238); + data.append(227); + data.append(225); + data.append(104); + data.append(14); + data.append(245); + data.append(235); + data.append(124); + data.append(11); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_u32_2d/output_0.cairo b/tests/nodes/unsqueeze_u32_2d/output_0.cairo index 4fbfa0f1a..8fa868a2a 100644 --- a/tests/nodes/unsqueeze_u32_2d/output_0.cairo +++ b/tests/nodes/unsqueeze_u32_2d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,13 +11,13 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(118); - data.append(15); - data.append(98); - data.append(189); - data.append(191); - data.append(31); - data.append(239); - data.append(238); + data.append(227); + data.append(225); + data.append(104); + data.append(14); + data.append(245); + data.append(235); + data.append(124); + data.append(11); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_u32_3d.cairo b/tests/nodes/unsqueeze_u32_3d.cairo index 935f2ee61..412e8bca1 100644 --- a/tests/nodes/unsqueeze_u32_3d.cairo +++ b/tests/nodes/unsqueeze_u32_3d.cairo @@ -2,11 +2,11 @@ mod input_0; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/unsqueeze_u32_3d/input_0.cairo b/tests/nodes/unsqueeze_u32_3d/input_0.cairo index 289ae1091..251492db1 100644 --- a/tests/nodes/unsqueeze_u32_3d/input_0.cairo +++ b/tests/nodes/unsqueeze_u32_3d/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,1005 +9,1005 @@ fn input_0() -> Tensor { shape.append(5); let mut data = ArrayTrait::new(); - data.append(7); - data.append(236); - data.append(30); - data.append(159); - data.append(204); - data.append(64); - data.append(206); - data.append(112); - data.append(225); - data.append(238); - data.append(112); + data.append(244); + data.append(201); + data.append(56); + data.append(101); data.append(68); - data.append(30); - data.append(172); - data.append(215); - data.append(205); - data.append(57); - data.append(120); - data.append(219); - data.append(245); - data.append(133); - data.append(39); - data.append(182); - data.append(104); - data.append(207); - data.append(164); - data.append(95); - data.append(93); - data.append(211); - data.append(49); - data.append(47); - data.append(143); - data.append(41); - data.append(42); - data.append(238); - data.append(219); - data.append(150); - data.append(243); - data.append(125); - data.append(195); - data.append(89); - data.append(4); - data.append(231); - data.append(171); - data.append(149); - data.append(190); - data.append(74); - data.append(209); - data.append(150); - data.append(60); + data.append(142); + data.append(75); data.append(101); - data.append(43); - data.append(253); - data.append(78); - data.append(117); + data.append(234); data.append(175); - data.append(194); - data.append(165); - data.append(166); - data.append(139); - data.append(14); - data.append(176); - data.append(62); + data.append(20); + data.append(211); + data.append(90); + data.append(60); + data.append(144); + data.append(145); + data.append(147); + data.append(229); + data.append(26); + data.append(121); + data.append(121); + data.append(134); + data.append(48); + data.append(221); data.append(12); - data.append(52); - data.append(85); - data.append(167); - data.append(107); - data.append(23); - data.append(191); - data.append(230); - data.append(58); - data.append(28); - data.append(93); - data.append(36); - data.append(234); - data.append(200); - data.append(227); - data.append(181); - data.append(232); - data.append(132); - data.append(55); - data.append(80); - data.append(23); - data.append(78); - data.append(102); - data.append(180); - data.append(208); - data.append(169); - data.append(179); - data.append(9); - data.append(184); - data.append(189); - data.append(58); - data.append(181); - data.append(222); - data.append(49); + data.append(15); + data.append(86); + data.append(61); + data.append(108); + data.append(71); + data.append(32); + data.append(142); + data.append(165); + data.append(214); data.append(254); - data.append(152); - data.append(233); + data.append(116); + data.append(196); + data.append(182); + data.append(77); + data.append(155); + data.append(48); data.append(192); - data.append(181); - data.append(118); - data.append(3); - data.append(152); - data.append(80); + data.append(223); + data.append(55); + data.append(47); + data.append(68); + data.append(110); + data.append(72); + data.append(1); + data.append(191); + data.append(50); + data.append(96); + data.append(81); + data.append(166); + data.append(126); data.append(28); - data.append(107); - data.append(85); - data.append(192); - data.append(147); - data.append(151); - data.append(131); - data.append(211); - data.append(76); + data.append(236); + data.append(174); + data.append(169); + data.append(240); + data.append(236); + data.append(134); data.append(233); - data.append(100); - data.append(57); - data.append(57); - data.append(147); - data.append(93); - data.append(172); - data.append(185); - data.append(202); - data.append(135); - data.append(130); - data.append(247); - data.append(14); - data.append(6); - data.append(210); - data.append(242); - data.append(113); - data.append(168); - data.append(68); - data.append(151); + data.append(23); + data.append(66); + data.append(104); + data.append(33); + data.append(101); + data.append(198); data.append(156); - data.append(195); - data.append(141); - data.append(235); - data.append(216); - data.append(179); data.append(11); - data.append(208); - data.append(12); - data.append(169); - data.append(203); - data.append(184); - data.append(242); - data.append(185); - data.append(119); - data.append(141); - data.append(199); - data.append(193); - data.append(180); + data.append(35); + data.append(78); + data.append(140); + data.append(105); + data.append(135); + data.append(40); + data.append(152); + data.append(38); + data.append(46); data.append(188); - data.append(73); - data.append(120); - data.append(229); - data.append(44); - data.append(247); - data.append(87); - data.append(146); - data.append(149); + data.append(54); + data.append(170); + data.append(14); data.append(17); - data.append(195); - data.append(235); - data.append(192); - data.append(196); - data.append(133); - data.append(242); - data.append(164); - data.append(96); - data.append(95); - data.append(64); + data.append(223); + data.append(74); + data.append(0); + data.append(26); + data.append(2); + data.append(112); + data.append(75); + data.append(254); + data.append(136); + data.append(238); + data.append(17); + data.append(103); data.append(191); - data.append(247); - data.append(171); - data.append(100); - data.append(21); - data.append(184); - data.append(215); - data.append(153); - data.append(229); + data.append(219); data.append(33); - data.append(121); - data.append(84); - data.append(186); - data.append(109); - data.append(188); - data.append(63); - data.append(5); - data.append(73); - data.append(120); - data.append(195); - data.append(3); - data.append(12); data.append(152); - data.append(247); - data.append(56); - data.append(224); - data.append(29); - data.append(102); - data.append(190); - data.append(126); + data.append(36); + data.append(10); + data.append(10); data.append(182); - data.append(109); - data.append(143); - data.append(71); - data.append(161); - data.append(235); - data.append(114); - data.append(7); - data.append(177); - data.append(44); - data.append(146); - data.append(126); - data.append(141); - data.append(135); - data.append(3); - data.append(146); - data.append(11); - data.append(38); - data.append(60); - data.append(189); - data.append(227); - data.append(224); - data.append(65); - data.append(176); - data.append(129); - data.append(14); + data.append(137); + data.append(160); + data.append(192); data.append(228); - data.append(61); - data.append(105); - data.append(135); - data.append(114); - data.append(235); - data.append(106); - data.append(7); - data.append(61); - data.append(214); - data.append(91); - data.append(100); - data.append(96); - data.append(81); - data.append(183); - data.append(203); - data.append(235); - data.append(66); - data.append(246); - data.append(245); - data.append(224); - data.append(135); - data.append(167); - data.append(198); - data.append(106); - data.append(87); - data.append(56); - data.append(55); - data.append(247); - data.append(34); - data.append(27); - data.append(225); - data.append(233); - data.append(38); + data.append(139); + data.append(97); + data.append(220); + data.append(217); + data.append(160); data.append(29); - data.append(116); - data.append(181); - data.append(107); - data.append(3); - data.append(11); - data.append(234); - data.append(156); - data.append(95); - data.append(182); - data.append(154); - data.append(106); - data.append(100); + data.append(173); + data.append(36); + data.append(90); + data.append(118); + data.append(39); + data.append(250); + data.append(241); data.append(34); + data.append(9); + data.append(209); + data.append(102); + data.append(122); + data.append(226); + data.append(234); + data.append(123); + data.append(234); + data.append(211); + data.append(26); + data.append(224); + data.append(138); + data.append(0); + data.append(181); data.append(207); - data.append(136); - data.append(100); - data.append(34); + data.append(174); data.append(111); - data.append(116); - data.append(84); - data.append(114); - data.append(208); - data.append(46); - data.append(190); - data.append(190); - data.append(36); - data.append(123); - data.append(169); - data.append(227); - data.append(120); - data.append(106); - data.append(127); - data.append(123); - data.append(89); - data.append(126); - data.append(133); - data.append(13); - data.append(58); - data.append(127); - data.append(82); - data.append(251); - data.append(19); - data.append(127); - data.append(55); - data.append(134); - data.append(55); - data.append(198); - data.append(137); - data.append(232); - data.append(161); - data.append(200); - data.append(129); - data.append(218); - data.append(143); - data.append(177); - data.append(242); - data.append(93); - data.append(38); - data.append(60); - data.append(113); - data.append(49); - data.append(239); - data.append(124); - data.append(197); - data.append(19); - data.append(223); - data.append(172); - data.append(204); - data.append(215); - data.append(81); - data.append(72); + data.append(18); + data.append(29); + data.append(183); + data.append(224); + data.append(153); + data.append(110); + data.append(47); + data.append(193); + data.append(229); + data.append(100); + data.append(147); + data.append(240); data.append(213); - data.append(253); - data.append(223); - data.append(180); - data.append(84); - data.append(237); + data.append(132); + data.append(73); + data.append(146); + data.append(199); + data.append(161); + data.append(90); + data.append(29); + data.append(77); + data.append(56); + data.append(75); + data.append(0); + data.append(127); + data.append(210); + data.append(8); + data.append(217); + data.append(25); + data.append(241); + data.append(98); + data.append(221); + data.append(74); + data.append(226); + data.append(102); data.append(119); - data.append(174); - data.append(188); - data.append(39); - data.append(199); - data.append(91); + data.append(236); + data.append(133); + data.append(66); + data.append(97); + data.append(159); + data.append(125); + data.append(200); + data.append(213); + data.append(23); + data.append(184); + data.append(76); + data.append(162); + data.append(50); + data.append(58); + data.append(220); + data.append(158); + data.append(79); data.append(62); - data.append(205); - data.append(48); - data.append(176); - data.append(83); - data.append(53); - data.append(86); - data.append(59); - data.append(51); - data.append(13); - data.append(4); - data.append(177); - data.append(182); - data.append(52); data.append(91); - data.append(54); - data.append(235); - data.append(237); - data.append(201); - data.append(136); - data.append(12); - data.append(219); - data.append(157); - data.append(15); - data.append(207); - data.append(31); - data.append(6); - data.append(114); - data.append(55); - data.append(32); - data.append(216); - data.append(146); - data.append(186); - data.append(20); - data.append(51); + data.append(112); + data.append(23); + data.append(43); + data.append(178); data.append(19); - data.append(62); - data.append(191); - data.append(66); - data.append(95); - data.append(12); + data.append(221); + data.append(236); + data.append(215); + data.append(16); + data.append(212); + data.append(214); + data.append(85); data.append(60); - data.append(199); - data.append(211); + data.append(31); + data.append(142); data.append(109); - data.append(176); - data.append(106); + data.append(91); + data.append(175); + data.append(143); data.append(41); - data.append(76); - data.append(216); - data.append(96); + data.append(56); + data.append(42); + data.append(27); + data.append(124); + data.append(67); + data.append(252); + data.append(172); + data.append(203); + data.append(99); + data.append(18); + data.append(210); + data.append(207); + data.append(239); + data.append(197); + data.append(237); + data.append(83); + data.append(144); + data.append(192); + data.append(161); + data.append(9); + data.append(244); + data.append(81); + data.append(53); + data.append(221); + data.append(81); + data.append(215); + data.append(222); + data.append(65); + data.append(210); data.append(4); + data.append(51); data.append(71); - data.append(221); - data.append(138); - data.append(40); - data.append(41); - data.append(239); - data.append(39); - data.append(36); - data.append(22); - data.append(137); - data.append(54); - data.append(166); - data.append(196); - data.append(150); + data.append(49); + data.append(165); + data.append(80); + data.append(67); data.append(98); - data.append(208); - data.append(140); - data.append(193); - data.append(99); - data.append(195); + data.append(147); data.append(234); - data.append(179); - data.append(174); + data.append(73); + data.append(57); data.append(170); + data.append(227); + data.append(183); + data.append(213); + data.append(141); + data.append(230); + data.append(122); + data.append(245); + data.append(233); + data.append(42); + data.append(244); + data.append(178); + data.append(133); + data.append(167); + data.append(200); + data.append(117); + data.append(212); + data.append(136); + data.append(209); + data.append(107); + data.append(213); + data.append(74); + data.append(216); + data.append(192); + data.append(229); + data.append(3); + data.append(52); + data.append(48); + data.append(243); + data.append(81); + data.append(12); + data.append(40); + data.append(52); + data.append(207); + data.append(27); + data.append(212); + data.append(133); + data.append(113); + data.append(61); data.append(45); - data.append(182); + data.append(20); + data.append(238); + data.append(90); + data.append(246); + data.append(144); data.append(166); - data.append(48); - data.append(219); - data.append(143); - data.append(143); - data.append(157); - data.append(190); - data.append(86); - data.append(25); - data.append(253); - data.append(197); - data.append(7); - data.append(170); - data.append(49); - data.append(121); + data.append(198); + data.append(21); + data.append(93); + data.append(40); + data.append(235); + data.append(127); + data.append(191); + data.append(85); data.append(135); - data.append(170); - data.append(78); + data.append(252); + data.append(105); + data.append(105); + data.append(117); + data.append(179); + data.append(94); data.append(47); - data.append(217); - data.append(245); - data.append(225); - data.append(90); + data.append(95); + data.append(57); + data.append(83); + data.append(253); + data.append(183); + data.append(116); + data.append(177); + data.append(106); + data.append(159); + data.append(210); + data.append(153); + data.append(52); + data.append(36); + data.append(5); + data.append(116); + data.append(127); + data.append(125); + data.append(58); + data.append(56); + data.append(82); + data.append(64); + data.append(254); + data.append(176); + data.append(17); + data.append(50); + data.append(244); + data.append(66); + data.append(94); + data.append(242); + data.append(52); + data.append(17); + data.append(19); + data.append(115); + data.append(58); data.append(11); - data.append(100); - data.append(69); + data.append(198); + data.append(67); + data.append(216); + data.append(97); + data.append(86); + data.append(82); + data.append(166); + data.append(61); + data.append(65); data.append(83); - data.append(180); - data.append(26); - data.append(84); - data.append(71); - data.append(12); - data.append(161); - data.append(181); - data.append(110); + data.append(229); + data.append(151); + data.append(92); + data.append(243); + data.append(147); + data.append(239); + data.append(46); + data.append(136); + data.append(35); data.append(94); - data.append(200); - data.append(157); - data.append(31); - data.append(26); - data.append(87); - data.append(155); + data.append(45); data.append(143); - data.append(73); data.append(129); - data.append(144); - data.append(243); - data.append(77); - data.append(243); - data.append(225); - data.append(19); - data.append(31); - data.append(33); + data.append(204); + data.append(254); + data.append(239); + data.append(108); + data.append(41); + data.append(166); + data.append(87); + data.append(184); data.append(189); - data.append(75); - data.append(22); - data.append(20); + data.append(217); + data.append(253); + data.append(40); + data.append(243); + data.append(14); + data.append(0); + data.append(91); + data.append(158); data.append(3); - data.append(90); - data.append(45); - data.append(233); - data.append(211); + data.append(190); + data.append(136); + data.append(190); + data.append(111); + data.append(75); + data.append(129); + data.append(10); + data.append(1); + data.append(91); + data.append(168); + data.append(209); + data.append(166); data.append(83); - data.append(123); - data.append(53); - data.append(112); - data.append(60); - data.append(65); - data.append(145); - data.append(29); - data.append(188); - data.append(51); - data.append(11); - data.append(41); - data.append(162); - data.append(177); - data.append(151); - data.append(142); - data.append(125); + data.append(124); data.append(44); - data.append(191); - data.append(133); - data.append(82); + data.append(171); + data.append(206); + data.append(106); data.append(240); - data.append(85); - data.append(143); - data.append(130); - data.append(81); data.append(47); + data.append(225); + data.append(65); + data.append(67); + data.append(55); + data.append(128); + data.append(193); + data.append(132); + data.append(95); + data.append(32); + data.append(197); + data.append(181); + data.append(209); + data.append(247); + data.append(224); + data.append(27); + data.append(144); + data.append(149); + data.append(185); + data.append(97); data.append(30); - data.append(39); + data.append(120); + data.append(228); + data.append(139); + data.append(5); + data.append(112); + data.append(2); + data.append(47); + data.append(141); + data.append(176); + data.append(209); + data.append(232); + data.append(238); + data.append(146); + data.append(120); + data.append(62); + data.append(60); + data.append(137); + data.append(2); + data.append(196); + data.append(159); + data.append(18); + data.append(130); + data.append(67); + data.append(115); + data.append(176); + data.append(136); + data.append(193); + data.append(174); + data.append(128); + data.append(225); + data.append(113); data.append(124); + data.append(102); + data.append(210); + data.append(44); + data.append(28); + data.append(43); data.append(180); - data.append(80); - data.append(85); - data.append(73); - data.append(207); - data.append(75); - data.append(231); + data.append(6); + data.append(96); + data.append(210); + data.append(111); + data.append(179); + data.append(120); + data.append(90); + data.append(117); + data.append(158); + data.append(193); + data.append(133); + data.append(111); + data.append(147); + data.append(62); data.append(148); - data.append(79); - data.append(249); - data.append(185); - data.append(135); - data.append(139); - data.append(8); - data.append(233); - data.append(198); - data.append(230); - data.append(60); - data.append(202); - data.append(125); + data.append(245); + data.append(214); + data.append(254); + data.append(150); + data.append(150); + data.append(85); + data.append(205); + data.append(95); + data.append(4); + data.append(219); data.append(26); - data.append(121); - data.append(144); - data.append(201); - data.append(176); - data.append(114); + data.append(228); + data.append(44); + data.append(220); + data.append(99); + data.append(146); + data.append(197); + data.append(43); + data.append(72); + data.append(142); + data.append(166); data.append(222); - data.append(236); - data.append(76); - data.append(0); - data.append(61); - data.append(143); - data.append(202); + data.append(232); + data.append(97); + data.append(91); + data.append(234); + data.append(8); + data.append(237); + data.append(159); + data.append(51); + data.append(97); + data.append(204); + data.append(234); + data.append(235); + data.append(39); + data.append(243); + data.append(147); + data.append(16); + data.append(141); + data.append(192); + data.append(223); + data.append(186); + data.append(21); + data.append(102); + data.append(221); + data.append(75); + data.append(167); + data.append(159); + data.append(72); + data.append(228); + data.append(131); + data.append(191); + data.append(126); + data.append(112); + data.append(38); data.append(4); - data.append(202); - data.append(84); - data.append(166); - data.append(12); + data.append(10); + data.append(242); + data.append(31); + data.append(81); + data.append(75); + data.append(96); + data.append(135); + data.append(56); + data.append(59); + data.append(147); + data.append(2); + data.append(97); + data.append(185); + data.append(70); data.append(200); - data.append(118); + data.append(43); + data.append(47); + data.append(140); + data.append(180); + data.append(246); + data.append(188); data.append(112); - data.append(153); + data.append(104); + data.append(208); + data.append(92); + data.append(79); + data.append(98); + data.append(87); + data.append(93); + data.append(33); + data.append(45); + data.append(186); + data.append(253); data.append(129); - data.append(210); - data.append(202); - data.append(68); - data.append(50); - data.append(135); - data.append(25); - data.append(81); - data.append(225); - data.append(24); - data.append(179); - data.append(7); - data.append(247); - data.append(212); - data.append(144); - data.append(85); - data.append(97); - data.append(182); - data.append(111); - data.append(60); - data.append(190); + data.append(224); data.append(130); - data.append(221); - data.append(138); - data.append(69); - data.append(177); - data.append(190); - data.append(29); - data.append(32); - data.append(160); - data.append(120); - data.append(102); - data.append(136); - data.append(12); - data.append(48); - data.append(78); - data.append(210); + data.append(247); data.append(233); - data.append(45); - data.append(58); - data.append(30); - data.append(212); data.append(140); - data.append(93); - data.append(85); - data.append(21); - data.append(30); - data.append(159); - data.append(232); - data.append(88); - data.append(108); + data.append(45); + data.append(74); + data.append(8); + data.append(254); + data.append(104); + data.append(193); + data.append(176); + data.append(27); + data.append(166); + data.append(175); + data.append(1); + data.append(115); + data.append(2); + data.append(73); + data.append(240); + data.append(240); data.append(225); - data.append(32); - data.append(223); - data.append(170); - data.append(241); - data.append(133); - data.append(71); - data.append(169); - data.append(212); - data.append(160); - data.append(148); - data.append(206); - data.append(237); - data.append(146); - data.append(34); - data.append(250); - data.append(80); - data.append(42); - data.append(122); - data.append(26); - data.append(250); + data.append(107); + data.append(46); + data.append(176); + data.append(119); + data.append(0); + data.append(221); + data.append(113); + data.append(136); + data.append(129); + data.append(66); data.append(146); - data.append(109); - data.append(149); - data.append(179); - data.append(197); - data.append(135); - data.append(77); - data.append(236); - data.append(156); - data.append(49); - data.append(120); + data.append(172); data.append(1); - data.append(35); data.append(190); - data.append(183); - data.append(238); - data.append(129); - data.append(227); - data.append(31); - data.append(32); - data.append(67); - data.append(34); - data.append(126); - data.append(99); - data.append(65); - data.append(202); - data.append(72); - data.append(102); data.append(213); - data.append(3); - data.append(250); - data.append(124); - data.append(92); + data.append(174); + data.append(123); + data.append(46); + data.append(152); + data.append(234); + data.append(162); + data.append(0); + data.append(76); + data.append(46); + data.append(192); + data.append(118); + data.append(39); + data.append(14); + data.append(150); + data.append(202); + data.append(198); data.append(241); - data.append(240); - data.append(166); - data.append(88); - data.append(215); - data.append(48); - data.append(211); - data.append(178); - data.append(160); - data.append(249); - data.append(204); - data.append(57); - data.append(209); - data.append(193); - data.append(16); - data.append(98); + data.append(197); + data.append(148); data.append(127); - data.append(165); - data.append(248); - data.append(177); - data.append(196); - data.append(182); - data.append(61); - data.append(21); - data.append(202); + data.append(70); + data.append(77); + data.append(192); + data.append(220); + data.append(168); + data.append(54); + data.append(126); + data.append(203); + data.append(124); + data.append(156); + data.append(31); + data.append(240); + data.append(71); data.append(140); - data.append(218); - data.append(249); - data.append(64); + data.append(233); + data.append(142); + data.append(21); + data.append(171); + data.append(92); + data.append(224); + data.append(195); data.append(26); - data.append(15); - data.append(67); - data.append(17); + data.append(180); + data.append(43); + data.append(145); + data.append(198); + data.append(149); + data.append(191); + data.append(234); + data.append(145); + data.append(84); + data.append(210); + data.append(32); + data.append(211); + data.append(84); + data.append(45); + data.append(211); + data.append(140); + data.append(100); + data.append(76); + data.append(112); + data.append(237); + data.append(215); + data.append(93); + data.append(20); + data.append(113); + data.append(18); + data.append(4); + data.append(122); + data.append(98); + data.append(205); + data.append(90); + data.append(237); + data.append(8); + data.append(247); + data.append(74); + data.append(174); + data.append(98); + data.append(142); + data.append(242); + data.append(167); + data.append(247); data.append(221); - data.append(2); data.append(211); - data.append(213); - data.append(74); - data.append(111); - data.append(148); - data.append(171); - data.append(172); - data.append(22); - data.append(197); data.append(16); - data.append(132); - data.append(194); - data.append(175); - data.append(212); - data.append(92); - data.append(37); - data.append(210); - data.append(155); - data.append(113); - data.append(112); - data.append(234); + data.append(121); + data.append(169); + data.append(28); + data.append(42); + data.append(28); + data.append(167); + data.append(145); + data.append(141); + data.append(20); data.append(2); - data.append(215); - data.append(144); - data.append(151); - data.append(149); - data.append(31); - data.append(117); - data.append(205); - data.append(206); - data.append(24); - data.append(26); - data.append(164); - data.append(210); - data.append(14); + data.append(39); data.append(225); - data.append(81); - data.append(206); - data.append(175); - data.append(89); - data.append(189); - data.append(54); data.append(28); - data.append(207); - data.append(226); + data.append(157); + data.append(171); + data.append(179); + data.append(149); + data.append(201); + data.append(37); + data.append(115); + data.append(217); + data.append(62); + data.append(136); + data.append(72); + data.append(142); data.append(39); - data.append(6); - data.append(121); - data.append(91); - data.append(222); - data.append(13); - data.append(5); - data.append(177); - data.append(34); - data.append(111); - data.append(173); - data.append(240); - data.append(41); - data.append(22); - data.append(110); - data.append(208); - data.append(168); - data.append(128); - data.append(175); - data.append(174); - data.append(185); - data.append(226); - data.append(9); - data.append(112); - data.append(243); - data.append(111); - data.append(181); - data.append(6); - data.append(203); - data.append(76); - data.append(238); - data.append(75); - data.append(247); - data.append(8); - data.append(167); - data.append(158); - data.append(85); - data.append(132); + data.append(165); + data.append(218); + data.append(254); + data.append(102); + data.append(84); + data.append(43); data.append(48); - data.append(74); - data.append(121); - data.append(65); - data.append(178); - data.append(45); - data.append(9); - data.append(139); - data.append(49); - data.append(196); - data.append(11); - data.append(37); - data.append(59); + data.append(81); data.append(20); + data.append(20); + data.append(14); + data.append(58); + data.append(166); + data.append(113); + data.append(176); + data.append(245); data.append(80); - data.append(138); - data.append(221); + data.append(61); + data.append(234); + data.append(16); + data.append(214); + data.append(234); + data.append(85); + data.append(225); + data.append(29); + data.append(18); + data.append(54); + data.append(100); + data.append(45); + data.append(47); + data.append(89); + data.append(160); + data.append(87); + data.append(30); data.append(184); - data.append(31); - data.append(39); - data.append(233); - data.append(38); - data.append(20); - data.append(7); - data.append(158); data.append(68); - data.append(172); - data.append(56); - data.append(155); - data.append(156); + data.append(117); + data.append(90); data.append(164); - data.append(168); - data.append(66); - data.append(129); + data.append(145); data.append(169); - data.append(187); - data.append(98); - data.append(193); - data.append(107); - data.append(148); - data.append(83); - data.append(249); - data.append(184); - data.append(86); - data.append(72); - data.append(92); - data.append(4); data.append(84); - data.append(221); - data.append(108); - data.append(100); - data.append(22); - data.append(57); - data.append(163); - data.append(7); - data.append(238); - data.append(183); + data.append(27); + data.append(125); + data.append(232); + data.append(43); + data.append(226); + data.append(115); + data.append(27); + data.append(1); + data.append(17); + data.append(151); + data.append(244); + data.append(118); + data.append(187); + data.append(125); + data.append(202); + data.append(106); + data.append(82); + data.append(239); + data.append(175); + data.append(240); + data.append(126); data.append(161); - data.append(178); - data.append(146); - data.append(229); - data.append(136); - data.append(207); - data.append(186); + data.append(173); + data.append(164); + data.append(121); + data.append(200); + data.append(134); + data.append(176); + data.append(158); data.append(148); - data.append(131); - data.append(136); - data.append(253); - data.append(55); + data.append(70); + data.append(91); data.append(85); + data.append(29); data.append(90); - data.append(114); - data.append(58); - data.append(189); - data.append(92); - data.append(204); - data.append(205); - data.append(190); - data.append(230); - data.append(139); - data.append(165); - data.append(181); - data.append(171); - data.append(77); - data.append(116); - data.append(75); - data.append(49); - data.append(136); - data.append(0); - data.append(67); - data.append(74); - data.append(169); - data.append(16); - data.append(33); - data.append(27); - data.append(239); - data.append(18); - data.append(210); - data.append(207); - data.append(42); - data.append(86); - data.append(163); + data.append(64); + data.append(111); + data.append(11); + data.append(240); + data.append(159); + data.append(143); + data.append(53); + data.append(95); + data.append(94); + data.append(225); + data.append(84); + data.append(36); + data.append(99); data.append(150); - data.append(76); - data.append(127); - data.append(228); - data.append(80); + data.append(231); + data.append(252); + data.append(71); + data.append(129); + data.append(199); + data.append(29); data.append(75); - data.append(174); - data.append(50); - data.append(248); - data.append(108); - data.append(114); - data.append(16); - data.append(31); - data.append(53); - data.append(57); - data.append(25); - data.append(198); + data.append(234); + data.append(124); data.append(51); - data.append(179); + data.append(224); + data.append(58); + data.append(20); + data.append(163); + data.append(40); + data.append(186); + data.append(225); + data.append(43); + data.append(193); + data.append(120); + data.append(162); + data.append(145); + data.append(84); + data.append(20); + data.append(219); + data.append(6); + data.append(14); + data.append(20); + data.append(147); + data.append(119); + data.append(63); + data.append(195); + data.append(5); + data.append(123); + data.append(76); + data.append(130); + data.append(233); + data.append(147); + data.append(195); + data.append(69); + data.append(75); + data.append(122); + data.append(171); + data.append(250); + data.append(79); data.append(124); - data.append(80); - data.append(183); - data.append(48); - data.append(30); + data.append(217); data.append(133); - data.append(122); - data.append(94); - data.append(210); + data.append(137); + data.append(33); + data.append(51); + data.append(30); + data.append(118); + data.append(201); + data.append(246); + data.append(141); + data.append(84); + data.append(0); + data.append(91); + data.append(78); + data.append(92); data.append(250); - data.append(202); - data.append(117); - data.append(15); + data.append(46); + data.append(89); + data.append(144); + data.append(113); + data.append(32); + data.append(116); + data.append(215); data.append(11); - data.append(239); + data.append(58); + data.append(247); + data.append(94); + data.append(86); + data.append(12); + data.append(78); + data.append(5); + data.append(118); data.append(0); - data.append(139); - data.append(246); data.append(93); - data.append(252); - data.append(42); - data.append(117); - data.append(18); - data.append(98); - data.append(183); - data.append(62); - data.append(79); - data.append(203); - data.append(74); - data.append(40); - data.append(129); - data.append(148); - data.append(244); + data.append(167); + data.append(32); + data.append(152); + data.append(229); + data.append(71); data.append(76); - data.append(199); - data.append(134); - data.append(25); - data.append(165); - data.append(203); - data.append(132); - data.append(211); - data.append(212); - data.append(35); - data.append(196); - data.append(3); - data.append(35); - data.append(223); - data.append(111); + data.append(87); + data.append(213); + data.append(76); + data.append(41); + data.append(177); + data.append(193); + data.append(180); data.append(182); + data.append(223); + data.append(8); + data.append(140); + data.append(118); + data.append(209); + data.append(177); + data.append(129); + data.append(100); data.append(83); - data.append(138); - data.append(85); + data.append(56); + data.append(66); + data.append(87); + data.append(157); data.append(191); - data.append(94); - data.append(237); - data.append(62); + data.append(136); + data.append(78); + data.append(232); + data.append(18); + data.append(19); + data.append(215); + data.append(75); + data.append(246); + data.append(0); + data.append(74); data.append(252); - data.append(7); - data.append(197); - data.append(235); - data.append(61); - data.append(203); - data.append(202); - data.append(115); - data.append(11); - data.append(118); - data.append(58); - data.append(184); - data.append(180); - data.append(86); - data.append(207); + data.append(103); + data.append(102); data.append(209); - data.append(49); - data.append(112); - data.append(15); - data.append(227); - data.append(199); + data.append(141); + data.append(21); + data.append(6); + data.append(212); + data.append(74); + data.append(168); + data.append(178); + data.append(75); + data.append(134); + data.append(203); + data.append(150); + data.append(223); + data.append(182); + data.append(223); + data.append(198); + data.append(39); + data.append(146); + data.append(120); data.append(217); - data.append(220); - data.append(236); - data.append(27); - data.append(38); data.append(6); - data.append(211); - data.append(184); + data.append(134); + data.append(54); + data.append(97); + data.append(233); + data.append(10); + data.append(179); + data.append(197); + data.append(167); data.append(64); data.append(63); - data.append(209); - data.append(83); - data.append(72); - data.append(254); - data.append(65); - data.append(249); - data.append(53); - data.append(19); - data.append(99); + data.append(164); + data.append(205); + data.append(145); + data.append(148); + data.append(174); + data.append(13); + data.append(234); + data.append(149); + data.append(50); + data.append(240); + data.append(214); + data.append(223); + data.append(38); + data.append(118); + data.append(106); + data.append(90); + data.append(196); + data.append(167); + data.append(139); + data.append(121); + data.append(193); + data.append(107); + data.append(236); + data.append(156); + data.append(229); + data.append(207); + data.append(227); + data.append(245); + data.append(92); + data.append(70); + data.append(145); + data.append(223); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/unsqueeze_u32_3d/output_0.cairo b/tests/nodes/unsqueeze_u32_3d/output_0.cairo index 2a8cd00dc..a08acd1ef 100644 --- a/tests/nodes/unsqueeze_u32_3d/output_0.cairo +++ b/tests/nodes/unsqueeze_u32_3d/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,1005 +12,1005 @@ fn output_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(7); - data.append(236); - data.append(30); - data.append(159); - data.append(204); - data.append(64); - data.append(206); - data.append(112); - data.append(225); - data.append(238); - data.append(112); + data.append(244); + data.append(201); + data.append(56); + data.append(101); data.append(68); - data.append(30); - data.append(172); - data.append(215); - data.append(205); - data.append(57); - data.append(120); - data.append(219); - data.append(245); - data.append(133); - data.append(39); - data.append(182); - data.append(104); - data.append(207); - data.append(164); - data.append(95); - data.append(93); - data.append(211); - data.append(49); - data.append(47); - data.append(143); - data.append(41); - data.append(42); - data.append(238); - data.append(219); - data.append(150); - data.append(243); - data.append(125); - data.append(195); - data.append(89); - data.append(4); - data.append(231); - data.append(171); - data.append(149); - data.append(190); - data.append(74); - data.append(209); - data.append(150); - data.append(60); + data.append(142); + data.append(75); data.append(101); - data.append(43); - data.append(253); - data.append(78); - data.append(117); + data.append(234); data.append(175); - data.append(194); - data.append(165); - data.append(166); - data.append(139); - data.append(14); - data.append(176); - data.append(62); + data.append(20); + data.append(211); + data.append(90); + data.append(60); + data.append(144); + data.append(145); + data.append(147); + data.append(229); + data.append(26); + data.append(121); + data.append(121); + data.append(134); + data.append(48); + data.append(221); data.append(12); - data.append(52); - data.append(85); - data.append(167); - data.append(107); - data.append(23); - data.append(191); - data.append(230); - data.append(58); - data.append(28); - data.append(93); - data.append(36); - data.append(234); - data.append(200); - data.append(227); - data.append(181); - data.append(232); - data.append(132); - data.append(55); - data.append(80); - data.append(23); - data.append(78); - data.append(102); - data.append(180); - data.append(208); - data.append(169); - data.append(179); - data.append(9); - data.append(184); - data.append(189); - data.append(58); - data.append(181); - data.append(222); - data.append(49); + data.append(15); + data.append(86); + data.append(61); + data.append(108); + data.append(71); + data.append(32); + data.append(142); + data.append(165); + data.append(214); data.append(254); - data.append(152); - data.append(233); + data.append(116); + data.append(196); + data.append(182); + data.append(77); + data.append(155); + data.append(48); data.append(192); - data.append(181); - data.append(118); - data.append(3); - data.append(152); - data.append(80); + data.append(223); + data.append(55); + data.append(47); + data.append(68); + data.append(110); + data.append(72); + data.append(1); + data.append(191); + data.append(50); + data.append(96); + data.append(81); + data.append(166); + data.append(126); data.append(28); - data.append(107); - data.append(85); - data.append(192); - data.append(147); - data.append(151); - data.append(131); - data.append(211); - data.append(76); + data.append(236); + data.append(174); + data.append(169); + data.append(240); + data.append(236); + data.append(134); data.append(233); - data.append(100); - data.append(57); - data.append(57); - data.append(147); - data.append(93); - data.append(172); - data.append(185); - data.append(202); - data.append(135); - data.append(130); - data.append(247); - data.append(14); - data.append(6); - data.append(210); - data.append(242); - data.append(113); - data.append(168); - data.append(68); - data.append(151); + data.append(23); + data.append(66); + data.append(104); + data.append(33); + data.append(101); + data.append(198); data.append(156); - data.append(195); - data.append(141); - data.append(235); - data.append(216); - data.append(179); data.append(11); - data.append(208); - data.append(12); - data.append(169); - data.append(203); - data.append(184); - data.append(242); - data.append(185); - data.append(119); - data.append(141); - data.append(199); - data.append(193); - data.append(180); + data.append(35); + data.append(78); + data.append(140); + data.append(105); + data.append(135); + data.append(40); + data.append(152); + data.append(38); + data.append(46); data.append(188); - data.append(73); - data.append(120); - data.append(229); - data.append(44); - data.append(247); - data.append(87); - data.append(146); - data.append(149); + data.append(54); + data.append(170); + data.append(14); data.append(17); - data.append(195); - data.append(235); - data.append(192); - data.append(196); - data.append(133); - data.append(242); - data.append(164); - data.append(96); - data.append(95); - data.append(64); + data.append(223); + data.append(74); + data.append(0); + data.append(26); + data.append(2); + data.append(112); + data.append(75); + data.append(254); + data.append(136); + data.append(238); + data.append(17); + data.append(103); data.append(191); - data.append(247); - data.append(171); - data.append(100); - data.append(21); - data.append(184); - data.append(215); - data.append(153); - data.append(229); + data.append(219); data.append(33); - data.append(121); - data.append(84); - data.append(186); - data.append(109); - data.append(188); - data.append(63); - data.append(5); - data.append(73); - data.append(120); - data.append(195); - data.append(3); - data.append(12); data.append(152); - data.append(247); - data.append(56); - data.append(224); - data.append(29); - data.append(102); - data.append(190); - data.append(126); + data.append(36); + data.append(10); + data.append(10); data.append(182); - data.append(109); - data.append(143); - data.append(71); - data.append(161); - data.append(235); - data.append(114); - data.append(7); - data.append(177); - data.append(44); - data.append(146); - data.append(126); - data.append(141); - data.append(135); - data.append(3); - data.append(146); - data.append(11); - data.append(38); - data.append(60); - data.append(189); - data.append(227); - data.append(224); - data.append(65); - data.append(176); - data.append(129); - data.append(14); + data.append(137); + data.append(160); + data.append(192); data.append(228); - data.append(61); - data.append(105); - data.append(135); - data.append(114); - data.append(235); - data.append(106); - data.append(7); - data.append(61); - data.append(214); - data.append(91); - data.append(100); - data.append(96); - data.append(81); - data.append(183); - data.append(203); - data.append(235); - data.append(66); - data.append(246); - data.append(245); - data.append(224); - data.append(135); - data.append(167); - data.append(198); - data.append(106); - data.append(87); - data.append(56); - data.append(55); - data.append(247); - data.append(34); - data.append(27); - data.append(225); - data.append(233); - data.append(38); + data.append(139); + data.append(97); + data.append(220); + data.append(217); + data.append(160); data.append(29); - data.append(116); - data.append(181); - data.append(107); - data.append(3); - data.append(11); - data.append(234); - data.append(156); - data.append(95); - data.append(182); - data.append(154); - data.append(106); - data.append(100); + data.append(173); + data.append(36); + data.append(90); + data.append(118); + data.append(39); + data.append(250); + data.append(241); data.append(34); + data.append(9); + data.append(209); + data.append(102); + data.append(122); + data.append(226); + data.append(234); + data.append(123); + data.append(234); + data.append(211); + data.append(26); + data.append(224); + data.append(138); + data.append(0); + data.append(181); data.append(207); - data.append(136); - data.append(100); - data.append(34); + data.append(174); data.append(111); - data.append(116); - data.append(84); - data.append(114); - data.append(208); - data.append(46); - data.append(190); - data.append(190); - data.append(36); - data.append(123); - data.append(169); - data.append(227); - data.append(120); - data.append(106); - data.append(127); - data.append(123); - data.append(89); - data.append(126); - data.append(133); - data.append(13); - data.append(58); - data.append(127); - data.append(82); - data.append(251); - data.append(19); - data.append(127); - data.append(55); - data.append(134); - data.append(55); - data.append(198); - data.append(137); - data.append(232); - data.append(161); - data.append(200); - data.append(129); - data.append(218); - data.append(143); - data.append(177); - data.append(242); - data.append(93); - data.append(38); - data.append(60); - data.append(113); - data.append(49); - data.append(239); - data.append(124); - data.append(197); - data.append(19); - data.append(223); - data.append(172); - data.append(204); - data.append(215); - data.append(81); - data.append(72); + data.append(18); + data.append(29); + data.append(183); + data.append(224); + data.append(153); + data.append(110); + data.append(47); + data.append(193); + data.append(229); + data.append(100); + data.append(147); + data.append(240); data.append(213); - data.append(253); - data.append(223); - data.append(180); - data.append(84); - data.append(237); + data.append(132); + data.append(73); + data.append(146); + data.append(199); + data.append(161); + data.append(90); + data.append(29); + data.append(77); + data.append(56); + data.append(75); + data.append(0); + data.append(127); + data.append(210); + data.append(8); + data.append(217); + data.append(25); + data.append(241); + data.append(98); + data.append(221); + data.append(74); + data.append(226); + data.append(102); data.append(119); - data.append(174); - data.append(188); - data.append(39); - data.append(199); - data.append(91); + data.append(236); + data.append(133); + data.append(66); + data.append(97); + data.append(159); + data.append(125); + data.append(200); + data.append(213); + data.append(23); + data.append(184); + data.append(76); + data.append(162); + data.append(50); + data.append(58); + data.append(220); + data.append(158); + data.append(79); data.append(62); - data.append(205); - data.append(48); - data.append(176); - data.append(83); - data.append(53); - data.append(86); - data.append(59); - data.append(51); - data.append(13); - data.append(4); - data.append(177); - data.append(182); - data.append(52); data.append(91); - data.append(54); - data.append(235); - data.append(237); - data.append(201); - data.append(136); - data.append(12); - data.append(219); - data.append(157); - data.append(15); - data.append(207); - data.append(31); - data.append(6); - data.append(114); - data.append(55); - data.append(32); - data.append(216); - data.append(146); - data.append(186); - data.append(20); - data.append(51); + data.append(112); + data.append(23); + data.append(43); + data.append(178); data.append(19); - data.append(62); - data.append(191); - data.append(66); - data.append(95); - data.append(12); + data.append(221); + data.append(236); + data.append(215); + data.append(16); + data.append(212); + data.append(214); + data.append(85); data.append(60); - data.append(199); - data.append(211); + data.append(31); + data.append(142); data.append(109); - data.append(176); - data.append(106); + data.append(91); + data.append(175); + data.append(143); data.append(41); - data.append(76); - data.append(216); - data.append(96); + data.append(56); + data.append(42); + data.append(27); + data.append(124); + data.append(67); + data.append(252); + data.append(172); + data.append(203); + data.append(99); + data.append(18); + data.append(210); + data.append(207); + data.append(239); + data.append(197); + data.append(237); + data.append(83); + data.append(144); + data.append(192); + data.append(161); + data.append(9); + data.append(244); + data.append(81); + data.append(53); + data.append(221); + data.append(81); + data.append(215); + data.append(222); + data.append(65); + data.append(210); data.append(4); + data.append(51); data.append(71); - data.append(221); - data.append(138); - data.append(40); - data.append(41); - data.append(239); - data.append(39); - data.append(36); - data.append(22); - data.append(137); - data.append(54); - data.append(166); - data.append(196); - data.append(150); + data.append(49); + data.append(165); + data.append(80); + data.append(67); data.append(98); - data.append(208); - data.append(140); - data.append(193); - data.append(99); - data.append(195); + data.append(147); data.append(234); - data.append(179); - data.append(174); + data.append(73); + data.append(57); data.append(170); + data.append(227); + data.append(183); + data.append(213); + data.append(141); + data.append(230); + data.append(122); + data.append(245); + data.append(233); + data.append(42); + data.append(244); + data.append(178); + data.append(133); + data.append(167); + data.append(200); + data.append(117); + data.append(212); + data.append(136); + data.append(209); + data.append(107); + data.append(213); + data.append(74); + data.append(216); + data.append(192); + data.append(229); + data.append(3); + data.append(52); + data.append(48); + data.append(243); + data.append(81); + data.append(12); + data.append(40); + data.append(52); + data.append(207); + data.append(27); + data.append(212); + data.append(133); + data.append(113); + data.append(61); data.append(45); - data.append(182); + data.append(20); + data.append(238); + data.append(90); + data.append(246); + data.append(144); data.append(166); - data.append(48); - data.append(219); - data.append(143); - data.append(143); - data.append(157); - data.append(190); - data.append(86); - data.append(25); - data.append(253); - data.append(197); - data.append(7); - data.append(170); - data.append(49); - data.append(121); + data.append(198); + data.append(21); + data.append(93); + data.append(40); + data.append(235); + data.append(127); + data.append(191); + data.append(85); data.append(135); - data.append(170); - data.append(78); + data.append(252); + data.append(105); + data.append(105); + data.append(117); + data.append(179); + data.append(94); data.append(47); - data.append(217); - data.append(245); - data.append(225); - data.append(90); + data.append(95); + data.append(57); + data.append(83); + data.append(253); + data.append(183); + data.append(116); + data.append(177); + data.append(106); + data.append(159); + data.append(210); + data.append(153); + data.append(52); + data.append(36); + data.append(5); + data.append(116); + data.append(127); + data.append(125); + data.append(58); + data.append(56); + data.append(82); + data.append(64); + data.append(254); + data.append(176); + data.append(17); + data.append(50); + data.append(244); + data.append(66); + data.append(94); + data.append(242); + data.append(52); + data.append(17); + data.append(19); + data.append(115); + data.append(58); data.append(11); - data.append(100); - data.append(69); + data.append(198); + data.append(67); + data.append(216); + data.append(97); + data.append(86); + data.append(82); + data.append(166); + data.append(61); + data.append(65); data.append(83); - data.append(180); - data.append(26); - data.append(84); - data.append(71); - data.append(12); - data.append(161); - data.append(181); - data.append(110); + data.append(229); + data.append(151); + data.append(92); + data.append(243); + data.append(147); + data.append(239); + data.append(46); + data.append(136); + data.append(35); data.append(94); - data.append(200); - data.append(157); - data.append(31); - data.append(26); - data.append(87); - data.append(155); + data.append(45); data.append(143); - data.append(73); data.append(129); - data.append(144); - data.append(243); - data.append(77); - data.append(243); - data.append(225); - data.append(19); - data.append(31); - data.append(33); + data.append(204); + data.append(254); + data.append(239); + data.append(108); + data.append(41); + data.append(166); + data.append(87); + data.append(184); data.append(189); - data.append(75); - data.append(22); - data.append(20); + data.append(217); + data.append(253); + data.append(40); + data.append(243); + data.append(14); + data.append(0); + data.append(91); + data.append(158); data.append(3); - data.append(90); - data.append(45); - data.append(233); - data.append(211); + data.append(190); + data.append(136); + data.append(190); + data.append(111); + data.append(75); + data.append(129); + data.append(10); + data.append(1); + data.append(91); + data.append(168); + data.append(209); + data.append(166); data.append(83); - data.append(123); - data.append(53); - data.append(112); - data.append(60); - data.append(65); - data.append(145); - data.append(29); - data.append(188); - data.append(51); - data.append(11); - data.append(41); - data.append(162); - data.append(177); - data.append(151); - data.append(142); - data.append(125); + data.append(124); data.append(44); - data.append(191); - data.append(133); - data.append(82); + data.append(171); + data.append(206); + data.append(106); data.append(240); - data.append(85); - data.append(143); - data.append(130); - data.append(81); data.append(47); + data.append(225); + data.append(65); + data.append(67); + data.append(55); + data.append(128); + data.append(193); + data.append(132); + data.append(95); + data.append(32); + data.append(197); + data.append(181); + data.append(209); + data.append(247); + data.append(224); + data.append(27); + data.append(144); + data.append(149); + data.append(185); + data.append(97); data.append(30); - data.append(39); + data.append(120); + data.append(228); + data.append(139); + data.append(5); + data.append(112); + data.append(2); + data.append(47); + data.append(141); + data.append(176); + data.append(209); + data.append(232); + data.append(238); + data.append(146); + data.append(120); + data.append(62); + data.append(60); + data.append(137); + data.append(2); + data.append(196); + data.append(159); + data.append(18); + data.append(130); + data.append(67); + data.append(115); + data.append(176); + data.append(136); + data.append(193); + data.append(174); + data.append(128); + data.append(225); + data.append(113); data.append(124); + data.append(102); + data.append(210); + data.append(44); + data.append(28); + data.append(43); data.append(180); - data.append(80); - data.append(85); - data.append(73); - data.append(207); - data.append(75); - data.append(231); + data.append(6); + data.append(96); + data.append(210); + data.append(111); + data.append(179); + data.append(120); + data.append(90); + data.append(117); + data.append(158); + data.append(193); + data.append(133); + data.append(111); + data.append(147); + data.append(62); data.append(148); - data.append(79); - data.append(249); - data.append(185); - data.append(135); - data.append(139); - data.append(8); - data.append(233); - data.append(198); - data.append(230); - data.append(60); - data.append(202); - data.append(125); + data.append(245); + data.append(214); + data.append(254); + data.append(150); + data.append(150); + data.append(85); + data.append(205); + data.append(95); + data.append(4); + data.append(219); data.append(26); - data.append(121); - data.append(144); - data.append(201); - data.append(176); - data.append(114); + data.append(228); + data.append(44); + data.append(220); + data.append(99); + data.append(146); + data.append(197); + data.append(43); + data.append(72); + data.append(142); + data.append(166); data.append(222); - data.append(236); - data.append(76); - data.append(0); - data.append(61); - data.append(143); - data.append(202); + data.append(232); + data.append(97); + data.append(91); + data.append(234); + data.append(8); + data.append(237); + data.append(159); + data.append(51); + data.append(97); + data.append(204); + data.append(234); + data.append(235); + data.append(39); + data.append(243); + data.append(147); + data.append(16); + data.append(141); + data.append(192); + data.append(223); + data.append(186); + data.append(21); + data.append(102); + data.append(221); + data.append(75); + data.append(167); + data.append(159); + data.append(72); + data.append(228); + data.append(131); + data.append(191); + data.append(126); + data.append(112); + data.append(38); data.append(4); - data.append(202); - data.append(84); - data.append(166); - data.append(12); + data.append(10); + data.append(242); + data.append(31); + data.append(81); + data.append(75); + data.append(96); + data.append(135); + data.append(56); + data.append(59); + data.append(147); + data.append(2); + data.append(97); + data.append(185); + data.append(70); data.append(200); - data.append(118); + data.append(43); + data.append(47); + data.append(140); + data.append(180); + data.append(246); + data.append(188); data.append(112); - data.append(153); + data.append(104); + data.append(208); + data.append(92); + data.append(79); + data.append(98); + data.append(87); + data.append(93); + data.append(33); + data.append(45); + data.append(186); + data.append(253); data.append(129); - data.append(210); - data.append(202); - data.append(68); - data.append(50); - data.append(135); - data.append(25); - data.append(81); - data.append(225); - data.append(24); - data.append(179); - data.append(7); - data.append(247); - data.append(212); - data.append(144); - data.append(85); - data.append(97); - data.append(182); - data.append(111); - data.append(60); - data.append(190); + data.append(224); data.append(130); - data.append(221); - data.append(138); - data.append(69); - data.append(177); - data.append(190); - data.append(29); - data.append(32); - data.append(160); - data.append(120); - data.append(102); - data.append(136); - data.append(12); - data.append(48); - data.append(78); - data.append(210); + data.append(247); data.append(233); - data.append(45); - data.append(58); - data.append(30); - data.append(212); data.append(140); - data.append(93); - data.append(85); - data.append(21); - data.append(30); - data.append(159); - data.append(232); - data.append(88); - data.append(108); + data.append(45); + data.append(74); + data.append(8); + data.append(254); + data.append(104); + data.append(193); + data.append(176); + data.append(27); + data.append(166); + data.append(175); + data.append(1); + data.append(115); + data.append(2); + data.append(73); + data.append(240); + data.append(240); data.append(225); - data.append(32); - data.append(223); - data.append(170); - data.append(241); - data.append(133); - data.append(71); - data.append(169); - data.append(212); - data.append(160); - data.append(148); - data.append(206); - data.append(237); - data.append(146); - data.append(34); - data.append(250); - data.append(80); - data.append(42); - data.append(122); - data.append(26); - data.append(250); + data.append(107); + data.append(46); + data.append(176); + data.append(119); + data.append(0); + data.append(221); + data.append(113); + data.append(136); + data.append(129); + data.append(66); data.append(146); - data.append(109); - data.append(149); - data.append(179); - data.append(197); - data.append(135); - data.append(77); - data.append(236); - data.append(156); - data.append(49); - data.append(120); + data.append(172); data.append(1); - data.append(35); data.append(190); - data.append(183); - data.append(238); - data.append(129); - data.append(227); - data.append(31); - data.append(32); - data.append(67); - data.append(34); - data.append(126); - data.append(99); - data.append(65); - data.append(202); - data.append(72); - data.append(102); data.append(213); - data.append(3); - data.append(250); - data.append(124); - data.append(92); + data.append(174); + data.append(123); + data.append(46); + data.append(152); + data.append(234); + data.append(162); + data.append(0); + data.append(76); + data.append(46); + data.append(192); + data.append(118); + data.append(39); + data.append(14); + data.append(150); + data.append(202); + data.append(198); data.append(241); - data.append(240); - data.append(166); - data.append(88); - data.append(215); - data.append(48); - data.append(211); - data.append(178); - data.append(160); - data.append(249); - data.append(204); - data.append(57); - data.append(209); - data.append(193); - data.append(16); - data.append(98); + data.append(197); + data.append(148); data.append(127); - data.append(165); - data.append(248); - data.append(177); - data.append(196); - data.append(182); - data.append(61); - data.append(21); - data.append(202); + data.append(70); + data.append(77); + data.append(192); + data.append(220); + data.append(168); + data.append(54); + data.append(126); + data.append(203); + data.append(124); + data.append(156); + data.append(31); + data.append(240); + data.append(71); data.append(140); - data.append(218); - data.append(249); - data.append(64); + data.append(233); + data.append(142); + data.append(21); + data.append(171); + data.append(92); + data.append(224); + data.append(195); data.append(26); - data.append(15); - data.append(67); - data.append(17); + data.append(180); + data.append(43); + data.append(145); + data.append(198); + data.append(149); + data.append(191); + data.append(234); + data.append(145); + data.append(84); + data.append(210); + data.append(32); + data.append(211); + data.append(84); + data.append(45); + data.append(211); + data.append(140); + data.append(100); + data.append(76); + data.append(112); + data.append(237); + data.append(215); + data.append(93); + data.append(20); + data.append(113); + data.append(18); + data.append(4); + data.append(122); + data.append(98); + data.append(205); + data.append(90); + data.append(237); + data.append(8); + data.append(247); + data.append(74); + data.append(174); + data.append(98); + data.append(142); + data.append(242); + data.append(167); + data.append(247); data.append(221); - data.append(2); data.append(211); - data.append(213); - data.append(74); - data.append(111); - data.append(148); - data.append(171); - data.append(172); - data.append(22); - data.append(197); data.append(16); - data.append(132); - data.append(194); - data.append(175); - data.append(212); - data.append(92); - data.append(37); - data.append(210); - data.append(155); - data.append(113); - data.append(112); - data.append(234); + data.append(121); + data.append(169); + data.append(28); + data.append(42); + data.append(28); + data.append(167); + data.append(145); + data.append(141); + data.append(20); data.append(2); - data.append(215); - data.append(144); - data.append(151); - data.append(149); - data.append(31); - data.append(117); - data.append(205); - data.append(206); - data.append(24); - data.append(26); - data.append(164); - data.append(210); - data.append(14); + data.append(39); data.append(225); - data.append(81); - data.append(206); - data.append(175); - data.append(89); - data.append(189); - data.append(54); data.append(28); - data.append(207); - data.append(226); + data.append(157); + data.append(171); + data.append(179); + data.append(149); + data.append(201); + data.append(37); + data.append(115); + data.append(217); + data.append(62); + data.append(136); + data.append(72); + data.append(142); data.append(39); - data.append(6); - data.append(121); - data.append(91); - data.append(222); - data.append(13); - data.append(5); - data.append(177); - data.append(34); - data.append(111); - data.append(173); - data.append(240); - data.append(41); - data.append(22); - data.append(110); - data.append(208); - data.append(168); - data.append(128); - data.append(175); - data.append(174); - data.append(185); - data.append(226); - data.append(9); - data.append(112); - data.append(243); - data.append(111); - data.append(181); - data.append(6); - data.append(203); - data.append(76); - data.append(238); - data.append(75); - data.append(247); - data.append(8); - data.append(167); - data.append(158); - data.append(85); - data.append(132); + data.append(165); + data.append(218); + data.append(254); + data.append(102); + data.append(84); + data.append(43); data.append(48); - data.append(74); - data.append(121); - data.append(65); - data.append(178); - data.append(45); - data.append(9); - data.append(139); - data.append(49); - data.append(196); - data.append(11); - data.append(37); - data.append(59); + data.append(81); data.append(20); + data.append(20); + data.append(14); + data.append(58); + data.append(166); + data.append(113); + data.append(176); + data.append(245); data.append(80); - data.append(138); - data.append(221); + data.append(61); + data.append(234); + data.append(16); + data.append(214); + data.append(234); + data.append(85); + data.append(225); + data.append(29); + data.append(18); + data.append(54); + data.append(100); + data.append(45); + data.append(47); + data.append(89); + data.append(160); + data.append(87); + data.append(30); data.append(184); - data.append(31); - data.append(39); - data.append(233); - data.append(38); - data.append(20); - data.append(7); - data.append(158); data.append(68); - data.append(172); - data.append(56); - data.append(155); - data.append(156); + data.append(117); + data.append(90); data.append(164); - data.append(168); - data.append(66); - data.append(129); + data.append(145); data.append(169); - data.append(187); - data.append(98); - data.append(193); - data.append(107); - data.append(148); - data.append(83); - data.append(249); - data.append(184); - data.append(86); - data.append(72); - data.append(92); - data.append(4); data.append(84); - data.append(221); - data.append(108); - data.append(100); - data.append(22); - data.append(57); - data.append(163); - data.append(7); - data.append(238); - data.append(183); + data.append(27); + data.append(125); + data.append(232); + data.append(43); + data.append(226); + data.append(115); + data.append(27); + data.append(1); + data.append(17); + data.append(151); + data.append(244); + data.append(118); + data.append(187); + data.append(125); + data.append(202); + data.append(106); + data.append(82); + data.append(239); + data.append(175); + data.append(240); + data.append(126); data.append(161); - data.append(178); - data.append(146); - data.append(229); - data.append(136); - data.append(207); - data.append(186); + data.append(173); + data.append(164); + data.append(121); + data.append(200); + data.append(134); + data.append(176); + data.append(158); data.append(148); - data.append(131); - data.append(136); - data.append(253); - data.append(55); + data.append(70); + data.append(91); data.append(85); + data.append(29); data.append(90); - data.append(114); - data.append(58); - data.append(189); - data.append(92); - data.append(204); - data.append(205); - data.append(190); - data.append(230); - data.append(139); - data.append(165); - data.append(181); - data.append(171); - data.append(77); - data.append(116); - data.append(75); - data.append(49); - data.append(136); - data.append(0); - data.append(67); - data.append(74); - data.append(169); - data.append(16); - data.append(33); - data.append(27); - data.append(239); - data.append(18); - data.append(210); - data.append(207); - data.append(42); - data.append(86); - data.append(163); + data.append(64); + data.append(111); + data.append(11); + data.append(240); + data.append(159); + data.append(143); + data.append(53); + data.append(95); + data.append(94); + data.append(225); + data.append(84); + data.append(36); + data.append(99); data.append(150); - data.append(76); - data.append(127); - data.append(228); - data.append(80); + data.append(231); + data.append(252); + data.append(71); + data.append(129); + data.append(199); + data.append(29); data.append(75); - data.append(174); - data.append(50); - data.append(248); - data.append(108); - data.append(114); - data.append(16); - data.append(31); - data.append(53); - data.append(57); - data.append(25); - data.append(198); + data.append(234); + data.append(124); data.append(51); - data.append(179); + data.append(224); + data.append(58); + data.append(20); + data.append(163); + data.append(40); + data.append(186); + data.append(225); + data.append(43); + data.append(193); + data.append(120); + data.append(162); + data.append(145); + data.append(84); + data.append(20); + data.append(219); + data.append(6); + data.append(14); + data.append(20); + data.append(147); + data.append(119); + data.append(63); + data.append(195); + data.append(5); + data.append(123); + data.append(76); + data.append(130); + data.append(233); + data.append(147); + data.append(195); + data.append(69); + data.append(75); + data.append(122); + data.append(171); + data.append(250); + data.append(79); data.append(124); - data.append(80); - data.append(183); - data.append(48); - data.append(30); + data.append(217); data.append(133); - data.append(122); - data.append(94); - data.append(210); + data.append(137); + data.append(33); + data.append(51); + data.append(30); + data.append(118); + data.append(201); + data.append(246); + data.append(141); + data.append(84); + data.append(0); + data.append(91); + data.append(78); + data.append(92); data.append(250); - data.append(202); - data.append(117); - data.append(15); + data.append(46); + data.append(89); + data.append(144); + data.append(113); + data.append(32); + data.append(116); + data.append(215); data.append(11); - data.append(239); + data.append(58); + data.append(247); + data.append(94); + data.append(86); + data.append(12); + data.append(78); + data.append(5); + data.append(118); data.append(0); - data.append(139); - data.append(246); data.append(93); - data.append(252); - data.append(42); - data.append(117); - data.append(18); - data.append(98); - data.append(183); - data.append(62); - data.append(79); - data.append(203); - data.append(74); - data.append(40); - data.append(129); - data.append(148); - data.append(244); + data.append(167); + data.append(32); + data.append(152); + data.append(229); + data.append(71); data.append(76); - data.append(199); - data.append(134); - data.append(25); - data.append(165); - data.append(203); - data.append(132); - data.append(211); - data.append(212); - data.append(35); - data.append(196); - data.append(3); - data.append(35); - data.append(223); - data.append(111); + data.append(87); + data.append(213); + data.append(76); + data.append(41); + data.append(177); + data.append(193); + data.append(180); data.append(182); + data.append(223); + data.append(8); + data.append(140); + data.append(118); + data.append(209); + data.append(177); + data.append(129); + data.append(100); data.append(83); - data.append(138); - data.append(85); + data.append(56); + data.append(66); + data.append(87); + data.append(157); data.append(191); - data.append(94); - data.append(237); - data.append(62); + data.append(136); + data.append(78); + data.append(232); + data.append(18); + data.append(19); + data.append(215); + data.append(75); + data.append(246); + data.append(0); + data.append(74); data.append(252); - data.append(7); - data.append(197); - data.append(235); - data.append(61); - data.append(203); - data.append(202); - data.append(115); - data.append(11); - data.append(118); - data.append(58); - data.append(184); - data.append(180); - data.append(86); - data.append(207); + data.append(103); + data.append(102); data.append(209); - data.append(49); - data.append(112); - data.append(15); - data.append(227); - data.append(199); + data.append(141); + data.append(21); + data.append(6); + data.append(212); + data.append(74); + data.append(168); + data.append(178); + data.append(75); + data.append(134); + data.append(203); + data.append(150); + data.append(223); + data.append(182); + data.append(223); + data.append(198); + data.append(39); + data.append(146); + data.append(120); data.append(217); - data.append(220); - data.append(236); - data.append(27); - data.append(38); data.append(6); - data.append(211); - data.append(184); + data.append(134); + data.append(54); + data.append(97); + data.append(233); + data.append(10); + data.append(179); + data.append(197); + data.append(167); data.append(64); data.append(63); - data.append(209); - data.append(83); - data.append(72); - data.append(254); - data.append(65); - data.append(249); - data.append(53); - data.append(19); - data.append(99); + data.append(164); + data.append(205); + data.append(145); + data.append(148); + data.append(174); + data.append(13); + data.append(234); + data.append(149); + data.append(50); + data.append(240); + data.append(214); + data.append(223); + data.append(38); + data.append(118); + data.append(106); + data.append(90); + data.append(196); + data.append(167); + data.append(139); + data.append(121); + data.append(193); + data.append(107); + data.append(236); + data.append(156); + data.append(229); + data.append(207); + data.append(227); + data.append(245); + data.append(92); + data.append(70); + data.append(145); + data.append(223); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp16x16.cairo b/tests/nodes/where_fp16x16.cairo index b65e95c24..05467ef51 100644 --- a/tests/nodes/where_fp16x16.cairo +++ b/tests/nodes/where_fp16x16.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_fp16x16() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_fp16x16/input_0.cairo b/tests/nodes/where_fp16x16/input_0.cairo index ee06063e2..37dc9696d 100644 --- a/tests/nodes/where_fp16x16/input_0.cairo +++ b/tests/nodes/where_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,11 +10,15 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); @@ -25,18 +28,14 @@ fn input_0() -> Tensor { data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp16x16/input_1.cairo b/tests/nodes/where_fp16x16/input_1.cairo index f42dba3ed..19e2b5469 100644 --- a/tests/nodes/where_fp16x16/input_1.cairo +++ b/tests/nodes/where_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp16x16/input_2.cairo b/tests/nodes/where_fp16x16/input_2.cairo index 453b5da57..e7e908313 100644 --- a/tests/nodes/where_fp16x16/input_2.cairo +++ b/tests/nodes/where_fp16x16/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_2() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp16x16/output_0.cairo b/tests/nodes/where_fp16x16/output_0.cairo index 40968fb33..6eef5e80e 100644 --- a/tests/nodes/where_fp16x16/output_0.cairo +++ b/tests/nodes/where_fp16x16/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 327680, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 196608, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 262144, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 262144, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp16x16_broadcast.cairo b/tests/nodes/where_fp16x16_broadcast.cairo index eeef02e74..b0d9b9faa 100644 --- a/tests/nodes/where_fp16x16_broadcast.cairo +++ b/tests/nodes/where_fp16x16_broadcast.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; use orion::operators::tensor::FP16x16TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_fp16x16_broadcast() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_fp16x16_broadcast/input_0.cairo b/tests/nodes/where_fp16x16_broadcast/input_0.cairo index d56fc3b87..9f7ee38c8 100644 --- a/tests/nodes/where_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/where_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); diff --git a/tests/nodes/where_fp16x16_broadcast/input_1.cairo b/tests/nodes/where_fp16x16_broadcast/input_1.cairo index cea4ec9b5..f2b4ef8c6 100644 --- a/tests/nodes/where_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/where_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 262144, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); - data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 196608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp16x16_broadcast/input_2.cairo b/tests/nodes/where_fp16x16_broadcast/input_2.cairo index 750ea3244..d43a6278a 100644 --- a/tests/nodes/where_fp16x16_broadcast/input_2.cairo +++ b/tests/nodes/where_fp16x16_broadcast/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_2() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp16x16_broadcast/output_0.cairo b/tests/nodes/where_fp16x16_broadcast/output_0.cairo index e775dd332..3b8cbbcf1 100644 --- a/tests/nodes/where_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/where_fp16x16_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 327680, sign: false }); data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23.cairo b/tests/nodes/where_fp8x23.cairo index 3c4835582..8661bf163 100644 --- a/tests/nodes/where_fp8x23.cairo +++ b/tests/nodes/where_fp8x23.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_fp8x23() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_fp8x23/input_0.cairo b/tests/nodes/where_fp8x23/input_0.cairo index 502ed1320..61900b68f 100644 --- a/tests/nodes/where_fp8x23/input_0.cairo +++ b/tests/nodes/where_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23/input_1.cairo b/tests/nodes/where_fp8x23/input_1.cairo index 459ce8d40..084599759 100644 --- a/tests/nodes/where_fp8x23/input_1.cairo +++ b/tests/nodes/where_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -12,31 +11,31 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23/input_2.cairo b/tests/nodes/where_fp8x23/input_2.cairo index bedf8435e..f04ca875c 100644 --- a/tests/nodes/where_fp8x23/input_2.cairo +++ b/tests/nodes/where_fp8x23/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23/output_0.cairo b/tests/nodes/where_fp8x23/output_0.cairo index e9822c10e..1e20cfda7 100644 --- a/tests/nodes/where_fp8x23/output_0.cairo +++ b/tests/nodes/where_fp8x23/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); data.append(FP8x23 { mag: 33554432, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23_broadcast.cairo b/tests/nodes/where_fp8x23_broadcast.cairo index b210654da..771c00bf4 100644 --- a/tests/nodes/where_fp8x23_broadcast.cairo +++ b/tests/nodes/where_fp8x23_broadcast.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; +use orion::utils::{assert_eq, assert_seq_eq}; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; use orion::operators::tensor::FP8x23TensorPartialEq; -use orion::utils::assert_eq; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_fp8x23_broadcast() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_fp8x23_broadcast/input_0.cairo b/tests/nodes/where_fp8x23_broadcast/input_0.cairo index e29499d8a..b58cd6e74 100644 --- a/tests/nodes/where_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/where_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,6 +9,6 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23_broadcast/input_1.cairo b/tests/nodes/where_fp8x23_broadcast/input_1.cairo index 645947907..e079b7b31 100644 --- a/tests/nodes/where_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/where_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 33554432, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23_broadcast/input_2.cairo b/tests/nodes/where_fp8x23_broadcast/input_2.cairo index d0d0f95bd..5a5f0d465 100644 --- a/tests/nodes/where_fp8x23_broadcast/input_2.cairo +++ b/tests/nodes/where_fp8x23_broadcast/input_2.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_2() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_fp8x23_broadcast/output_0.cairo b/tests/nodes/where_fp8x23_broadcast/output_0.cairo index c23ba22e6..9d630f113 100644 --- a/tests/nodes/where_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/where_fp8x23_broadcast/output_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 25165824, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); data.append(FP8x23 { mag: 41943040, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 41943040, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32.cairo b/tests/nodes/where_i32.cairo index 6af794969..1662b010d 100644 --- a/tests/nodes/where_i32.cairo +++ b/tests/nodes/where_i32.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_i32() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_i32/input_0.cairo b/tests/nodes/where_i32/input_0.cairo index 287722fba..fa40db7db 100644 --- a/tests/nodes/where_i32/input_0.cairo +++ b/tests/nodes/where_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); + data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(1); + data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32/input_1.cairo b/tests/nodes/where_i32/input_1.cairo index 7ed9a944a..3f48e1fbb 100644 --- a/tests/nodes/where_i32/input_1.cairo +++ b/tests/nodes/where_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(5); + data.append(1); + data.append(4); + data.append(5); + data.append(5); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(4); + data.append(1); + data.append(1); + data.append(1); + data.append(4); + data.append(4); + data.append(3); + data.append(4); + data.append(4); + data.append(1); + data.append(2); + data.append(2); + data.append(0); + data.append(2); + data.append(2); + data.append(3); + data.append(4); + data.append(4); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32/input_2.cairo b/tests/nodes/where_i32/input_2.cairo index c4b6e3a6a..cd65876c1 100644 --- a/tests/nodes/where_i32/input_2.cairo +++ b/tests/nodes/where_i32/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(1); + data.append(2); + data.append(4); + data.append(0); + data.append(5); + data.append(5); + data.append(5); + data.append(1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(5); + data.append(1); + data.append(0); + data.append(3); + data.append(2); + data.append(2); + data.append(3); + data.append(3); + data.append(2); + data.append(4); + data.append(2); + data.append(0); + data.append(0); + data.append(1); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32/output_0.cairo b/tests/nodes/where_i32/output_0.cairo index c2f1d9b08..d062dea11 100644 --- a/tests/nodes/where_i32/output_0.cairo +++ b/tests/nodes/where_i32/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(5); + data.append(1); + data.append(4); + data.append(0); + data.append(5); + data.append(2); + data.append(1); + data.append(1); + data.append(2); + data.append(1); + data.append(2); + data.append(2); + data.append(5); + data.append(1); + data.append(0); + data.append(3); + data.append(2); + data.append(4); + data.append(3); + data.append(2); + data.append(2); + data.append(4); + data.append(2); + data.append(0); + data.append(3); + data.append(4); + data.append(5); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32_broadcast.cairo b/tests/nodes/where_i32_broadcast.cairo index 2bea54d48..53aaf91e2 100644 --- a/tests/nodes/where_i32_broadcast.cairo +++ b/tests/nodes/where_i32_broadcast.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::I32TensorPartialEq; -use orion::utils::assert_eq; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_i32_broadcast() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_i32_broadcast/input_0.cairo b/tests/nodes/where_i32_broadcast/input_0.cairo index 5fa70f11a..7e83074d4 100644 --- a/tests/nodes/where_i32_broadcast/input_0.cairo +++ b/tests/nodes/where_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 0, sign: false }); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32_broadcast/input_1.cairo b/tests/nodes/where_i32_broadcast/input_1.cairo index 2df00c334..8bb5ce6fc 100644 --- a/tests/nodes/where_i32_broadcast/input_1.cairo +++ b/tests/nodes/where_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 4, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(0); + data.append(2); + data.append(4); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32_broadcast/input_2.cairo b/tests/nodes/where_i32_broadcast/input_2.cairo index 516938211..dbb1c20f5 100644 --- a/tests/nodes/where_i32_broadcast/input_2.cairo +++ b/tests/nodes/where_i32_broadcast/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_2() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i32_broadcast/output_0.cairo b/tests/nodes/where_i32_broadcast/output_0.cairo index 18d1b329f..3c2ad2515 100644 --- a/tests/nodes/where_i32_broadcast/output_0.cairo +++ b/tests/nodes/where_i32_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 5, sign: false }); + data.append(2); + data.append(0); + data.append(2); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8.cairo b/tests/nodes/where_i8.cairo index 3f4f78eb2..0627fd33b 100644 --- a/tests/nodes/where_i8.cairo +++ b/tests/nodes/where_i8.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_i8() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_i8/input_0.cairo b/tests/nodes/where_i8/input_0.cairo index 5c217ad1a..052f51700 100644 --- a/tests/nodes/where_i8/input_0.cairo +++ b/tests/nodes/where_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(1); + data.append(0); + data.append(1); + data.append(1); + data.append(1); + data.append(1); + data.append(0); + data.append(1); + data.append(0); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8/input_1.cairo b/tests/nodes/where_i8/input_1.cairo index 7ee472520..33e926847 100644 --- a/tests/nodes/where_i8/input_1.cairo +++ b/tests/nodes/where_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(5); + data.append(3); + data.append(3); + data.append(4); + data.append(0); + data.append(2); + data.append(3); + data.append(2); + data.append(4); + data.append(5); + data.append(3); + data.append(2); + data.append(1); + data.append(5); + data.append(4); + data.append(2); + data.append(2); + data.append(4); + data.append(5); + data.append(3); + data.append(0); + data.append(0); + data.append(4); + data.append(3); + data.append(0); + data.append(0); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8/input_2.cairo b/tests/nodes/where_i8/input_2.cairo index 46f276b61..51f580caf 100644 --- a/tests/nodes/where_i8/input_2.cairo +++ b/tests/nodes/where_i8/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(0); + data.append(1); + data.append(0); + data.append(3); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(3); + data.append(3); + data.append(2); + data.append(0); + data.append(2); + data.append(1); + data.append(5); + data.append(4); + data.append(2); + data.append(0); + data.append(1); + data.append(4); + data.append(0); + data.append(1); + data.append(1); + data.append(5); + data.append(0); + data.append(4); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8/output_0.cairo b/tests/nodes/where_i8/output_0.cairo index 6a8c35017..6d58241e2 100644 --- a/tests/nodes/where_i8/output_0.cairo +++ b/tests/nodes/where_i8/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 5, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 4, sign: false }); - data.append(i8 { mag: 4, sign: false }); + data.append(0); + data.append(1); + data.append(0); + data.append(4); + data.append(0); + data.append(2); + data.append(2); + data.append(2); + data.append(4); + data.append(5); + data.append(2); + data.append(0); + data.append(2); + data.append(1); + data.append(5); + data.append(4); + data.append(2); + data.append(0); + data.append(5); + data.append(3); + data.append(0); + data.append(0); + data.append(1); + data.append(3); + data.append(0); + data.append(4); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8_broadcast.cairo b/tests/nodes/where_i8_broadcast.cairo index 2b514f76d..69e02821f 100644 --- a/tests/nodes/where_i8_broadcast.cairo +++ b/tests/nodes/where_i8_broadcast.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::I8TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_i8_broadcast() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_i8_broadcast/input_0.cairo b/tests/nodes/where_i8_broadcast/input_0.cairo index 3f2b1a3cc..f80e82d5f 100644 --- a/tests/nodes/where_i8_broadcast/input_0.cairo +++ b/tests/nodes/where_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +8,6 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8_broadcast/input_1.cairo b/tests/nodes/where_i8_broadcast/input_1.cairo index cebe513dc..38444c950 100644 --- a/tests/nodes/where_i8_broadcast/input_1.cairo +++ b/tests/nodes/where_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); + data.append(3); + data.append(5); + data.append(5); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8_broadcast/input_2.cairo b/tests/nodes/where_i8_broadcast/input_2.cairo index e1193ecb6..81c508b26 100644 --- a/tests/nodes/where_i8_broadcast/input_2.cairo +++ b/tests/nodes/where_i8_broadcast/input_2.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_2() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(5); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_i8_broadcast/output_0.cairo b/tests/nodes/where_i8_broadcast/output_0.cairo index 4120aedf1..b6b94799a 100644 --- a/tests/nodes/where_i8_broadcast/output_0.cairo +++ b/tests/nodes/where_i8_broadcast/output_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); - data.append(i8 { mag: 3, sign: false }); + data.append(3); + data.append(5); + data.append(5); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32.cairo b/tests/nodes/where_u32.cairo index 472171e34..a14d685ac 100644 --- a/tests/nodes/where_u32.cairo +++ b/tests/nodes/where_u32.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_u32() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_u32/input_0.cairo b/tests/nodes/where_u32/input_0.cairo index e40252a09..e93ea3cca 100644 --- a/tests/nodes/where_u32/input_0.cairo +++ b/tests/nodes/where_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,31 +10,31 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); - data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); + data.append(0); data.append(1); data.append(1); data.append(0); data.append(0); + data.append(0); data.append(1); data.append(1); - data.append(1); + data.append(0); + data.append(0); data.append(1); data.append(1); data.append(1); data.append(0); data.append(1); - data.append(0); data.append(1); data.append(0); data.append(0); data.append(1); + data.append(0); data.append(1); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32/input_1.cairo b/tests/nodes/where_u32/input_1.cairo index 59444a99f..efef8a2f2 100644 --- a/tests/nodes/where_u32/input_1.cairo +++ b/tests/nodes/where_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(4); data.append(0); data.append(0); - data.append(2); - data.append(4); + data.append(5); + data.append(5); data.append(1); data.append(5); + data.append(2); + data.append(0); + data.append(4); data.append(3); data.append(3); data.append(0); data.append(3); + data.append(5); data.append(3); - data.append(2); data.append(5); - data.append(0); - data.append(4); data.append(5); - data.append(1); - data.append(3); - data.append(3); - data.append(4); + data.append(5); data.append(4); data.append(1); - data.append(1); + data.append(5); + data.append(2); data.append(5); data.append(1); + data.append(1); + data.append(5); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32/input_2.cairo b/tests/nodes/where_u32/input_2.cairo index f3f189b30..426cd7c37 100644 --- a/tests/nodes/where_u32/input_2.cairo +++ b/tests/nodes/where_u32/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_2() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(4); + data.append(1); + data.append(0); + data.append(0); data.append(2); data.append(0); - data.append(3); data.append(4); data.append(5); + data.append(1); + data.append(1); + data.append(2); data.append(0); + data.append(4); + data.append(5); data.append(3); - data.append(0); - data.append(0); data.append(5); + data.append(3); + data.append(3); data.append(2); - data.append(4); - data.append(1); - data.append(1); data.append(1); data.append(0); + data.append(5); + data.append(3); data.append(4); - data.append(2); - data.append(2); - data.append(1); data.append(4); + data.append(4); + data.append(0); data.append(5); - data.append(3); - data.append(3); - data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32/output_0.cairo b/tests/nodes/where_u32/output_0.cairo index 98c8f05db..322ef76d1 100644 --- a/tests/nodes/where_u32/output_0.cairo +++ b/tests/nodes/where_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(5); - data.append(4); + data.append(1); data.append(0); data.append(0); - data.append(3); - data.append(4); - data.append(1); + data.append(2); + data.append(0); data.append(5); - data.append(3); + data.append(2); + data.append(1); + data.append(1); + data.append(2); data.append(3); data.append(0); data.append(5); data.append(3); - data.append(2); + data.append(3); data.append(5); - data.append(0); - data.append(4); data.append(5); - data.append(4); - data.append(3); data.append(2); data.append(4); - data.append(4); - data.append(5); data.append(1); data.append(5); - data.append(2); + data.append(3); + data.append(5); + data.append(4); + data.append(1); + data.append(0); + data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32_broadcast.cairo b/tests/nodes/where_u32_broadcast.cairo index 42bcad1e5..b810f7143 100644 --- a/tests/nodes/where_u32_broadcast.cairo +++ b/tests/nodes/where_u32_broadcast.cairo @@ -4,11 +4,11 @@ mod input_2; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::{TensorTrait, Tensor}; #[test] #[available_gas(2000000000)] @@ -18,7 +18,7 @@ fn test_where_u32_broadcast() { let input_2 = input_2::input_2(); let z = output_0::output_0(); - let y = input_0.where(@input_1, @input_2); + let y = input_0.where(@input_1,@input_2); assert_eq(y, z); } diff --git a/tests/nodes/where_u32_broadcast/input_0.cairo b/tests/nodes/where_u32_broadcast/input_0.cairo index 32869e6e8..67bba014b 100644 --- a/tests/nodes/where_u32_broadcast/input_0.cairo +++ b/tests/nodes/where_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,6 +8,6 @@ fn input_0() -> Tensor { shape.append(1); let mut data = ArrayTrait::new(); - data.append(1); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32_broadcast/input_1.cairo b/tests/nodes/where_u32_broadcast/input_1.cairo index b0a92d0cd..7abf11ea1 100644 --- a/tests/nodes/where_u32_broadcast/input_1.cairo +++ b/tests/nodes/where_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(5); - data.append(0); + data.append(4); + data.append(2); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32_broadcast/input_2.cairo b/tests/nodes/where_u32_broadcast/input_2.cairo index f8bf40826..a7276e884 100644 --- a/tests/nodes/where_u32_broadcast/input_2.cairo +++ b/tests/nodes/where_u32_broadcast/input_2.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_2() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,7 +8,7 @@ fn input_2() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(4); - data.append(0); + data.append(5); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/where_u32_broadcast/output_0.cairo b/tests/nodes/where_u32_broadcast/output_0.cairo index 9dc433215..d3748d9ff 100644 --- a/tests/nodes/where_u32_broadcast/output_0.cairo +++ b/tests/nodes/where_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(5); - data.append(0); - data.append(0); + data.append(2); + data.append(5); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp16x16.cairo b/tests/nodes/xor_fp16x16.cairo index 345dea3c4..8a54526f7 100644 --- a/tests/nodes/xor_fp16x16.cairo +++ b/tests/nodes/xor_fp16x16.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_fp16x16/input_0.cairo b/tests/nodes/xor_fp16x16/input_0.cairo index 72fd841aa..147abd897 100644 --- a/tests/nodes/xor_fp16x16/input_0.cairo +++ b/tests/nodes/xor_fp16x16/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,8 +10,8 @@ fn input_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 196608, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp16x16/input_1.cairo b/tests/nodes/xor_fp16x16/input_1.cairo index 6ebcfd234..b87dfda30 100644 --- a/tests/nodes/xor_fp16x16/input_1.cairo +++ b/tests/nodes/xor_fp16x16/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); - data.append(FP16x16 { mag: 0, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); + data.append(FP16x16 { mag: 131072, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp16x16/output_0.cairo b/tests/nodes/xor_fp16x16/output_0.cairo index 66356e88d..36a93ca20 100644 --- a/tests/nodes/xor_fp16x16/output_0.cairo +++ b/tests/nodes/xor_fp16x16/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(0); data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp16x16_broadcast.cairo b/tests/nodes/xor_fp16x16_broadcast.cairo index ab19b6b55..a8d3f37e0 100644 --- a/tests/nodes/xor_fp16x16_broadcast.cairo +++ b/tests/nodes/xor_fp16x16_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP16x16Tensor; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::FP16x16TensorPartialEq; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_fp16x16_broadcast/input_0.cairo b/tests/nodes/xor_fp16x16_broadcast/input_0.cairo index e1e38013d..f96f54173 100644 --- a/tests/nodes/xor_fp16x16_broadcast/input_0.cairo +++ b/tests/nodes/xor_fp16x16_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP16x16 { mag: 0, sign: false }); data.append(FP16x16 { mag: 131072, sign: false }); data.append(FP16x16 { mag: 131072, sign: true }); - data.append(FP16x16 { mag: 131072, sign: true }); + data.append(FP16x16 { mag: 65536, sign: false }); + data.append(FP16x16 { mag: 0, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp16x16_broadcast/input_1.cairo b/tests/nodes/xor_fp16x16_broadcast/input_1.cairo index 83405e5ad..edf1408cd 100644 --- a/tests/nodes/xor_fp16x16_broadcast/input_1.cairo +++ b/tests/nodes/xor_fp16x16_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP16x16Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP16x16; +use orion::operators::tensor::{FP16x16Tensor, FP16x16TensorSub}; +use orion::numbers::{FixedTrait, FP16x16}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(FP16x16 { mag: 131072, sign: true }); data.append(FP16x16 { mag: 131072, sign: false }); - data.append(FP16x16 { mag: 65536, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp16x16_broadcast/output_0.cairo b/tests/nodes/xor_fp16x16_broadcast/output_0.cairo index 5f2035f24..069598d33 100644 --- a/tests/nodes/xor_fp16x16_broadcast/output_0.cairo +++ b/tests/nodes/xor_fp16x16_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); data.append(0); data.append(0); data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp8x23.cairo b/tests/nodes/xor_fp8x23.cairo index 9a49ad943..7d89727de 100644 --- a/tests/nodes/xor_fp8x23.cairo +++ b/tests/nodes/xor_fp8x23.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_fp8x23/input_0.cairo b/tests/nodes/xor_fp8x23/input_0.cairo index 5e0f666f1..099b5378c 100644 --- a/tests/nodes/xor_fp8x23/input_0.cairo +++ b/tests/nodes/xor_fp8x23/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp8x23/input_1.cairo b/tests/nodes/xor_fp8x23/input_1.cairo index f3be286c6..b5883e501 100644 --- a/tests/nodes/xor_fp8x23/input_1.cairo +++ b/tests/nodes/xor_fp8x23/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,32 +10,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 8388608, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 25165824, sign: true }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 0, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); - data.append(FP8x23 { mag: 16777216, sign: false }); - data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 8388608, sign: false }); - data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 16777216, sign: true }); + data.append(FP8x23 { mag: 25165824, sign: true }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); + data.append(FP8x23 { mag: 8388608, sign: false }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp8x23/output_0.cairo b/tests/nodes/xor_fp8x23/output_0.cairo index b96df18e4..3a99f04f6 100644 --- a/tests/nodes/xor_fp8x23/output_0.cairo +++ b/tests/nodes/xor_fp8x23/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,19 +9,15 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); - data.append(0); - data.append(1); - data.append(0); - data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(1); @@ -29,8 +25,12 @@ fn output_0() -> Tensor { data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(0); + data.append(1); + data.append(1); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/xor_fp8x23_broadcast.cairo b/tests/nodes/xor_fp8x23_broadcast.cairo index ad5339ac0..30a57eb23 100644 --- a/tests/nodes/xor_fp8x23_broadcast.cairo +++ b/tests/nodes/xor_fp8x23_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::FP8x23Tensor; +use orion::operators::tensor::FP8x23TensorPartialEq; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_fp8x23_broadcast/input_0.cairo b/tests/nodes/xor_fp8x23_broadcast/input_0.cairo index dbf639643..68f8cc262 100644 --- a/tests/nodes/xor_fp8x23_broadcast/input_0.cairo +++ b/tests/nodes/xor_fp8x23_broadcast/input_0.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,9 +9,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 16777216, sign: true }); - data.append(FP8x23 { mag: 8388608, sign: false }); data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: false }); + data.append(FP8x23 { mag: 16777216, sign: true }); data.append(FP8x23 { mag: 8388608, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp8x23_broadcast/input_1.cairo b/tests/nodes/xor_fp8x23_broadcast/input_1.cairo index 44173dca4..edba895b1 100644 --- a/tests/nodes/xor_fp8x23_broadcast/input_1.cairo +++ b/tests/nodes/xor_fp8x23_broadcast/input_1.cairo @@ -1,8 +1,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::FP8x23Tensor; -use orion::numbers::FixedTrait; -use orion::numbers::FP8x23; +use orion::operators::tensor::{FP8x23Tensor, FP8x23TensorSub}; +use orion::numbers::{FixedTrait, FP8x23}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +9,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(FP8x23 { mag: 8388608, sign: false }); + data.append(FP8x23 { mag: 0, sign: false }); data.append(FP8x23 { mag: 25165824, sign: true }); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_fp8x23_broadcast/output_0.cairo b/tests/nodes/xor_fp8x23_broadcast/output_0.cairo index 8087fceab..83a3b1e6a 100644 --- a/tests/nodes/xor_fp8x23_broadcast/output_0.cairo +++ b/tests/nodes/xor_fp8x23_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn output_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); + data.append(1); data.append(0); - data.append(0); - data.append(0); + data.append(1); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i32.cairo b/tests/nodes/xor_i32.cairo index 57d9befa9..d1b6a7705 100644 --- a/tests/nodes/xor_i32.cairo +++ b/tests/nodes/xor_i32.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_i32/input_0.cairo b/tests/nodes/xor_i32/input_0.cairo index 83a768811..6bffe1752 100644 --- a/tests/nodes/xor_i32/input_0.cairo +++ b/tests/nodes/xor_i32/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); + data.append(2); + data.append(1); + data.append(1); + data.append(0); + data.append(2); + data.append(2); + data.append(2); + data.append(2); + data.append(-1); + data.append(2); + data.append(-1); + data.append(0); + data.append(2); + data.append(1); + data.append(1); + data.append(-3); + data.append(-3); + data.append(-3); + data.append(-1); + data.append(-3); + data.append(-1); + data.append(-2); + data.append(2); + data.append(1); + data.append(0); + data.append(0); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i32/input_1.cairo b/tests/nodes/xor_i32/input_1.cairo index 844cfdd02..b857282fd 100644 --- a/tests/nodes/xor_i32/input_1.cairo +++ b/tests/nodes/xor_i32/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 0, sign: false }); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(-1); + data.append(-3); + data.append(-2); + data.append(0); + data.append(2); + data.append(2); + data.append(2); + data.append(-3); + data.append(0); + data.append(0); + data.append(-1); + data.append(1); + data.append(-2); + data.append(1); + data.append(-2); + data.append(0); + data.append(0); + data.append(-3); + data.append(1); + data.append(1); + data.append(1); + data.append(-2); + data.append(1); + data.append(-2); + data.append(1); + data.append(-3); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i32/output_0.cairo b/tests/nodes/xor_i32/output_0.cairo index d759ed971..323d9bf01 100644 --- a/tests/nodes/xor_i32/output_0.cairo +++ b/tests/nodes/xor_i32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -14,10 +14,13 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); data.append(0); data.append(0); data.append(0); + data.append(1); + data.append(1); + data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); @@ -26,15 +29,12 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(0); - data.append(1); + data.append(0); data.append(0); data.append(0); data.append(0); data.append(1); data.append(1); - data.append(1); - data.append(0); - data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i32_broadcast.cairo b/tests/nodes/xor_i32_broadcast.cairo index 77f19fb67..6a118bfb4 100644 --- a/tests/nodes/xor_i32_broadcast.cairo +++ b/tests/nodes/xor_i32_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; +use orion::operators::tensor::I32TensorPartialEq; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_i32_broadcast/input_0.cairo b/tests/nodes/xor_i32_broadcast/input_0.cairo index 71eb6016d..af954e380 100644 --- a/tests/nodes/xor_i32_broadcast/input_0.cairo +++ b/tests/nodes/xor_i32_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: false }); - data.append(i32 { mag: 3, sign: true }); - data.append(i32 { mag: 2, sign: false }); - data.append(i32 { mag: 3, sign: true }); + data.append(-2); + data.append(0); + data.append(-3); + data.append(-1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i32_broadcast/input_1.cairo b/tests/nodes/xor_i32_broadcast/input_1.cairo index 100cab0d6..e49c73fb5 100644 --- a/tests/nodes/xor_i32_broadcast/input_1.cairo +++ b/tests/nodes/xor_i32_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I32Tensor; -use orion::numbers::{IntegerTrait, i32}; +use orion::operators::tensor::{I32Tensor, I32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i32 { mag: 1, sign: true }); - data.append(i32 { mag: 1, sign: true }); + data.append(2); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i32_broadcast/output_0.cairo b/tests/nodes/xor_i32_broadcast/output_0.cairo index 8087fceab..94c384136 100644 --- a/tests/nodes/xor_i32_broadcast/output_0.cairo +++ b/tests/nodes/xor_i32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +9,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(0); + data.append(1); data.append(0); data.append(0); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/xor_i8.cairo b/tests/nodes/xor_i8.cairo index b7ba188ed..0ba2c0257 100644 --- a/tests/nodes/xor_i8.cairo +++ b/tests/nodes/xor_i8.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_i8/input_0.cairo b/tests/nodes/xor_i8/input_0.cairo index db6d382aa..13e2952b5 100644 --- a/tests/nodes/xor_i8/input_0.cairo +++ b/tests/nodes/xor_i8/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: false }); + data.append(-3); + data.append(2); + data.append(-3); + data.append(-1); + data.append(2); + data.append(1); + data.append(-3); + data.append(2); + data.append(-3); + data.append(-1); + data.append(-2); + data.append(-1); + data.append(0); + data.append(-1); + data.append(1); + data.append(-3); + data.append(-1); + data.append(-2); + data.append(-3); + data.append(-2); + data.append(-1); + data.append(-3); + data.append(-2); + data.append(0); + data.append(2); + data.append(-3); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i8/input_1.cairo b/tests/nodes/xor_i8/input_1.cairo index 25a6dfa50..700afe506 100644 --- a/tests/nodes/xor_i8/input_1.cairo +++ b/tests/nodes/xor_i8/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,32 +9,32 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 2, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 1, sign: true }); - data.append(i8 { mag: 3, sign: true }); - data.append(i8 { mag: 3, sign: true }); + data.append(2); + data.append(-1); + data.append(1); + data.append(1); + data.append(2); + data.append(2); + data.append(1); + data.append(-3); + data.append(1); + data.append(-3); + data.append(2); + data.append(-2); + data.append(-3); + data.append(-2); + data.append(2); + data.append(-2); + data.append(2); + data.append(2); + data.append(0); + data.append(-2); + data.append(2); + data.append(-3); + data.append(-2); + data.append(-2); + data.append(1); + data.append(-3); + data.append(-2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i8/output_0.cairo b/tests/nodes/xor_i8/output_0.cairo index 33c1b7dc0..8affaf526 100644 --- a/tests/nodes/xor_i8/output_0.cairo +++ b/tests/nodes/xor_i8/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -11,15 +11,9 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); data.append(0); - data.append(1); - data.append(1); data.append(0); data.append(0); - data.append(1); - data.append(1); - data.append(1); - data.append(1); - data.append(1); + data.append(0); data.append(0); data.append(0); data.append(0); @@ -28,11 +22,17 @@ fn output_0() -> Tensor { data.append(0); data.append(0); data.append(1); + data.append(0); + data.append(0); + data.append(0); + data.append(0); + data.append(0); data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); diff --git a/tests/nodes/xor_i8_broadcast.cairo b/tests/nodes/xor_i8_broadcast.cairo index 6cbb81e2b..98e31be33 100644 --- a/tests/nodes/xor_i8_broadcast.cairo +++ b/tests/nodes/xor_i8_broadcast.cairo @@ -3,11 +3,13 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::I8Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::operators::tensor::I8TensorPartialEq; +use orion::utils::{assert_eq, assert_seq_eq}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_i8_broadcast/input_0.cairo b/tests/nodes/xor_i8_broadcast/input_0.cairo index 168bcd270..402d98a0a 100644 --- a/tests/nodes/xor_i8_broadcast/input_0.cairo +++ b/tests/nodes/xor_i8_broadcast/input_0.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 0, sign: false }); - data.append(i8 { mag: 0, sign: false }); + data.append(0); + data.append(2); + data.append(1); + data.append(2); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i8_broadcast/input_1.cairo b/tests/nodes/xor_i8_broadcast/input_1.cairo index 24ed7049a..c5b62636c 100644 --- a/tests/nodes/xor_i8_broadcast/input_1.cairo +++ b/tests/nodes/xor_i8_broadcast/input_1.cairo @@ -1,7 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::I8Tensor; -use orion::numbers::{IntegerTrait, i8}; +use orion::operators::tensor::{I8Tensor, I8TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,7 +8,7 @@ fn input_1() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(i8 { mag: 2, sign: false }); - data.append(i8 { mag: 1, sign: true }); + data.append(-2); + data.append(-3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_i8_broadcast/output_0.cairo b/tests/nodes/xor_i8_broadcast/output_0.cairo index eb0deaedb..01569b35a 100644 --- a/tests/nodes/xor_i8_broadcast/output_0.cairo +++ b/tests/nodes/xor_i8_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -10,7 +10,7 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(1); data.append(0); - data.append(1); - data.append(1); + data.append(0); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_u32.cairo b/tests/nodes/xor_u32.cairo index 08b57f111..739d60af4 100644 --- a/tests/nodes/xor_u32.cairo +++ b/tests/nodes/xor_u32.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_u32/input_0.cairo b/tests/nodes/xor_u32/input_0.cairo index 0beefe210..ce0703451 100644 --- a/tests/nodes/xor_u32/input_0.cairo +++ b/tests/nodes/xor_u32/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,32 +9,32 @@ fn input_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(4); - data.append(4); data.append(0); data.append(1); - data.append(4); data.append(1); - data.append(3); - data.append(0); - data.append(4); - data.append(3); - data.append(4); - data.append(2); data.append(5); + data.append(3); data.append(1); - data.append(1); + data.append(2); + data.append(2); + data.append(0); + data.append(0); data.append(5); + data.append(2); data.append(1); + data.append(2); data.append(1); data.append(1); - data.append(2); - data.append(5); data.append(5); + data.append(2); data.append(0); data.append(0); + data.append(0); + data.append(2); + data.append(1); + data.append(1); + data.append(4); + data.append(1); data.append(5); - data.append(3); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_u32/input_1.cairo b/tests/nodes/xor_u32/input_1.cairo index 05e3fb176..1e770e8dd 100644 --- a/tests/nodes/xor_u32/input_1.cairo +++ b/tests/nodes/xor_u32/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,31 +9,31 @@ fn input_1() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); - data.append(2); - data.append(4); - data.append(0); - data.append(2); data.append(4); data.append(4); data.append(2); - data.append(2); - data.append(3); - data.append(1); - data.append(1); - data.append(2); data.append(5); data.append(0); - data.append(3); data.append(5); data.append(2); + data.append(3); + data.append(0); + data.append(5); data.append(0); + data.append(2); data.append(0); + data.append(2); data.append(1); + data.append(5); + data.append(1); + data.append(5); + data.append(4); data.append(4); data.append(0); + data.append(3); data.append(1); - data.append(2); - data.append(2); + data.append(1); + data.append(0); data.append(1); data.append(2); TensorTrait::new(shape.span(), data.span()) diff --git a/tests/nodes/xor_u32/output_0.cairo b/tests/nodes/xor_u32/output_0.cairo index b5a723ebf..e32c287bf 100644 --- a/tests/nodes/xor_u32/output_0.cairo +++ b/tests/nodes/xor_u32/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,30 +9,30 @@ fn output_0() -> Tensor { shape.append(3); let mut data = ArrayTrait::new(); + data.append(1); + data.append(0); data.append(0); data.append(0); - data.append(1); data.append(1); data.append(0); data.append(0); data.append(0); data.append(0); data.append(1); + data.append(1); data.append(0); + data.append(1); data.append(0); data.append(0); data.append(0); - data.append(1); - data.append(0); data.append(0); data.append(0); data.append(1); data.append(1); data.append(0); data.append(0); - data.append(1); data.append(0); - data.append(1); + data.append(0); data.append(1); data.append(0); data.append(0); diff --git a/tests/nodes/xor_u32_broadcast.cairo b/tests/nodes/xor_u32_broadcast.cairo index 5638bd76a..9c5abf64f 100644 --- a/tests/nodes/xor_u32_broadcast.cairo +++ b/tests/nodes/xor_u32_broadcast.cairo @@ -3,11 +3,11 @@ mod input_1; mod output_0; -use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::TensorTrait; -use orion::operators::tensor::U32Tensor; use orion::operators::tensor::U32TensorPartialEq; -use orion::utils::assert_eq; +use orion::operators::tensor::{TensorTrait, Tensor}; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; +use orion::utils::{assert_eq, assert_seq_eq}; +use core::array::{ArrayTrait, SpanTrait}; #[test] #[available_gas(2000000000)] diff --git a/tests/nodes/xor_u32_broadcast/input_0.cairo b/tests/nodes/xor_u32_broadcast/input_0.cairo index 88f44abaf..48012ef07 100644 --- a/tests/nodes/xor_u32_broadcast/input_0.cairo +++ b/tests/nodes/xor_u32_broadcast/input_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -8,9 +8,9 @@ fn input_0() -> Tensor { shape.append(2); let mut data = ArrayTrait::new(); - data.append(1); - data.append(0); + data.append(2); data.append(0); - data.append(5); + data.append(1); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_u32_broadcast/input_1.cairo b/tests/nodes/xor_u32_broadcast/input_1.cairo index 862b8d58c..d6a15bdd7 100644 --- a/tests/nodes/xor_u32_broadcast/input_1.cairo +++ b/tests/nodes/xor_u32_broadcast/input_1.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn input_1() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,6 +9,6 @@ fn input_1() -> Tensor { let mut data = ArrayTrait::new(); data.append(3); - data.append(4); + data.append(0); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/nodes/xor_u32_broadcast/output_0.cairo b/tests/nodes/xor_u32_broadcast/output_0.cairo index f857a56ac..069598d33 100644 --- a/tests/nodes/xor_u32_broadcast/output_0.cairo +++ b/tests/nodes/xor_u32_broadcast/output_0.cairo @@ -1,6 +1,6 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor}; -use orion::operators::tensor::U32Tensor; +use orion::operators::tensor::{U32Tensor, U32TensorSub}; fn output_0() -> Tensor { let mut shape = ArrayTrait::::new(); @@ -9,8 +9,8 @@ fn output_0() -> Tensor { let mut data = ArrayTrait::new(); data.append(0); - data.append(1); - data.append(1); data.append(0); + data.append(0); + data.append(1); TensorTrait::new(shape.span(), data.span()) } diff --git a/tests/numbers.cairo b/tests/numbers.cairo index 9a65c3b28..28687b2c4 100644 --- a/tests/numbers.cairo +++ b/tests/numbers.cairo @@ -1,4 +1,3 @@ -mod fixed_point_test; -mod signed_integer_test; +// mod fixed_point; mod complex_number_test; diff --git a/tests/numbers/signed_integer_test.cairo b/tests/numbers/signed_integer_test.cairo deleted file mode 100644 index 4c6f57339..000000000 --- a/tests/numbers/signed_integer_test.cairo +++ /dev/null @@ -1,224 +0,0 @@ -use core::traits::Into; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32}; - -#[test] -fn test_into() { - let x = IntegerTrait::::new(42, false); - assert(x.into() == 42, 'should convert to felt252'); - let x = IntegerTrait::::new(42, true); - assert(x.into() == -42, 'should convert to felt252'); -} - -#[test] -fn test_add() { - // Test addition of two positive integers - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(13, false); - let result = a + b; - assert(result.mag == 55, '42 + 13 = 55'); - assert(result.sign == false, '42 + 13 -> positive'); - - // Test addition of two negative integers - let a = IntegerTrait::::new(42, true); - let b = IntegerTrait::::new(13, true); - let result = a + b; - assert(result.mag == 55, '-42 - 13 = -55'); - assert(result.sign == true, '-42 - 13 -> negative'); - - // Test addition of a positive integer and a negative integer with the same magnitude - - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(42, true); - let result = a + b; - assert(result.mag == 0, '42 - 42 = 0'); - assert(result.sign == false, '42 - 42 -> positive'); - - // Test addition of a positive integer and a negative integer with different magnitudes - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(13, true); - let result = a + b; - assert(result.mag == 29, '42 - 13 = 29'); - assert(result.sign == false, '42 - 13 -> positive'); - - // Test addition of a negative integer and a positive integer with different magnitudes - let a = IntegerTrait::::new(42, true); - let b = IntegerTrait::::new(13, false); - let result = a + b; - assert(result.mag == 29, '-42 + 13 = -29'); - assert(result.sign == true, '-42 + 13 -> negative'); -} - -#[test] -fn test_sub() { - // Test subtraction of two positive integers with larger first - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(13, false); - let result = a - b; - assert(result.mag == 29, '42 - 13 = 29'); - assert(result.sign == false, '42 - 13 -> positive'); - - // Test subtraction of two positive integers with larger second - let a = IntegerTrait::::new(13, false); - let b = IntegerTrait::::new(42, false); - let result = a - b; - assert(result.mag == 29, '13 - 42 = -29'); - assert(result.sign == true, '13 - 42 -> negative'); - - // Test subtraction of two negative integers with larger first - let a = IntegerTrait::::new(42, true); - let b = IntegerTrait::::new(13, true); - let result = a - b; - assert(result.mag == 29, '-42 - -13 = 29'); - assert(result.sign == true, '-42 - -13 -> negative'); - - // Test subtraction of two negative integers with larger second - let a = IntegerTrait::::new(13, true); - let b = IntegerTrait::::new(42, true); - let result = a - b; - assert(result.mag == 29, '-13 - -42 = 29'); - assert(result.sign == false, '-13 - -42 -> positive'); - - // Test subtraction of a positive integer and a negative integer with the same magnitude - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(42, true); - let result = a - b; - assert(result.mag == 84, '42 - -42 = 84'); - assert(result.sign == false, '42 - -42 -> postive'); - - // Test subtraction of a negative integer and a positive integer with the same magnitude - let a = IntegerTrait::::new(42, true); - let b = IntegerTrait::::new(42, false); - let result = a - b; - assert(result.mag == 84, '-42 - 42 = -84'); - assert(result.sign == true, '-42 - 42 -> negative'); - - // Test subtraction of a positive integer and a negative integer with different magnitudes - let a = IntegerTrait::::new(100, false); - let b = IntegerTrait::::new(42, true); - let result = a - b; - assert(result.mag == 142, '100 - - 42 = 142'); - assert(result.sign == false, '100 - - 42 -> postive'); - - // Test subtraction of a negative integer and a positive integer with different magnitudes - let a = IntegerTrait::::new(42, true); - let b = IntegerTrait::::new(100, false); - let result = a - b; - assert(result.mag == 142, '-42 - 100 = -142'); - assert(result.sign == true, '-42 - 100 -> negative'); - - // Test subtraction resulting in zero - let a = IntegerTrait::::new(42, false); - let b = IntegerTrait::::new(42, false); - let result = a - b; - assert(result.mag == 0, '42 - 42 = 0'); - assert(result.sign == false, '42 - 42 -> positive'); -} - -#[test] -fn test_mul() { - // Test multiplication of positive integers - let a = IntegerTrait::::new(10, false); - let b = IntegerTrait::::new(5, false); - let result = a * b; - assert(result.mag == 50, '10 * 5 = 50'); - assert(result.sign == false, '10 * 5 -> positive'); - - // Test multiplication of negative integers - let a = IntegerTrait::::new(10, true); - let b = IntegerTrait::::new(5, true); - let result = a * b; - assert(result.mag == 50, '-10 * -5 = 50'); - assert(result.sign == false, '-10 * -5 -> positive'); - - // Test multiplication of positive and negative integers - let a = IntegerTrait::::new(10, false); - let b = IntegerTrait::::new(5, true); - let result = a * b; - assert(result.mag == 50, '10 * -5 = -50'); - assert(result.sign == true, '10 * -5 -> negative'); - - // Test multiplication by zero - let a = IntegerTrait::::new(10, false); - let b = IntegerTrait::::new(0, false); - let result = a * b; - assert(result.mag == 0, '10 * 0 = 0'); - assert(result.sign == false, '10 * 0 -> positive'); -} - -#[test] -fn test_div_no_rem() { - // Test division of positive integers - let a = IntegerTrait::::new(10, false); - let b = IntegerTrait::::new(5, false); - let result = a / b; - assert(result.mag == 2, '10 // 5 = 2'); - assert(result.sign == false, '10 // 5 -> positive'); - - // Test division of negative integers - let a = IntegerTrait::::new(10, true); - let b = IntegerTrait::::new(5, true); - let result = a / b; - assert(result.mag == 2, '-10 // -5 = 2'); - assert(result.sign == false, '-10 // -5 -> positive'); - - // Test division of positive and negative integers - let a = IntegerTrait::::new(10, false); - let b = IntegerTrait::::new(5, true); - let result = a / b; - assert(result.mag == 2, '10 // -5 = -2'); - assert(result.sign == true, '10 // -5 -> negative'); - - // Test division with a = zero - let a = IntegerTrait::::new(0, false); - let b = IntegerTrait::::new(10, false); - let result = a / b; - assert(result.mag == 0, '0 // 10 = 0'); - assert(result.sign == false, '0 // 10 -> positive'); - - // Test division with a = zero - let a = IntegerTrait::::new(0, false); - let b = IntegerTrait::::new(10, false); - let result = a / b; - assert(result.mag == 0, '0 // 10 = 0'); - assert(result.sign == false, '0 // 10 -> positive'); -} - -#[test] -#[available_gas(20000000)] -fn test_div_rem() { - // Test division and remainder of positive integers - let a = IntegerTrait::::new(13, false); - let b = IntegerTrait::::new(5, false); - let (q, r) = a.div_rem(b); - assert(q.mag == 2 && r.mag == 3, '13 // 5 = 2 r 3'); - assert((q.sign == false) & (r.sign == false), '13 // 5 -> positive'); - - // Test division and remainder of negative integers - let a = IntegerTrait::::new(13, true); - let b = IntegerTrait::::new(5, true); - let (q, r) = a.div_rem(b); - assert(q.mag == 2 && r.mag == 3, '-13 // -5 = 2 r -3'); - assert(q.sign == false && r.sign == true, '-13 // -5 -> positive'); - - // Test division and remainder of positive and negative integers - let a = IntegerTrait::::new(13, false); - let b = IntegerTrait::::new(5, true); - let (q, r) = a.div_rem(b); - assert(q.mag == 3 && r.mag == 2, '13 // -5 = -3 r -2'); - assert(q.sign == true && r.sign == true, '13 // -5 -> negative'); - - // Test division with a = zero - let a = IntegerTrait::::new(0, false); - let b = IntegerTrait::::new(10, false); - let (q, r) = a.div_rem(b); - assert(q.mag == 0 && r.mag == 0, '0 // 10 = 0 r 0'); - assert(q.sign == false && r.sign == false, '0 // 10 -> positive'); - - // Test division and remainder with a negative dividend and positive divisor - let a = IntegerTrait::::new(13, true); - let b = IntegerTrait::::new(5, false); - let (q, r) = a.div_rem(b); - assert(q.mag == 3 && r.mag == 2, '-13 // 5 = -3 r 2'); - assert(q.sign == true && r.sign == false, '-13 // 5 -> negative'); -} - diff --git a/tests/operators/qlinear_add_test.cairo b/tests/operators/qlinear_add_test.cairo index abea26b97..3163fb8e6 100644 --- a/tests/operators/qlinear_add_test.cairo +++ b/tests/operators/qlinear_add_test.cairo @@ -3,8 +3,7 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor}; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; -use orion::numbers::{NumberTrait, IntegerTrait}; -use orion::numbers::{i8, i32}; +use orion::numbers::{NumberTrait}; #[test] @@ -15,14 +14,14 @@ fn qlinearadd_test() { >::new( shape: array![4, 2].span(), data: array![ - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(3_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(7_u8, false), - IntegerTrait::::new(8_u8, false) + 1_i8, + 2_i8, + 3_i8, + 4_i8, + 5_i8, + 6_i8, + 7_i8, + 8_i8 ] .span(), ); @@ -31,14 +30,14 @@ fn qlinearadd_test() { >::new( shape: array![4, 2].span(), data: array![ - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(12_u8, false), - IntegerTrait::::new(14_u8, false), - IntegerTrait::::new(16_u8, false) + 2_i8, + 4_i8, + 6_i8, + 8_i8, + 10_i8, + 12_i8, + 14_i8, + 16_i8 ] .span(), ); @@ -84,14 +83,14 @@ fn qlinearadd_broadcast_test() { >::new( shape: array![2, 4].span(), data: array![ - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(3_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(7_u8, false), - IntegerTrait::::new(8_u8, false) + 1_i8, + 2_i8, + 3_i8, + 4_i8, + 5_i8, + 6_i8, + 7_i8, + 8_i8 ] .span(), ); @@ -100,10 +99,10 @@ fn qlinearadd_broadcast_test() { >::new( shape: array![1, 4].span(), data: array![ - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(8_u8, false), + 2_i8, + 4_i8, + 6_i8, + 8_i8, ] .span(), ); @@ -150,12 +149,12 @@ fn test_example_doc() { >::new( shape: array![2, 3].span(), data: array![ - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(11_u8, false), - IntegerTrait::::new(11_u8, false), - IntegerTrait::::new(11_u8, false) + 6_i8, + 6_i8, + 6_i8, + 11_i8, + 11_i8, + 11_i8 ] .span(), ); @@ -164,9 +163,9 @@ fn test_example_doc() { >::new( shape: array![1, 3].span(), data: array![ - IntegerTrait::::new(40_u8, false), - IntegerTrait::::new(40_u8, false), - IntegerTrait::::new(40_u8, false) + 40_i8, + 40_i8, + 40_i8 ] .span(), ); diff --git a/tests/operators/qlinear_concat_test.cairo b/tests/operators/qlinear_concat_test.cairo index 0acacf881..101cefaa8 100644 --- a/tests/operators/qlinear_concat_test.cairo +++ b/tests/operators/qlinear_concat_test.cairo @@ -3,12 +3,11 @@ use core::array::{ArrayTrait, SpanTrait}; use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor}; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; -use orion::numbers::{NumberTrait, IntegerTrait}; -use orion::numbers::{i8, i32}; +use orion::numbers::{NumberTrait}; fn print_span(mut span: Span) { loop { match span.pop_front() { - Option::Some(i) => { (*i.mag).print(); }, + Option::Some(i) => { (*i).print(); }, Option::None(_) => { break; } }; }; @@ -23,10 +22,10 @@ fn qlinear_concat_test() { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(20_u8, false), - IntegerTrait::::new(30_u8, false), - IntegerTrait::::new(40_u8, false), + 10_i8, + 20_i8, + 30_i8, + 40_i8, ] .span(), ); @@ -35,10 +34,10 @@ fn qlinear_concat_test() { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(20_u8, false), - IntegerTrait::::new(40_u8, false), - IntegerTrait::::new(60_u8, false), - IntegerTrait::::new(80_u8, false), + 20_i8, + 40_i8, + 60_i8, + 80_i8, ] .span(), ); @@ -94,10 +93,10 @@ fn qlinear_concat_test_shape() { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(2_u8, false), + 2_i8, + 2_i8, + 2_i8, + 2_i8, ] .span(), ); @@ -106,10 +105,10 @@ fn qlinear_concat_test_shape() { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(8_u8, false), + 8_i8, + 8_i8, + 8_i8, + 8_i8, ] .span(), ); @@ -118,10 +117,10 @@ fn qlinear_concat_test_shape() { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(10_u8, false), + 10_i8, + 10_i8, + 10_i8, + 10_i8, ] .span(), ); @@ -181,10 +180,10 @@ fn qlinear_concat_example_doc() { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(5_u8, false), + 5_i8, + 5_i8, + 5_i8, + 5_i8, ] .span(), ); @@ -193,10 +192,10 @@ fn qlinear_concat_example_doc() { >::new( shape: array![2, 2].span(), data: array![ - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(1_u8, false), + 1_i8, + 1_i8, + 1_i8, + 1_i8, ] .span(), ); diff --git a/tests/operators/qlinear_leakyrelu_test.cairo b/tests/operators/qlinear_leakyrelu_test.cairo index de9393d15..9e6473d06 100644 --- a/tests/operators/qlinear_leakyrelu_test.cairo +++ b/tests/operators/qlinear_leakyrelu_test.cairo @@ -1,13 +1,9 @@ use core::debug::PrintTrait; use core::array::{ArrayTrait, SpanTrait}; -use orion::operators::tensor::{ - TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor, FP32x32Tensor -}; +use orion::operators::tensor::{TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor}; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; -use orion::numbers::{IntegerTrait}; -use orion::numbers::{i8, i32}; - +use orion::numbers::{NumberTrait}; #[test] #[available_gas(200000000000)] @@ -17,12 +13,12 @@ fn qlinear_leakyrelu_test() { >::new( shape: array![2, 3].span(), data: array![ - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(10_u8, false) + -10_i8, + -10_i8, + -10_i8, + 10_i8, + 10_i8, + 10_i8 ] .span(), ); diff --git a/tests/operators/qlinear_matmul_test.cairo b/tests/operators/qlinear_matmul_test.cairo index 627779454..bfbe04714 100644 --- a/tests/operators/qlinear_matmul_test.cairo +++ b/tests/operators/qlinear_matmul_test.cairo @@ -5,8 +5,7 @@ use orion::operators::tensor::{ TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor, FP32x32Tensor }; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; -use orion::numbers::{NumberTrait, IntegerTrait}; -use orion::numbers::{i8, i32}; +use orion::numbers::{NumberTrait}; #[test] @@ -17,14 +16,14 @@ fn qlinearmatmul_2D_test() { >::new( shape: array![2, 4].span(), data: array![ - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(3_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(7_u8, false), - IntegerTrait::::new(8_u8, false) + 1_i8, + 2_i8, + 3_i8, + 4_i8, + 5_i8, + 6_i8, + 7_i8, + 8_i8 ] .span(), ); @@ -33,18 +32,18 @@ fn qlinearmatmul_2D_test() { >::new( shape: array![4, 3].span(), data: array![ - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(12_u8, false), - IntegerTrait::::new(14_u8, false), - IntegerTrait::::new(16_u8, false), - IntegerTrait::::new(18_u8, false), - IntegerTrait::::new(20_u8, false), - IntegerTrait::::new(22_u8, false), - IntegerTrait::::new(24_u8, false) + 2_i8, + 4_i8, + 6_i8, + 8_i8, + 10_i8, + 12_i8, + 14_i8, + 16_i8, + 18_i8, + 20_i8, + 22_i8, + 24_i8 ] .span(), ); @@ -91,18 +90,18 @@ fn qlinearmatmul_3D_test() { >::new( shape: array![2, 2, 3].span(), data: array![ - IntegerTrait::::new(1_u8, true), - IntegerTrait::::new(2_u8, true), - IntegerTrait::::new(2_u8, true), - IntegerTrait::::new(3_u8, true), - IntegerTrait::::new(4_u8, true), - IntegerTrait::::new(4_u8, true), - IntegerTrait::::new(5_u8, true), - IntegerTrait::::new(6_u8, true), - IntegerTrait::::new(6_u8, true), - IntegerTrait::::new(7_u8, true), - IntegerTrait::::new(8_u8, true), - IntegerTrait::::new(8_u8, true) + -1_i8, + -2_i8, + -2_i8, + -3_i8, + -4_i8, + -4_i8, + -5_i8, + -6_i8, + -6_i8, + -7_i8, + -8_i8, + -8_i8 ] .span(), ); @@ -111,18 +110,18 @@ fn qlinearmatmul_3D_test() { >::new( shape: array![2, 3, 2].span(), data: array![ - IntegerTrait::::new(2_u8, true), - IntegerTrait::::new(4_u8, true), - IntegerTrait::::new(6_u8, true), - IntegerTrait::::new(8_u8, true), - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(12_u8, true), - IntegerTrait::::new(2_u8, true), - IntegerTrait::::new(4_u8, true), - IntegerTrait::::new(6_u8, true), - IntegerTrait::::new(8_u8, true), - IntegerTrait::::new(10_u8, true), - IntegerTrait::::new(12_u8, true) + -2_i8, + -4_i8, + -6_i8, + -8_i8, + -10_i8, + -12_i8, + -2_i8, + -4_i8, + -6_i8, + -8_i8, + -10_i8, + -12_i8 ] .span(), ); @@ -171,12 +170,12 @@ fn test_example_doc() { >::new( shape: array![2, 3].span(), data: array![ - IntegerTrait::::new(3_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(3_u8, false) + 3_i8, + 4_i8, + 5_i8, + 2_i8, + 4_i8, + 3_i8 ] .span(), ); @@ -185,9 +184,9 @@ fn test_example_doc() { >::new( shape: array![3, 1].span(), data: array![ - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(4_u8, false) + 4_i8, + 8_i8, + 4_i8 ] .span(), ); @@ -230,7 +229,7 @@ fn test_example_doc() { fn print_span(mut span: Span) { loop { match span.pop_front() { - Option::Some(i) => { (*i.mag).print(); }, + Option::Some(i) => { (*i).print(); }, Option::None(_) => { break; } }; }; diff --git a/tests/operators/qlinear_mul_test.cairo b/tests/operators/qlinear_mul_test.cairo index 2f2f9b375..6bf292bcc 100644 --- a/tests/operators/qlinear_mul_test.cairo +++ b/tests/operators/qlinear_mul_test.cairo @@ -5,8 +5,7 @@ use orion::operators::tensor::{ TensorTrait, Tensor, I8Tensor, I32Tensor, U32Tensor, FP16x16Tensor, FP32x32Tensor }; use orion::numbers::{FP16x16, FP16x16Impl, FP32x32, FP32x32Impl, FixedTrait}; -use orion::numbers::{NumberTrait, IntegerTrait}; -use orion::numbers::{i8, i32}; +use orion::numbers::{NumberTrait}; #[test] #[available_gas(200000000000)] @@ -16,18 +15,18 @@ fn qlinearmul_test() { >::new( shape: array![4, 3].span(), data: array![ - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(3_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(7_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(9_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(11_u8, false), - IntegerTrait::::new(12_u8, false) + 1_i8, + 2_i8, + 3_i8, + 4_i8, + 5_i8, + 6_i8, + 7_i8, + 8_i8, + 9_i8, + 10_i8, + 11_i8, + 12_i8 ] .span(), ); @@ -36,18 +35,18 @@ fn qlinearmul_test() { >::new( shape: array![4, 3].span(), data: array![ - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(10_u8, false), - IntegerTrait::::new(12_u8, false), - IntegerTrait::::new(14_u8, false), - IntegerTrait::::new(16_u8, false), - IntegerTrait::::new(18_u8, false), - IntegerTrait::::new(20_u8, false), - IntegerTrait::::new(22_u8, false), - IntegerTrait::::new(24_u8, false) + 2_i8, + 4_i8, + 6_i8, + 8_i8, + 10_i8, + 12_i8, + 14_i8, + 16_i8, + 18_i8, + 20_i8, + 22_i8, + 24_i8 ] .span(), ); @@ -98,14 +97,14 @@ fn qlinear_mul_broadcast_test() { >::new( shape: array![2, 4].span(), data: array![ - IntegerTrait::::new(1_u8, false), - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(3_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(5_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(7_u8, false), - IntegerTrait::::new(8_u8, false) + 1_i8, + 2_i8, + 3_i8, + 4_i8, + 5_i8, + 6_i8, + 7_i8, + 8_i8 ] .span(), ); @@ -114,10 +113,10 @@ fn qlinear_mul_broadcast_test() { >::new( shape: array![1, 4].span(), data: array![ - IntegerTrait::::new(2_u8, false), - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(6_u8, false), - IntegerTrait::::new(8_u8, false), + 2_i8, + 4_i8, + 6_i8, + 8_i8, ] .span(), ); @@ -164,12 +163,12 @@ fn test_example_doc() { >::new( shape: array![2, 3].span(), data: array![ - IntegerTrait::::new(21_u8, false), - IntegerTrait::::new(21_u8, false), - IntegerTrait::::new(21_u8, false), - IntegerTrait::::new(41_u8, false), - IntegerTrait::::new(41_u8, false), - IntegerTrait::::new(41_u8, false) + 21_i8, + 21_i8, + 21_i8, + 41_i8, + 41_i8, + 41_i8 ] .span(), ); @@ -178,9 +177,9 @@ fn test_example_doc() { >::new( shape: array![1, 3].span(), data: array![ - IntegerTrait::::new(4_u8, false), - IntegerTrait::::new(8_u8, false), - IntegerTrait::::new(12_u8, false) + 4_i8, + 8_i8, + 12_i8 ] .span(), ); diff --git a/tests/performance/dequantize_linear_test/dequantize_linear_fp_test/fp_i8_test.cairo b/tests/performance/dequantize_linear_test/dequantize_linear_fp_test/fp_i8_test.cairo index 851aedbae..2d2379f41 100644 --- a/tests/performance/dequantize_linear_test/dequantize_linear_fp_test/fp_i8_test.cairo +++ b/tests/performance/dequantize_linear_test/dequantize_linear_fp_test/fp_i8_test.cairo @@ -5,7 +5,6 @@ mod fp8x23 { use core::traits::Into; use core::debug::PrintTrait; - use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i8::i8}; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp8x23::core::{FP8x23Impl, FP8x23PartialEq}; use orion::operators::tensor::I8Tensor; @@ -20,10 +19,10 @@ mod fp8x23 { let mut shape = ArrayTrait::::new(); shape.append(4); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(0, false)); - data.append(IntegerTrait::new(3, false)); - data.append(IntegerTrait::new(125, false)); - data.append(IntegerTrait::new(127, false)); + data.append(0); + data.append(3); + data.append(125); + data.append(127); let x = TensorTrait::new(shape.span(), data.span()); @@ -151,7 +150,6 @@ mod fp16x16 { use core::debug::PrintTrait; - use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i8::i8}; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp16x16::core::{ FP16x16Impl, FP16x16PartialEq @@ -168,10 +166,10 @@ mod fp16x16 { let mut shape = ArrayTrait::::new(); shape.append(4); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(0, false)); - data.append(IntegerTrait::new(3, false)); - data.append(IntegerTrait::new(125, false)); - data.append(IntegerTrait::new(127, false)); + data.append(0); + data.append(3); + data.append(125); + data.append(127); let x = TensorTrait::new(shape.span(), data.span()); @@ -221,24 +219,24 @@ mod fp16x16 { shape.append(3); shape.append(2); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(3, false)); - data.append(IntegerTrait::new(89, false)); - data.append(IntegerTrait::new(34, false)); - data.append(IntegerTrait::new(127, false)); - data.append(IntegerTrait::new(74, false)); - data.append(IntegerTrait::new(59, false)); - data.append(IntegerTrait::new(5, false)); - data.append(IntegerTrait::new(24, false)); - data.append(IntegerTrait::new(24, false)); - data.append(IntegerTrait::new(87, false)); - data.append(IntegerTrait::new(32, false)); - data.append(IntegerTrait::new(13, false)); - data.append(IntegerTrait::new(127, false)); - data.append(IntegerTrait::new(99, false)); - data.append(IntegerTrait::new(4, false)); - data.append(IntegerTrait::new(127, false)); - data.append(IntegerTrait::new(121, false)); - data.append(IntegerTrait::new(102, false)); + data.append(3); + data.append(89); + data.append(34); + data.append(127); + data.append(74); + data.append(59); + data.append(5); + data.append(24); + data.append(24); + data.append(87); + data.append(32); + data.append(13); + data.append(127); + data.append(99); + data.append(4); + data.append(127); + data.append(121); + data.append(102); let x = TensorTrait::new(shape.span(), data.span()); diff --git a/tests/performance/dequantize_linear_test/dequantize_linear_i32_test.cairo b/tests/performance/dequantize_linear_test/dequantize_linear_i32_test.cairo index b7d58df42..b94a4f107 100644 --- a/tests/performance/dequantize_linear_test/dequantize_linear_i32_test.cairo +++ b/tests/performance/dequantize_linear_test/dequantize_linear_i32_test.cairo @@ -3,7 +3,6 @@ use core::array::ArrayTrait; use core::array::SpanTrait; use core::traits::Into; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32, i8::i8}; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::operators::tensor::I8Tensor; use orion::operators::tensor::I32Tensor; @@ -16,10 +15,10 @@ fn dequantize_linear() { let mut shape = ArrayTrait::::new(); shape.append(4); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(0, false)); - data.append(IntegerTrait::new(3, false)); - data.append(IntegerTrait::new(125, false)); - data.append(IntegerTrait::new(127, false)); + data.append(0); + data.append(3); + data.append(125); + data.append(127); let x = TensorTrait::new(shape.span(), data.span()); @@ -27,7 +26,7 @@ fn dequantize_linear() { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(2, false)); + data.append(2); let x_scale = TensorTrait::new(shape.span(), data.span()); @@ -35,7 +34,7 @@ fn dequantize_linear() { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(0, false)); + data.append(0); let x_zero_point = TensorTrait::new(shape.span(), data.span()); @@ -57,24 +56,24 @@ fn per_axis() { shape.append(3); shape.append(2); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(3, false)); - data.append(IntegerTrait::new(89, false)); - data.append(IntegerTrait::new(34, false)); - data.append(IntegerTrait::new(127, false)); - data.append(IntegerTrait::new(74, false)); - data.append(IntegerTrait::new(59, false)); - data.append(IntegerTrait::new(5, false)); - data.append(IntegerTrait::new(24, false)); - data.append(IntegerTrait::new(24, false)); - data.append(IntegerTrait::new(87, false)); - data.append(IntegerTrait::new(32, false)); - data.append(IntegerTrait::new(13, false)); - data.append(IntegerTrait::new(127, false)); - data.append(IntegerTrait::new(99, false)); - data.append(IntegerTrait::new(4, false)); - data.append(IntegerTrait::new(127, false)); - data.append(IntegerTrait::new(121, false)); - data.append(IntegerTrait::new(102, false)); + data.append(3); + data.append(89); + data.append(34); + data.append(127); + data.append(74); + data.append(59); + data.append(5); + data.append(24); + data.append(24); + data.append(87); + data.append(32); + data.append(13); + data.append(127); + data.append(99); + data.append(4); + data.append(127); + data.append(121); + data.append(102); let x = TensorTrait::new(shape.span(), data.span()); @@ -85,9 +84,9 @@ fn per_axis() { shape.append(1); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(2, false)); - data.append(IntegerTrait::new(4, false)); - data.append(IntegerTrait::new(5, false)); + data.append(2); + data.append(4); + data.append(5); let x_scale = TensorTrait::new(shape.span(), data.span()); @@ -98,9 +97,9 @@ fn per_axis() { shape.append(1); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(1, false)); - data.append(IntegerTrait::new(2, false)); - data.append(IntegerTrait::new(3, false)); + data.append(1); + data.append(2); + data.append(3); let x_zero_point = TensorTrait::new(shape.span(), data.span()); diff --git a/tests/performance/quantize_linear_test/quantize_linear_fp_test/fp_i8_test.cairo b/tests/performance/quantize_linear_test/quantize_linear_fp_test/fp_i8_test.cairo index 109688756..c3d37dd91 100644 --- a/tests/performance/quantize_linear_test/quantize_linear_fp_test/fp_i8_test.cairo +++ b/tests/performance/quantize_linear_test/quantize_linear_fp_test/fp_i8_test.cairo @@ -5,7 +5,6 @@ mod fp8x23 { use core::traits::Into; use core::debug::PrintTrait; - use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32, i8::i8}; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp8x23::core::FP8x23Impl; use orion::operators::tensor::I32Tensor; @@ -143,7 +142,6 @@ mod fp16x16 { use core::traits::Into; use core::debug::PrintTrait; - use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32, i8::i8}; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::numbers::fixed_point::implementations::fp16x16::core::FP16x16Impl; use orion::operators::tensor::I32Tensor; @@ -190,7 +188,7 @@ mod fp16x16 { assert((*y.data[2]).into() == 2, '*result[2] == 2'); assert((*y.data[3]).into() == 127, '*result[3] == 127'); assert((*y.data[4]).into() == -126, '*result[4] == -126'); - assert((*y.data[5]).into() == -128, '*result[5] == -128'); + assert((*y.data[5]).into() == -127, '*result[5] == -127'); } #[test] diff --git a/tests/performance/quantize_linear_test/quantize_linear_i32_test.cairo b/tests/performance/quantize_linear_test/quantize_linear_i32_test.cairo index b4b45dd3a..af030b007 100644 --- a/tests/performance/quantize_linear_test/quantize_linear_i32_test.cairo +++ b/tests/performance/quantize_linear_test/quantize_linear_i32_test.cairo @@ -3,7 +3,6 @@ use core::array::ArrayTrait; use core::array::SpanTrait; use core::traits::Into; -use orion::numbers::signed_integer::{integer_trait::IntegerTrait, i32::i32, i8::i8}; use orion::numbers::fixed_point::core::{FixedTrait}; use orion::operators::tensor::I32Tensor; use orion::operators::tensor::{TensorTrait, Tensor}; @@ -15,12 +14,12 @@ fn quantize_linear() { let mut shape = ArrayTrait::::new(); shape.append(6); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(0, false)); - data.append(IntegerTrait::new(2, false)); - data.append(IntegerTrait::new(3, false)); - data.append(IntegerTrait::new(1000, false)); - data.append(IntegerTrait::new(254, true)); - data.append(IntegerTrait::new(1000, true)); + data.append(0); + data.append(2); + data.append(3); + data.append(1000); + data.append(-254); + data.append(-1000); let x = TensorTrait::new(shape.span(), data.span()); @@ -28,7 +27,7 @@ fn quantize_linear() { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(2, false)); + data.append(2); let y_scale = TensorTrait::new(shape.span(), data.span()); @@ -36,7 +35,7 @@ fn quantize_linear() { let mut shape = ArrayTrait::::new(); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(1, false)); + data.append(1); let y_zero_point = TensorTrait::new(shape.span(), data.span()); @@ -47,7 +46,7 @@ fn quantize_linear() { assert((*y.data[2]).into() == 2, '*result[2] == 2'); assert((*y.data[3]).into() == 127, '*result[3] == 127'); assert((*y.data[4]).into() == -126, '*result[4] == -126'); - assert((*y.data[5]).into() == -128, '*result[5] == -128'); + assert((*y.data[5]).into() == -127, '*result[5] == -127'); } @@ -61,24 +60,24 @@ fn per_axis() { shape.append(3); shape.append(2); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(162, true)); - data.append(IntegerTrait::new(10, false)); - data.append(IntegerTrait::new(100, true)); - data.append(IntegerTrait::new(232, false)); - data.append(IntegerTrait::new(20, true)); - data.append(IntegerTrait::new(50, true)); - data.append(IntegerTrait::new(76, true)); - data.append(IntegerTrait::new(0, false)); - data.append(IntegerTrait::new(0, false)); - data.append(IntegerTrait::new(252, false)); - data.append(IntegerTrait::new(32, false)); - data.append(IntegerTrait::new(44, true)); - data.append(IntegerTrait::new(245, false)); - data.append(IntegerTrait::new(485, true)); - data.append(IntegerTrait::new(960, true)); - data.append(IntegerTrait::new(270, true)); - data.append(IntegerTrait::new(375, true)); - data.append(IntegerTrait::new(470, true)); + data.append(-162); + data.append(10); + data.append(-100); + data.append(232); + data.append(-20); + data.append(-50); + data.append(-76); + data.append(0); + data.append(0); + data.append(252); + data.append(32); + data.append(-44); + data.append(245); + data.append(-485); + data.append(-960); + data.append(-270); + data.append(-375); + data.append(-470); let x = TensorTrait::new(shape.span(), data.span()); @@ -89,9 +88,9 @@ fn per_axis() { shape.append(1); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(2, false)); - data.append(IntegerTrait::new(4, false)); - data.append(IntegerTrait::new(5, false)); + data.append(2); + data.append(4); + data.append(5); let y_scale = TensorTrait::new(shape.span(), data.span()); @@ -102,9 +101,9 @@ fn per_axis() { shape.append(1); shape.append(1); let mut data = ArrayTrait::::new(); - data.append(IntegerTrait::new(84, false)); - data.append(IntegerTrait::new(24, false)); - data.append(IntegerTrait::new(196, false)); + data.append(84); + data.append(24); + data.append(196); let y_zero_point = TensorTrait::new(shape.span(), data.span()); diff --git a/tests/tensor_core/at/at_i32_test.cairo b/tests/tensor_core/at/at_i32_test.cairo index 33a450fa7..f5239cc2f 100644 --- a/tests/tensor_core/at/at_i32_test.cairo +++ b/tests/tensor_core/at/at_i32_test.cairo @@ -15,7 +15,7 @@ mod tensor_1D { let mut indices = ArrayTrait::new(); indices.append(1); - let result = tensor.at(indices.span()).mag; + let result = tensor.at(indices.span()); assert(result == 1, 'result[2] = 1'); } @@ -40,7 +40,7 @@ mod tensor_2D { indices.append(1); indices.append(1); - let result = tensor.at(indices.span()).mag; + let result = tensor.at(indices.span()); assert(result == 3, 'result[4] = 3'); } @@ -66,7 +66,7 @@ mod tensor_3D { indices.append(1); indices.append(1); - let result = tensor.at(indices.span()).mag; + let result = tensor.at(indices.span()); assert(result == 3, 'result[3] = 3'); } diff --git a/tests/tensor_core/max/max_i32_test.cairo b/tests/tensor_core/max/max_i32_test.cairo index 17f9fdc9b..29be5a3b3 100644 --- a/tests/tensor_core/max/max_i32_test.cairo +++ b/tests/tensor_core/max/max_i32_test.cairo @@ -11,7 +11,7 @@ mod tensor_1D { fn tensor_max() { let tensor = i32_tensor_1x3_helper(); - let result = tensor.max_in_tensor().mag; + let result = tensor.max_in_tensor(); assert(result == 2, 'tensor.max = 2'); } } @@ -29,7 +29,7 @@ mod tensor_2D { fn tensor_max() { let tensor = i32_tensor_2x2_helper(); - let result = tensor.max_in_tensor().mag; + let result = tensor.max_in_tensor(); assert(result == 3, 'tensor.max = 3'); } } @@ -47,7 +47,7 @@ mod tensor_3D { fn tensor_max() { let tensor = i32_tensor_2x2x2_helper(); - let result = tensor.max_in_tensor().mag; + let result = tensor.max_in_tensor(); assert(result == 7, 'tensor.max = 7'); } } diff --git a/tests/tensor_core/min/min_i32_test.cairo b/tests/tensor_core/min/min_i32_test.cairo index c4438fa84..00d7729de 100644 --- a/tests/tensor_core/min/min_i32_test.cairo +++ b/tests/tensor_core/min/min_i32_test.cairo @@ -11,7 +11,7 @@ mod tensor_1D { fn tensor_min() { let tensor = i32_tensor_1x3_helper(); - let result = tensor.min_in_tensor().mag; + let result = tensor.min_in_tensor(); assert(result == 0, 'tensor.min = 0'); } } @@ -29,7 +29,7 @@ mod tensor_2D { fn tensor_min() { let tensor = i32_tensor_2x2_helper(); - let result = tensor.min_in_tensor().mag; + let result = tensor.min_in_tensor(); assert(result == 0, 'tensor.min = 0'); } } @@ -47,7 +47,7 @@ mod tensor_3D { fn tensor_min() { let tensor = i32_tensor_2x2x2_helper(); - let result = tensor.min_in_tensor().mag; + let result = tensor.min_in_tensor(); assert(result == 0, 'tensor.min = 0'); } }